有戏:=(EMA(CLOSE,30)-EMA(CLOSE,34))/EMA(CLOSE,34)*100,COLORRED;
无戏:=(EMA(C,34)-EMA(C,30))/EMA(C,30)*100,COLORCYAN;
XYZ1:=(有戏-无戏),COLORMAGENTA;
XYZ2:=MA(XYZ1,3),COLORYELLOW;
买入:XYZ1>XYZ2 AND TFILTER(XYZ1>XYZ2,XYZ1<XYZ2,1)
AND XYZ1<0 AND C>REF(C,1)*1.03 AND C<REF(C,1)*1.096 AND UPNDAY(CLOSE,2);