利用多周期macd判断趋势

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

判断趋势有多种方法,其中利用多周期macd判断,不失为一种好方法
 

DIFF20:=EMA(C,12*20)-EMA(C,26*20);
DEA20:=EMA(DIFF20,9*20);
FILLRGN(DIFF20,DEA20,DIFF20>=DEA20,RGB(0,205,127));
FILLRGN(DIFF20,DEA20,DIFF20<DEA20,RGB(0,255,255));
0,colorwhite;
DIFF5: EMA(C,12*5) - EMA(C,26*5),colorwhite;
DEA5:EMA(DIFF5,9*5),coloryellow,LINETHICK2;
FILLRGN(DIFF5,DEA5,DIFF5>=DEA5,RGB(255,255,0));
DIFF: EMA(c,12) - EMA(c,26);
DEA:EMA(DIFF,9);
MACD5:(DIfF5-DEA5)*2,COLORSTICK;
FILLRGN(DIFF,DEA,DIFF>DEA,RGB(255,0,255));

140388223.bmp

140388223.bmp

回复

使用道具 举报

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

本版积分规则