以下是通达信量化波段王主图指标公式源码

通达信量化波段王主图指标公式源码:

   C1:=EMA(INDEXC,500)/EMA(C,500);

   D1:=INDEXO/C1;D2:=INDEXH/C1;

   D3:=INDEXL/C1;D4:=INDEXC/C1;

   STICKLINE(D4>=REF(D4,1),D3,D2,0,0),COLORFF99CC;

   STICKLINE(D4>=REF(D4,1),D4,D1,5,1),COLORFF99CC;

   STICKLINE(D4<REF(D4,1),D3,D2,0,0),COLORFFCC99;

   STICKLINE(D4<REF(D4,1),D4,D1,5,1),COLORFFCC99;

   生命线:MA(CLOSE,24),COLOR00FF00,LINETHICK2;

   STICKLINE(C>=生命线ANDC>=O,C,O,9,0),COLOR0000FF;

   STICKLINE(C>=生命线ANDC>=O,H,L,0,0),COLOR0000FF;

   STICKLINE(C>=生命线ANDC<O,C,O,9,1),COLOR0000FF;

   STICKLINE(C>=生命线ANDC<O,O,H,0,0),COLOR0000FF;

   STICKLINE(C>=生命线ANDC<O,C,L,0,0),COLOR0000FF;

   STICKLINE(C<生命线ANDC>O,C,O,9,1),COLORFFFF00;

   STICKLINE(C<生命线ANDC<=O,C,O,9,1),COLORFFFF00;

   STICKLINE(C<生命线ANDC<=O,H,L,0,1),COLORFFFF00;

   STICKLINE(C<生命线ANDC>O,C,H,0,1),COLORFFFF00;

   STICKLINE(C<生命线ANDC>O,O,L,0,1),COLORFFFF00;

   X_1:=1231212;

   X_2:=IF(DATE<X_1,1,DRAWNULL);

   X_3:=15/20*X_2;

   X_4:=40/8*X_2;

   X_5:=SAR(3,X_3,X_4)*X_2;

   A:IF(CLOSE>X_5,X_5,DRAWNULL)*X_2,CIRCLEDOT,COLORRED;

   B:IF(CLOSE<X_5,X_5,DRAWNULL)*X_2,CIRCLEDOT,COLORGREEN;

   DRAWTEXT(crOSS(CLOSE,X_5),LOW-0.05*LOW,200)*X_2,COLORRED;

   DRAWTEXT(CROSS(X_5,CLOSE),HIGH+0.05*HIGH,200)*X_2,COLORGREEN;

   STICKLINE(CLOSE>sar(3,X_3,X_4)ANDCLOSE<OPEN,CLOSE,OPEN,2.8,0)*X_2,COLORRED;

   STICKLINE(CLOSE>SAR(3,X_3,X_4)ANDCLOSE>OPEN,CLOSE,OPEN,2.8,1)*X_2,COLORRED;

   STICKLINE(CLOSE>SAR(3,X_3,X_4),HIGH,MAX(CLOSE,OPEN),0,0)*X_2,COLORRED;

   STICKLINE(CLOSE>SAR(3,X_3,X_4),LOW,MIN(CLOSE,OPEN),0,0)*X_2,COLORRED;

   STICKLINE(CLOSE<SAR(3,X_3,X_4)ANDCLOSE<OPEN,CLOSE,OPEN,2.8,0)*X_2,COLORGREEN;

   STICKLINE(CLOSE<SAR(3,X_3,X_4)ANDCLOSE>OPEN,CLOSE,OPEN,2.8,1)*X_2,COLORGREEN;

   STICKLINE(CLOSE<SAR(3,X_3,X_4),HIGH,MAX(CLOSE,OPEN),0,0),COLORGREEN;

   STICKLINE(CLOSE<SAR(3,X_3,X_4),LOW,MIN(CLOSE,OPEN),0,0),COLORGREEN;

   X_6:=STRCAT(DYBLOCK,201);

   X_7:=STRCAT(X_6,HYBLOCK);

   X_8:=STRCAT(X_7,201);

   DRAWTEXT_FIX(ISLASTBAR,0.7,1,0,STRCAT(X_8,GNBLOCK)),COLORYELLOW;

   X_9:=CONST(ZTPRICE(REF(CLOSE,1),0.1));

   X_10:=CON2STR(X_9,2);

   X_11:=2;

   T0:IF(CURRBARSCOUNT<=X_11+6ANDCURRBARSCOUNT>2,CONST(X_9),DRAWNULL),COLORYELLOW;

   DRAWTEXT(CURRBARSCOUNT=3,T0,X_10),COLORGREEN;

   X_12:=STRCAT(STRCAT(202,CON2STR(CAPITAL/1000000*CLOSE,2)),8);

   AA:=(O+H+L+C)/4;

   A1:=HHV(AA,15);

   A2:=LLV(AA,15);

   A3:=A1-A2;

   A4:=EMA((AA-A2)/A3,2)*100;

   逃顶:A4,LINETHICK1,coloryellow;

   分界:50,POINTDOT,colorwhite;

   RSV:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*100;

   抄底:SMA(RSV,3,1),LINETHICK1,colormagenta;

   V9:=TROUGHBARS(1,5,1)<5;

   V11:=IF(V9=1,50,0);

   底部:=IF(V11=50,50,0);

   V10:=PEAKBARS(1,1,1)<5;

   V12:=IF(V10=1,50,0);

   头部:=IF(V12=50,100,0);

   DRAWICON(头部>REF(头部,1),逃顶-5,”sell”);

   DRAWICON(底部>REF(底部,1),抄底,”buy”);

   买:=IF(底部>REF(底部,1),5,0),colorred,LINETHICK1;

   卖:=IF(头部>REF(头部,1),95,100),coloryellow,LINETHICK1;

   VAR1:=HHV(HIGH,13)-LLV(LOW,13);

   VAR2:=HHV(HIGH,13)-CLOSE;

   VAR3:=CLOSE-LLV(LOW,13);

   VAR4:=VAR2/VAR1*100-70;

   VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;

   VAR6:=(2*CLOSE+HIGH+LOW)/4;

   VAR7:=SMA(VAR3/VAR1*100,3,1);

   VAR8:=LLV(LOW,34);

   VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);

   VAR10:=IF(VAR9>100,VAR9-100,0);

   VAR11:=HHV(HIGH,34);

   VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);

   VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);

   STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),colorred;

   STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;

   生命线:=EMA(VAR13,5),coloryellow;

   出击:IF(CROSS(VAR12,VAR13)ANDVAR12>VAR13ANDVAR12<18,20,0),STICK,colorwhite;

   DRAWICON(出击>0,生命线,1);

   卖出:IF(CROSS(VAR13,VAR12)ANDVAR12<VAR13ANDVAR12>60,VAR13,88),POINTDOT,colorblue;

   STICKLINE((CROSS(VAR13,VAR12)ANDVAR12<VAR13ANDVAR12>60),VAR13,88,2,1),colorblue;

   DRAWICON(卖出<88,卖出,”sell”);

通达信量化波段王主图指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。