AA:=EMA(CLOSE,17);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
boll:=MA(CLOSE,25);
T1:= crOSS(C,AA) AND (C-REF(C,1))/REF(C,1)>0.05; {>0.099涨停}
T2:=EXIST(CROSS(DIF,DEA),3) AND DEA>0;
T3:=EXIST(C,BOLL);
XG:T1 AND T2 AND T3;
AA0:=(CLOSE - MA(CLOSE,5)) / MA(CLOSE,5);
VAR0:=(AA0)*100;
DIFF:=EMA(CLOSE,9) - EMA(CLOSE,26);
DEA:=EMA(DIFF,12);
macd:=2*(DIFF-DEA);
ZC:=50*(IF(MACD>REF(MACD,1) AND REF(MACD,1)>0 AND REF(MACD,2)>REF(MACD,1),0.2,0));
优:=MACD.MACD>0 AND ZC;
XG:=MACD.MACD>0;
红:=AA0>0;
AA1:=5;
VAR01:=EMA(VAR0,AA1) * AA1,COLORMAGENTA;
钱:=crOSS(VAR01,红);
AA:=C>MA(C,10);
信号成立:=BARSLASTCOUNT(红 AND AA AND XG)=1;
XG1:BARSLASTCOUNT(红 AND 信号成立)=1;

