通达信指数均线MACD主图指标公式

[复制链接]
查看144 | 回复0 | 2021-8-20 20:01:37 | 显示全部楼层 |阅读模式
本文指标含有选股公式如下:

指数均线MACD主图之多选股指标公式

M1:=5;
M2:=10;
M3:=20;
M4:=50;
M5:=100;
M6:=250;
EXP5:EMA(CLOSE,5);
EXP10:EMA(CLOSE,10),COLORGREEN;
EXP20:EMA(CLOSE,20),COLORRED;
EXP50:EMA(CLOSE,50),COLORFF00FF;
EXP100:EMA(CLOSE,100),COLORYELLOW;
EXP200:EMA(CLOSE,200),COLORFF0000 ;
DIFF:=EMA(CLOSE,6)-EMA(CLOSE,12);
DEA:=EMA(DIFF,9);
A:=MA(C,8),COLORRED;
B:=MA(C,21),COLORGREEN;
多头1:=STICKLINE(DIFF>DEA,C,O,3,0),COLORRED;
E:=STICKLINE(DIFF>DEA,H,L,0,0),COLORRED;
空头1:=STICKLINE(DIFF<=DEA,C,O,3,0),COLORGREEN;
F:=STICKLINE(DIFF<=DEA,H,L,0,0),COLORGREEN;
DRAWTEXT(CROSS(DIFF,DEA),L*0.999,'多'),COLORFF00FF;
DRAWTEXT(CROSS(DEA,DIFF),H*1.003,'空'),COLORYELLOW;

202108201210.jpg

202108201210.jpg

 

回复

使用道具 举报

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

本版积分规则