选股源码:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
FILTER(BARSLAST(DIF DEA) 25 AND DIF REF(DIF,1),10);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);{www.9m8.cn 九毛八公式指标网}
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWTEXT(FILTER(BARSLAST(DIF DEA) 25 AND DIF REF(DIF,1),10),DEA,'红包'),COLORRED;
{DRAWTEXT(FILTER(DIF 0 AND REF(DIF,1) =REF(DIF,2) AND DIF REF(DIF,2) AND DIF =DEA,50),DIF,'买');};