[通达信] 量化波段王 主图指标公式
X_1:=1231212;X_2:=1;
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);
好好学习,天天向上 好好学习天天向上 感谢您的分享,好好学习,天天上涨!2023/5/16
页:
[1]