大昌001 发表于 2016-2-23 19:47

随势老师编写的MACD指标

DIF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIF,9),LINETHICK2;
IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORRED,LINETHICK2;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORFF00FF;
MACD:(DIF-DEA)*2,COLORSTICK;


FF:BARSLASTCOUNT(DEA>REF(DEA,1))NODRAW;
F1:BARSLASTCOUNT(DIF>REF(DIF,1))NODRAW;
DRAWICON(FF=1 AND F1<>1,MACD,2);
DRAWICON(F1=1 AND FF<>1 ,MACD,1);
DRAWICON(F1=1 AND FF=1 ,MACD,7);


金燕369 发表于 2020-3-20 12:04

谢谢分享谢谢

kjjzsl 发表于 2020-3-23 10:20

谢谢分享谢谢
页: [1]
查看完整版本: 随势老师编写的MACD指标