通达信【波段神剑】副图源码

[复制链接]
查看34 | 回复0 | 2022-7-24 04:27:07 | 显示全部楼层 |阅读模式

用法:股价占上60日线副图零轴上紫色柱出现,标示波段起涨。
 
SJA:=EMA(EMA(EMA(EMA(CLOSE,1),2),2),2);
SJB:=EMA((SJA-REF(SJA,1))/REF(SJA,1),1)*1000,COLORFF00FF,NODRAW;
SJAA:=EMA(SJB,11);
SJBB:=EMA(SJAA,11);
SJAB:EMA(SJAA+SJBB,1)-EMA(SJAA-SJBB,2),COLORFF00FF,NODRAW;
SJC:=EMA(SJAB,11),COLORFF00FF,NODRAW;
STICKLINE(SJC<0,SJC,0,4,0),COLOR009900;
STICKLINE(SJC<0,SJC,0,3,0),COLOR00BB00;
STICKLINE(SJC<0,SJC,0,2,0),COLOR00DD00;
STICKLINE(SJC<0,SJC,0,1,0),COLOR00FF00;
STICKLINE(SJC>REF(SJC,1) AND SJC<0,SJC,0,4,0),COLOR000099;
STICKLINE(SJC>REF(SJC,1) AND SJC<0,SJC,0,3,0),COLOR0000BB;
STICKLINE(SJC>REF(SJC,1) AND SJC<0,SJC,0,2,0),COLOR0000DD;
STICKLINE(SJC>REF(SJC,1) AND SJC<0,SJC,0,1,0),COLOR0000FF;
STICKLINE(SJC>REF(SJC,1) AND SJC>0,SJC,0,4,0),COLOR000099;
STICKLINE(SJC>REF(SJC,1) AND SJC>0,SJC,0,3,0),COLOR0000CC;
STICKLINE(SJC>REF(SJC,1) AND SJC>0,SJC,0,1.5,0),COLOR0000FF;
STICKLINE(SJC>REF(SJC,1) AND SJC>0,SJC,0,0.5,0),COLORCC00FF;
VAR2:=EXPMEMA(EMA(WINNER(C)*100,2),1);
STICKLINE(VAR2>50 AND COST(60)<C AND SJC>0,SJC,0,4,0),COLOR990099;
STICKLINE(VAR2>50 AND COST(60)<C AND SJC>0,SJC,0,3,0),COLORBB00BB;
STICKLINE(VAR2>50 AND COST(60)<C AND SJC>0,SJC,0,2,0),COLORDD00DD;
STICKLINE(VAR2>50 AND COST(60)<C AND SJC>0,SJC,0,1,0),COLORFF00FF;
STICKLINE(SJC<REF(SJC,1) AND SJC>0,SJC,0,4,0),COLORCC9900;
STICKLINE(SJC<REF(SJC,1) AND SJC>0,SJC,0,3,0),COLORDDBB00;
STICKLINE(SJC<REF(SJC,1) AND SJC>0,SJC,0,2,0),COLORBBDD00;
STICKLINE(SJC<REF(SJC,1) AND SJC>0,SJC,0,1,0),COLORAAFF00;

625200581.png

625200581.png
 

回复

使用道具 举报

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

本版积分规则