随势老师编写的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);
谢谢分享谢谢 谢谢分享谢谢
页:
[1]