MA1:MA(CLOSE,5)DOTLINE;
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
A11:=(EMA(CLOSE,5) - EMA(CLOSE,10));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
开始做多:=MACD>0;
主力做多:=BARSLASTCOUNT((A11 >= 0))=1 AND 开始做多;
STICKLINE(主力做多,C,O,2,0),COLORRED;
DRAWICON(主力做多,L*1.01,9);