{公式名称: 趋势主图
参数数量: 1
参数1: N, 最小: 1, 最大: 200, 缺省: 5
画线方法: 主图叠加}
VAR1:=REF(HIGH,N)=HHV(HIGH,2*N+1);
VAR2:=FILTER(VAR1,N);
VAR3:=BACKSET(VAR2,N+1);
VAR4:=FILTER(VAR3,N);
VAR5:=REF(LOW,N)=LLV(LOW,2*N+1);
VAR6:=FILTER(VAR5,N);
VAR7:=BACKSET(VAR6,N+1);
VAR8:=FILTER(VAR7,N);
VAR9:=(REF(LLV(LOW,2*N),1)+REF(HHV(HIGH,2*N),1))/2;
VAR10:=(HIGH+LOW)/2;
VAR11:=VAR4 AND NOT(VAR8 AND VAR9>=VAR10) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
VAR12:=VAR8 AND NOT(VAR4 AND VAR9
VAR14:=REF(BARSLAST(VAR11),1)+1;
VAR15:=BACKSET(VAR11 AND COUNT(VAR12,VAR14)>0,LLVBARS(IF(VAR12,LOW,10000),VAR14));
VAR16:=VAR15>REF(VAR15,1);
VAR17:=BACKSET(VAR16,2);
VAR18:=VAR17>REF(VAR17,1);
VAR19:=VAR18 OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
VAR20:=REF(BARSLAST(VAR19),1)+1;
VAR21:=BACKSET(VAR19 AND COUNT(VAR13,VAR20)>0,HHVBARS(IF(VAR13,HIGH,0),VAR20));
VAR22:=VAR21>REF(VAR21,1);
VAR23:=BACKSET(VAR22,2);
VAR24:=VAR23>REF(VAR23,1);
VAR25:=BACKSET(ISLASTBAR,BARSLAST(VAR24)+1);
VAR26:=VAR25>REF(VAR25,1);
VAR27:=BACKSET(ISLASTBAR,BARSLAST(VAR18)+1);
VAR28:=VAR27>REF(VAR27,1);
VAR29:=BACKSET(VAR26,REF(BARSLAST(VAR24),1)+2);
VAR30:=VAR29>REF(VAR29,1);
VAR31:=BACKSET(VAR28,REF(BARSLAST(VAR18),1)+2);
VAR32:=VAR31>REF(VAR31,1);
撑1:DRAWLINE(VAR30,HIGH,VAR26,HIGH,1),COLORFF8000;
撑2:DRAWLINE(VAR32,LOW,VAR28,LOW,1),COLORFF8000;
VAR33:=MA(CLOSE,1);
VAR34:=SMA(SMA(SMA(VAR33,2,1),2,1),2,1);
VAR35:=MA(VAR34,5);
VAR36:=REF(CLOSE,1);
VAR37:=DRAWBAND(VAR6,RGB(180,0,180),VAR35,RGB(256,100,100));
VAR38:=HHV(VOL,20);
STICKLINE(VAR38,OPEN,CLOSE,2,0),COLORFF0080;
VAR39:=IF((CLOSE-VAR36)*100/VAR36>=10-0.01*100/VAR36,1,0);
VAR40:=(VOL+REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4))/5;
VAR41:=VAR40LLV(LOW,5) OR LLV(LOW,5)>LLV(LOW,10) OR LLV(LOW,5)>LLV(LOW,20)) AND COUNT(VAR39,7)=0;
STICKLINE(FILTERX(VAR41,40) AND VAR41 AND CURRBARSCOUNT<=40,LOW,LOW*0.98,40,0),COLORBROWN;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR42:=FINANCE(7)/100000000*CLOSE;
VAR43:=IF(VAR42<30000000,VOL*10000/FINANCE(7),VOL*10000/FINANCE(7)*10);
STICKLINE(VAR39,OPEN,CLOSE,2,0),COLORRED;
VAR44:=IF((VAR7-CLOSE)*100/VAR7>=10-0.01*100/VAR7,1,0);
STICKLINE(VAR44,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(VAR44,HIGH,LOW,0,1),COLORGREEN;
VAR45:=VOL0.5 AND CLOSE
VAR46:=CLOSE<=OPEN AND (CLOSE>=REF(CLOSE,1) OR (OPEN>MAX(REF(CLOSE,1),REF(OPEN,1))*1.01 AND CLOSE>=REF(CLOSE,1)*0.995));
STICKLINE(VAR46 AND HIGHREF(CLOSE,1),LOW,HIGH,0.5,0),COLORRED;
STICKLINE(VAR46,OPEN,CLOSE,3,(-1)),COLORCYAN;
VAR47:=REF(CLOSE,1)>REF(OPEN,1) AND CLOSE
VAR48:=ABS(CLOSE-OPEN)/IF(HIGH-LOW=0,100,HIGH-LOW);
VAR49:=ABS(CLOSE-OPEN)/OPEN;
WEI21:IF(CODELIKE(21),(HIGH-LOW)*0.5+LOW,IF(CLOSE>OPEN,(CLOSE-OPEN)*0.5+OPEN,(OPEN-CLOSE)*0.5+CLOSE)),NODRAW;
STICKLINE(VAR49>=0.03 AND VAR48>=0.03 OR CLOSE>1000,WEI21,WEI21,(-1),0),COLORMAGENTA;
VAR50:=1.9;
VAR51:=REF(CLOSE,1);
VAR52:=CLOSE<0.96*OPEN OR CLOSE<=VAR51*0.96 OR CLOSE>1000 AND CLOSE<=VAR51*0.98;
VAR53:=BARSLAST(FILTER(VAR52,3));
大阴实顶:REF(OPEN,VAR53),POINTDOT,COLORLIGREEN;
大阴二一:REF((LOW+HIGH)/2,VAR53),NODRAW;
VAR54:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR55:=NAMELIKE(22) OR NAMELIKE(23) OR NAMELIKE(24) AND VAR54>=4.945;
VAR56:=NAMELIKE(22) OR NAMELIKE(23) OR NAMELIKE(24) AND VAR54<=(-4.945);
VAR57:=IF(VAR55,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1);
VAR58:=IF(VAR56,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9);
VAR59:=1.3;
VAR60:=1;
VAR61:=0;
VAR62:=MA(CLOSE,5);
VAR63:=MA(CLOSE,10);
VAR64:=MA(CLOSE,20);
VAR65:=VAR62>REF(VAR62,1) AND VAR63VAR66:=REF(VOL,1);
VAR67:=REF(VOL,2);
VAR68:=REF(VOL,3);
VAR69:=REF(CLOSE,2);
VAR70:=REF(CLOSE,3);
VAR71:=REF(CLOSE,4);
VAR72:=REF(OPEN,1);
VAR73:=REF(OPEN,2);
VAR74:=REF(OPEN,3);
VAR75:=REF(OPEN,4);
VAR76:=CLOSE>=VAR70 AND VAR51>=VAR70 AND VAR69>=VAR70;
VAR77:=LOW>VAR74 AND REF(LOW,1)>VAR74 AND REF(LOW,2)>VAR74;
VAR78:=AMOUNT/VOL/100;
VAR79:=REF(VAR78,1);
VAR80:=REF(VAR78,2);
VAR81:=CLOSE>=OPEN OR (CLOSE
VAR82:=COUNT(VAR81,3)>=2;
VAR83:=VAR70>VAR74;
VAR84:=VAR78>=VAR79 OR CLOSE>VAR51 AND (VAR79>=VAR80 OR VAR51>=VAR69);
VAR85:=(CLOSE+VAR51+VAR69)/3>VAR70;
VAR86:=VOL>VAR66 AND VAR66>VAR67;
VAR87:=VOL<=VAR66 AND VAR66<=VAR67;
VAR88:=(VOL+VAR66+VAR67)/3<=VAR68 AND NOT(VAR86);
VAR89:=CLOSE/VOL;
VAR90:=VAR89>=REF(VAR89,1) AND REF(VAR89,1)>=REF(VAR89,2);
VAR91:=(CLOSE+VAR51+VAR69)/3/VAR70;
VAR92:=(VOL+VAR66+VAR67)/3/VAR68;
VAR93:=VAR59*VAR91/VAR92>1;
VAR94:=VAR74>VAR71 AND VAR71>VAR75;
VAR95:=VAR83 AND VAR84 AND VAR87 AND VAR76 AND VAR77 AND VAR94;
VAR96:=BACKSET(VAR95,5);
VAR97:=FILTER(VAR96,4);
VAR98:=VAR83 AND VAR84 AND VAR87 AND VAR76 AND VAR77;
VAR99:=BACKSET(VAR98,4);
VAR100:=FILTER(VAR99,3);
VAR101:=VAR98 AND REF(VAR98,1);
VAR102:=BACKSET(VAR101,4);
VAR103:=FILTER(VAR102,3);
VAR104:=VAR98 AND REF(VAR98,2);
VAR105:=BACKSET(VAR104,4);
VAR106:=FILTER(VAR105,3);
VAR107:=VAR98 AND REF(VAR98,3);
VAR108:=BACKSET(VAR107,4);
VAR109:=FILTER(VAR108,3);
VAR110:=VAR83 AND VAR84 AND VAR88 AND NOT(VAR86) AND VAR76 AND VAR77 AND VAR94 AND NOT(VAR98) AND NOT(VAR95);
VAR111:=BACKSET(VAR110,5);
VAR112:=FILTER(VAR111,4);
VAR113:=VAR83 AND VAR84 AND VAR88 AND NOT(VAR86) AND VAR76 AND VAR77 AND NOT(VAR98) AND NOT(VAR95);
VAR114:=BACKSET(VAR113,4);
VAR115:=FILTER(VAR114,3);
VAR116:=VAR113 AND REF(VAR113,1);
VAR117:=BACKSET(VAR116,4);
VAR118:=FILTER(VAR117,3);
VAR119:=VAR113 AND REF(VAR113,2);
VAR120:=BACKSET(VAR119,4);
VAR121:=FILTER(VAR120,3);
VAR122:=VAR113 AND REF(VAR113,3);
VAR123:=BACKSET(VAR122,4);
VAR124:=FILTER(VAR123,3);
VAR125:=VAR83 AND VAR85 AND VAR87 AND VAR76 AND VAR77 AND VAR94 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR95) AND NOT(VAR110);
VAR126:=BACKSET(VAR125,5);
VAR127:=FILTER(VAR126,4);
VAR128:=VAR83 AND VAR85 AND VAR87 AND VAR76 AND VAR77 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR95) AND NOT(VAR110);
VAR129:=BACKSET(VAR128,4);
VAR130:=FILTER(VAR129,3);
VAR131:=VAR128 AND REF(VAR128,1);
VAR132:=BACKSET(VAR131,4);
VAR133:=FILTER(VAR132,3);
VAR134:=VAR128 AND REF(VAR128,2);
VAR135:=BACKSET(VAR134,4);
VAR136:=FILTER(VAR135,3);
VAR137:=VAR128 AND REF(VAR128,3);
VAR138:=BACKSET(VAR137,4);
VAR139:=FILTER(VAR138,3);
VAR140:=VAR83 AND VAR85 AND VAR88 AND VAR76 AND VAR77 AND VAR94 AND NOT(VAR98) AND NOT(VAR95) AND NOT(VAR113) AND NOT(VAR110) AND NOT(VAR128) AND NOT(VAR125);
VAR141:=BACKSET(VAR140,5);
VAR142:=FILTER(VAR141,4);
VAR143:=VAR83 AND VAR85 AND VAR88 AND VAR76 AND VAR77 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR128) AND NOT(VAR95) AND NOT(VAR110) AND NOT(VAR125);
VAR144:=BACKSET(VAR143,4);
VAR145:=FILTER(VAR144,3);
VAR146:=VAR143 AND REF(VAR143,1);
VAR147:=BACKSET(VAR146,4);
VAR148:=FILTER(VAR147,3);
VAR149:=VAR143 AND REF(VAR143,2);
VAR150:=BACKSET(VAR149,4);
VAR151:=FILTER(VAR150,3);
VAR152:=VAR143 AND REF(VAR143,3);
VAR153:=BACKSET(VAR152,4);
VAR154:=FILTER(VAR153,3);
VAR155:=VAR83 AND VAR85 AND VAR93 AND VAR76 AND VAR77 AND VAR94 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR128) AND NOT(VAR143) AND NOT(VAR95) AND NOT(VAR110) AND NOT(VAR125) AND NOT(VAR140);
VAR156:=BACKSET(VAR155,5);
VAR157:=FILTER(VAR156,4);
VAR158:=VAR83 AND VAR85 AND VAR93 AND VAR76 AND VAR77 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR128) AND NOT(VAR143) AND NOT(VAR95) AND NOT(VAR110) AND NOT(VAR125) AND NOT(VAR140);
VAR159:=BACKSET(VAR158,4);
VAR160:=FILTER(VAR159,3);
VAR161:=VAR158 AND REF(VAR158,1);
VAR162:=BACKSET(VAR161,4);
VAR163:=FILTER(VAR162,3);
VAR164:=VAR158 AND REF(VAR158,2);
VAR165:=BACKSET(VAR164,4);
VAR166:=FILTER(VAR165,3);
VAR167:=VAR158 AND REF(VAR158,3);
VAR168:=BACKSET(VAR167,4);
VAR169:=FILTER(VAR168,3);
VAR170:=VAR83 AND VAR85 AND VAR90 AND VAR76 AND VAR77 AND VAR94 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR128) AND NOT(VAR143) AND NOT(VAR158) AND NOT(VAR95) AND NOT(VAR110) AND NOT(VAR125) AND NOT(VAR140) AND NOT(VAR155);
VAR171:=BACKSET(VAR170,5);
VAR172:=FILTER(VAR171,4);
VAR173:=VAR83 AND VAR85 AND VAR90 AND VAR76 AND VAR77 AND NOT(VAR98) AND NOT(VAR113) AND NOT(VAR128) AND NOT(VAR143) AND NOT(VAR158) AND NOT(VAR95) AND NOT(VAR110) AND NOT(VAR125) AND NOT(VAR140) AND NOT(VAR155);
VAR174:=BACKSET(VAR173,4);
VAR175:=FILTER(VAR174,3);
VAR176:=VAR173 AND REF(VAR173,1);
VAR177:=BACKSET(VAR176,4);
VAR178:=FILTER(VAR177,3);
VAR179:=VAR173 AND REF(VAR173,2);
VAR180:=BACKSET(VAR179,4);
VAR181:=FILTER(VAR180,3);
VAR182:=VAR173 AND REF(VAR173,3);
VAR183:=BACKSET(VAR182,4);
VAR184:=FILTER(VAR183,3);
VAR185:=VAR100 AND NOT(REF(VAR100,4)) OR (VAR103 AND NOT(REF(VAR103,4))) OR (VAR106 AND NOT(REF(VAR106,4))) OR (VAR109 AND NOT(REF(VAR109,4)));
VAR186:=VAR115 AND NOT(REF(VAR115,4)) OR (VAR118 AND NOT(REF(VAR118,4))) OR (VAR121 AND NOT(REF(VAR121,4))) OR (VAR124 AND NOT(REF(VAR124,4)));
VAR187:=VAR130 AND NOT(REF(VAR130,4)) OR (VAR133 AND NOT(REF(VAR133,4))) OR (VAR136 AND NOT(REF(VAR136,4))) OR (VAR139 AND NOT(REF(VAR139,4)));
VAR188:=VAR145 AND NOT(REF(VAR145,4)) OR (VAR148 AND NOT(REF(VAR148,4))) OR (VAR151 AND NOT(REF(VAR151,4))) OR (VAR154 AND NOT(REF(VAR154,4)));
VAR189:=VAR160 AND NOT(REF(VAR160,4)) OR (VAR163 AND NOT(REF(VAR163,4))) OR (VAR166 AND NOT(REF(VAR166,4))) OR (VAR169 AND NOT(REF(VAR169,4)));
VAR190:=VAR175 AND NOT(REF(VAR175,4)) OR (VAR178 AND NOT(REF(VAR178,4))) OR (VAR181 AND NOT(REF(VAR181,4))) OR (VAR184 AND NOT(REF(VAR184,4)));
VAR191:=VAR185 OR VAR186 OR VAR187 OR VAR188 OR VAR189 OR VAR190;
STICKLINE(VAR191 AND NOT(REF(VAR191,4)),OPEN,CLOSE,3,0),COLOR0080FF;
VAR192:=DRAWTEXT(VAR191 AND NOT(REF(VAR191,4)),LOW*0.986,25);
VAR193:=SUMBARS(VAR191,1);
STICKLINE(VAR193 AND VAR60=1,REF(CLOSE,VAR193-1),REF(CLOSE,VAR193-1),10,0),COLORYELLOW;
VAR194:=VAR97 AND NOT(REF(VAR97,5));
VAR195:=VAR112 AND NOT(REF(VAR112,5));
VAR196:=VAR127 AND NOT(REF(VAR127,5));
VAR197:=VAR142 AND NOT(REF(VAR142,5));
VAR198:=VAR157 AND NOT(REF(VAR157,5));
VAR199:=VAR172 AND NOT(REF(VAR172,5));
VAR200:=VAR194 OR VAR195 OR VAR196 OR VAR197 OR VAR198 OR VAR199;
STICKLINE(VAR200 AND NOT(REF(VAR200,5)),OPEN,CLOSE,3,0),COLORMAGENTA;
VAR201:=DRAWTEXT(VAR200 AND NOT(REF(VAR200,5)),LOW*0.978,26);
VAR202:=SUMBARS(VAR200,1);
STICKLINE(VAR202 AND VAR60=1,REF(CLOSE,VAR202-1),REF(CLOSE,VAR202-1),10,0),COLORMAGENTA;
VAR203:=VAR98 OR VAR113 OR VAR128 OR VAR143 OR VAR158 OR VAR173 AND VAR65 AND VAR61;
VAR204:=BACKSET(VAR203,4);
VAR205:=FILTER(VAR204,3);
STICKLINE(VAR205 AND NOT(REF(VAR205,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(VAR205 AND NOT(REF(VAR205,4)),LOW*0.958,27),COLOR0099FF;
VAR206:=VAR95 OR VAR110 OR VAR125 OR VAR140 OR VAR155 OR VAR170 AND VAR65 AND VAR61;
VAR207:=BACKSET(VAR206,5);
VAR208:=FILTER(VAR207,5);
STICKLINE(VAR208 AND NOT(REF(VAR208,4)),OPEN,CLOSE,3,0),COLOR0099FF;
DRAWTEXT(VAR208 AND NOT(REF(VAR208,4)),LOW*0.958,27),COLOR0099FF;
VAR209:=REF(VAR52,1) AND OPEN>REF(CLOSE,1) AND HIGH>REF((HIGH+LOW)/2,1) AND CLOSE>OPEN AND VOLSTICKLINE(VAR209,HIGH,LOW,1,0),COLORMAGENTA;
VAR210:=OPEN>REF(CLOSE,1) AND MIN(CLOSE,OPEN)>REF(CLOSE,1);
STICKLINE(VAR210,MIN(CLOSE,OPEN),MIN(CLOSE,OPEN)*1.001,(-1),0),COLORYELLOW;
VAR211:=STRCAT(DYBLOCK,28);
VAR212:=STRCAT(VAR211,HYBLOCK);
VAR213:=STRCAT(VAR212,28);
DRAWTEXT_FIX(ISLASTBAR,0.99,0.99,1,STRCAT(VAR213,GNBLOCK)),COLOR4080FF;
VAR214:=VOL=LLV(VOL,10) AND BARSCOUNT(VOL)>=10;
VAR215:=VOL=LLV(VOL,50) AND BARSCOUNT(VOL)>=50;
VAR216:=VOL=LLV(VOL,100) AND BARSCOUNT(VOL)>=100;
VAR217:=REF(VAR214,1) OR REF(VAR215,1) OR REF(VAR216,1) AND CLOSE>REF(CLOSE,1);
{股民学院 整理}
2、沧海量
沧海量,量能类公式,喜欢研究的朋友,试一试。
{沧海量能20}
总:FINANCE(1)*C/100000000;
比:VOL/MA(VOL,5);
X:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,X,0,-1,-1),COLOR00C0C0;
E:VOL,VOLSTICK;
五:MA(VOL,M1),COLORYELLOW;
P:MA(VOL,M1)/240;
J:MA(VOL,M2),COLOREEFF00;
市:CLOSE/FINANCE(34);
权:FINANCE(36);
主:FINANCE(21)/FINANCE(20)*100;
益: FINANCE(33)/FINANCE(34)*100/4*3;
公:FINANCE(18);
未:FINANCE(32);
流:FINANCE(25)/FINANCE(1);
负:(FINANCE(15)+FINANCE(16))/FINANCE(10)*100;
HSL:=VOL/CAPITAL;
VMA1:=MA(HSL,5);
VMA2:=MA(HSL,20);
地:IF(((HSL<0.01) AND ((VMA1/HSL>4) OR (VMA2/HSL>3))) OR (HSL<0.0035),
EXP(ABS(LOG(VOL/CAPITAL*100))),1),COLORBLUE;
XG:STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;
巨量:=HHV(V,60);
巨:IF(V=巨量,C,0);
XG2:WINNER(CLOSE)>0.9;
XG3:C>REF(HHV(C,N1),1);
AA:=SUMBARS(VOL,CAPITAL);
地量:IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOL
STICKLINE(地量,VOL,0,3,0),COLORYELLOW;
选股:CROSS( CLOSE,MA(C,30))
AND CLOSE>MA(C,22) AND CLOSE>MA(C,30)AND
COUNT(MA(CLOSE,13)>REF(MA(CLOSE,13),1),1)
AND COUNT(MA(CLOSE,8)>REF(MA(CLOSE,8),1),1)
AND COUNT(MA(CLOSE,20)>REF(MA(CLOSE,20),1),1)
AND CLOSE/OPEN>1.015
AND DYNAINFO (37)>0.02% COLORLIBLUE;
XG1:E<五 OR E=五 AND 五
{股民学院 整理}
3、多空转换简版
{月涨跌}
月O:=O#MONTH,NODRAW;
月C:=C#MONTH,NODRAW;
月H:=H#MONTH,NODRAW;
月L:=L#MONTH,NODRAW;
STICKLINE(月C>=月O,月L,月H,5,0),COLORBROWN;{月涨}
STICKLINE(月C<=月O,月L,月H,5,0),COLORGRAY;{月跌}
{STICKLINE(月C>=月O,月O,月C,5,0),COLORLIRED;}{月涨}
{STICKLINE(月C<月O,月O,月C,5,0),COLORLIGREEN;}{月跌};
月开盘价:CONST(O#MONTH),LINETHICK3;
获利盘001%:=REFDATE(CONST(COST(0.001)),DATE),LINETHICK6,COLORYELLOW;
获利盘01%:=REFDATE(CONST(COST(0.01)),DATE),LINETHICK6,COLORYELLOW;
DRAWBAND(获利盘001%,RGB(250,150,50),获利盘01%,RGB(250,150,50));
获利盘49%:=REFDATE(CONST(COST(49)),DATE),LINETHICK6,COLORYELLOW;
获利盘51%:=REFDATE(CONST(COST(51)),DATE),LINETHICK6,COLORYELLOW;
DRAWBAND(获利盘49%,RGB(250,150,50),获利盘51%,RGB(250,150,50));
获利盘99.9%:=REFDATE(CONST(COST(99.9)),DATE),LINETHICK6,COLORYELLOW;
获利盘99.99%:=REFDATE(CONST(COST(99.999)),DATE),LINETHICK6,COLORYELLOW;
DRAWBAND(获利盘99.9%,RGB(250,150,50),获利盘99.99%,RGB(250,150,50));
当期开盘:DOPEN,NODRAW,COLORRED;
当期收盘:DCLOSE,NODRAW,COLORYELLOW;
当期最高:DHIGH,NODRAW,COLORMAGENTA;
当期最低:DLOW,NODRAW,COLORWHITE;
当期上影:DHIGH-MAX(DOPEN,DCLOSE),NODRAW,COLORMAGENTA;
当期下影:MIN(DOPEN,DCLOSE)-DLOW,NODRAW,COLORGREEN;
当期实体:ABS(DCLOSE-DOPEN),NODRAW,COLORRED;
当期涨幅:(DCLOSE-DOPEN)/DOPEN*100,NODRAW,COLORWHITE;
当期波幅:(DHIGH-DLOW)/DLOW*100,NODRAW,COLORMAGENTA;
STICKLINE(DOPEN
STICKLINE(DOPEN>DCLOSE,DOPEN,DCLOSE,4,0),COLOR668833;
涨跌周期:BARSLAST(O=DOPEN AND DVOL!=REF(DVOL,1))+1,NODRAW,COLORRED;
DRAWNUMBER(REFX(涨跌周期,1)<=涨跌周期 OR ISLASTBAR ,DHIGH,涨跌周期);
DRAWTEXT_FIX(1,0.991,0.881,1,STRCAT('涨跌周期:',CON2STR(涨跌周期,2))),COLORGRAY;
{画K线}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);