以下是通达信经典买卖指标 MACD买卖(无源码的请下载附件导入)
DIF:=EMA(CLOSE,12)-EMA(CLOSE,150);
DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
启动:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2)
AND REF(MACD,2)<REF(MACD ,3) AND REF(MACD ,3)<REF(MACD ,4);
终止:=MACD>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2)
AND REF(MACD,2)>REF(MACD,3) AND REF(MACD ,3)>REF(MACD ,4);
STICKLINE(启动,0,-2,2,0),COLORYELLOW;
分界:0,COLORYELLOW;
DRAWICON(启动,-2,1);
STICKLINE(终止,0,2,2,0),COLORCYAN;
DRAWICON(终止,3,2);
656355145.jpg
|