通达信量化波段王主图指标公式
时间:2023-01-04 22:12:04 阅读:7803
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) AND CLOSE<OPEN,CLOSE,OPEN,2.8,0)*X_2,COLORRED;
STICKLINE(CLOSE>SAR(3,X_3,X_4) AND CLOSE>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) AND CLOSE<OPEN,CLOSE,OPEN,2.8,0)*X_2,COLORGREEN;
STICKLINE(CLOSE<SAR(3,X_3,X_4) AND CLOSE>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+6 AND CURRBARSCOUNT>2,CONST(X_9),DRAWNULL),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=3,T0,X_10),COLORGREEN;
X_12:=STRCAT(STRCAT(202,CON2STR(CAPITAL/1000000*CLOSE,2)),8);
关键词: