通达信波段变色指标公式

[复制链接]
查看132 | 回复0 | 2021-8-21 10:48:38 | 显示全部楼层 |阅读模式

以下是通达信波段变色指标公式(无源码的请下载附件导入)

VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
 A1:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;
 A2:=EMA(A1,2);
 A3:=EMA(A2,2);
 A4:=EMA(A3,2);
 A5:=EMA(A4,2);
 A6:=EMA(A5,2);
 A7:=EMA(A6,2);
 IF(A1>REF(A1,1),A1,DRAWNULL),COLORRED;
 IF(A1<REF(A1,1),A1,DRAWNULL),COLORCYAN;
 IF(A2>REF(A2,1),A2,DRAWNULL),COLORRED;
 IF(A2<REF(A2,1),A2,DRAWNULL),COLORCYAN;
 IF(A3>REF(A3,1),A3,DRAWNULL),COLORRED;
 IF(A3<REF(A3,1),A3,DRAWNULL),COLORCYAN;
 IF(A4>REF(A4,1),A4,DRAWNULL),COLORRED;
 IF(A4<REF(A4,1),A4,DRAWNULL),COLORCYAN;
 IF(A5>REF(A5,1),A5,DRAWNULL),COLORRED;
 IF(A5<REF(A5,1),A5,DRAWNULL),COLORCYAN;
 IF(A6>REF(A6,1),A6,DRAWNULL),COLORRED;
 IF(A6<REF(A6,1),A6,DRAWNULL),COLORCYAN;
 IF(A7>REF(A7,1),A7,DRAWNULL),COLORRED;
 IF(A7<REF(A7,1),A7,DRAWNULL),COLORCYAN;

716555785.jpg

716555785.jpg

回复

使用道具 举报

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

本版积分规则