以下是同花顺背离波段副图源码

该指标主要用于来发现趋势背离,效果比一般要要提前一些,当然副作用自然就是有时候过早出信号。注意餐位控制。

A1:=FORCAST(EMA(CLOSE,5),6);
 A2:=FORCAST(EMA(CLOSE,8),6);
 A3:=FORCAST(EMA(CLOSE,11),6);
 A4:=FORCAST(EMA(CLOSE,14),6);
 A5:=FORCAST(EMA(CLOSE,17),6);
 B:=A1+A2+A3+A4-4*A5;
 TOWERC:=EMA(B,2);
 FORCAST(EMA(B,3),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,4),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,5),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,6),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,7),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,8),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,9),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,10),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,11),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,12),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,13),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,14),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,15),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,16),6),POINTDOT,colorgreen;
 FORCAST(EMA(B,17),6),POINTDOT,colorgreen;
 STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),8,0),colorred;
 STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),8,0),colorgreen;
 STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),5,0),colorred;
 STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),colorred;
 STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),0,0),colorred;
 STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),8,0),colorgreen;
 STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),5,0),colorgreen;
 STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),colorgreen;
 STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),0,0),colorgreen;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。