均线突破主图指标 通达信公式(附图)

[复制链接]
查看63 | 回复0 | 2021-8-20 17:25:30 | 显示全部楼层 |阅读模式

N:=5;
AMV0:=VOL*(O+C+H+L)/4;
势:EMA(AMV0,21)/EMA(VOL,21)COLORFFFFCC,LINETHICK2;
压:6*HHV(势,2)-5*势,COLOR00FF33,LINETHICK2;
托:2*势-压,COLORRED,LINETHICK2;
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,30);
D1:=BARSLAST(CROSS(M1,M2));
D2:=BARSLAST(CROSS(M1,M3));
D3:=BARSLAST(CROSS(M2,M3));
T1:=CROSS(M2,M3);
T2:=D1>=D2 AND D2>=D3;
T3:=COUNT(CROSS(M2,M1) OR CROSS(M3,M2) OR CROSS(M3,M1),D1)=0;
T4:=REF(M1<M3 AND M2<M3,D1+1);
突破:=T1 AND T2 AND T3 AND T4;
获利盘90均线:EMA(COST(90),N),COLORLIBLUE,LINETHICK2;
获利盘30均线:EMA(COST(30),N),COLOR00FFFF,LINETHICK2;
DRAWICON(CROSS(ZIG(3,13),REF(ZIG(3,13),1)),LOW-0.1,1);
DRAWICON(CROSS(REF(ZIG(3,13),1),ZIG(3,13)),HIGH+0.05,2);
DRAWICON(CROSS(PWINNER(14,CLOSE),0.9) AND LWINNER(5,CLOSE)>0.9,HIGH+0.05,5);
DRAWTEXT(突破>0,LOW,'突破'),COLORFF00FF;

14PB54Z330-2c40.jpg

14PB54Z330-2c40.jpg

回复

使用道具 举报

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

本版积分规则