DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA);
QS:=Abs((crOSS("MacD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09;
DRAWTEXT(ABS(QS)>0,0.2,'买入'),COLORRED;
XG:ABS(QS)>0;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA);
QS:=Abs((crOSS("MacD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09;
DRAWTEXT(ABS(QS)>0,0.2,'买入'),COLORRED;
XG:ABS(QS)>0;