同花顺最牛MACD指标公式

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

DIFF :=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA := EMA(DIFF,5);
MACD :=2*(DIFF-DEA);
gj:=MAX(C,O);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,9,0),color0000FF;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,9,0),color0099FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,9,0),colorFF8800;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,9,0),color00CE00;
OSC:=100*(CLOSE-MA(CLOSE,11.5));
MAOSC:=EMA(OSC,4.5);
STICKLINE(MACD<REF(MACD,1)AND CROSS(MAOSC,OSC),0,MACD,5,0),COLORFF0000;
//{www.gupang.com 股旁网_同花顺股票指标公式}
STICKLINE(MACD>REF(MACD,1)AND CROSS(OSC,MAOSC),0,MACD,5,0),COLOR09FFFF;
F1:=ZIG(5,20);
DRAWICON(CROSS(DIFF,DEA) AND F1> REF(F1,1),DEA,'卖');
DRAWICON(CROSS(DEA,DIFF),DEA,'买');

202108202242.jpg

202108202242.jpg

 

回复

使用道具 举报

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

本版积分规则