通达信蓝降红升公式

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

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIFF,9);
 MA(C,8),COLORWHITE;
 MA(C,21),COLORYELLOW;
 多:STICKLINE(DIFF>DEA,C,O,3.5,0),COLORRED;
 STICKLINE(DIFF>DEA,H,L,0,0),COLORRED;
 空:STICKLINE(DIFF<=DEA,C,O,3.5,0),COLORBLUE;
 STICKLINE(DIFF<=DEA,H,L,0,0),COLORBLUE;
 DRAWTEXT(CROSS(DIFF,DEA),L-0.2,'买'),COLORWHITE;
 DRAWTEXT(CROSS(DEA,DIFF),H+0.2,'卖'),COLORGREEN;
 

849566913.png

849566913.png

回复

使用道具 举报

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

本版积分规则