通达信量化波段王主图指标 源码 贴图
2023-06-08 10:59:00来源:本站整理浏览:4456
通达信量化波段王主图指标 源码 贴图
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;{公式网WWW.GPXIAZAI.COM}
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);
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;{公式网WWW.GPXIAZAI.COM}
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);
- 上一篇公式:通达信量化侦察兵副图指标 源码 贴图
- 下一篇公式:通达信裸K升级版主图指标 源码 贴图