8SZT+0(通达信公式 主图 源码 测试图)

[复制链接]
查看25 | 回复0 | 2022-6-27 19:24:35 | 显示全部楼层 |阅读模式

价位:CLOSE,COLORWHITE,LINETHICK4;
X3:ZSTJJ;
X_1:=NCFSYY0#DAY;
X_2:=X_1*1.3;
X_3:=CLOSE>REF(CLOSE,1) AND CLOSE/X3>1+X_1/100;
X_4:=CLOSE<REF(CLOSE,1) AND CLOSE/X3<1-X_1/100;
X_5:=REF(SUM(X_3,0),1)=0 AND SUM(X_3,0)=1;
X_6:=REF(SUM(X_4,0),1)=0 AND SUM(X_4,0)=1;
X_7:=SUM(X_5,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_5)),0.5);
X_8:=SUM(X_6,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_6)),0.5);
CS1:CONST(SUM(IF(X_7,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;
CB1:CONST(SUM(IF(X_8,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA,LINETHICK2;
X_9:=CROSS(SUM(X_3 AND CLOSE>CS1*(1+X_2/100),0),0.5);
X_10:=CROSS(SUM(X_4 AND CLOSE<CB1*(1-X_2/100),0),0.5);
X_11:=SUM(X_9,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(X_9)),0.5);
X_12:=SUM(X_10,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(X_10)),0.5);
CS2:CONST(SUM(IF(X_11,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;
CB2:CONST(SUM(IF(X_12,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA;
DRAWICON(X_5 OR X_9,CLOSE*1.001,39);
DRAWICON(X_6 OR X_10,CLOSE*0.999,38);
DRAWICON(X_8 OR X_12,REF(CLOSE,1)*0.999,7);
DRAWICON(X_7 OR X_11,REF(CLOSE,1)*1.001,8);
价:CLOSE,COLORWHITE,LINETHICK2;
X_13:=MAX(DYNAINFO(3),DYNAINFO(5));
X_14:=MIN(DYNAINFO(3),DYNAINFO(6));
X_15:=X_13-X_14;
阻力:X_14+X_15*7.7/8,NODRAW;
支撑:X_14+X_15*0.3/8,NODRAW;
STICKLINE(CROSS(支撑,价位),支撑,阻力,1,0),NODRAW;
DRAWTEXT(LONGCROSS(支撑,价位,8),价位,1),COLORRED;
DRAWTEXT(LONGCROSS(价位,阻力,8),价位,2),COLORGREEN;
 

2019121723392847958.rar

1.52 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

2019121723392847958.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则