N1:=9;
mtm:=C-REF(C,1);
VAR1:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(Abs(MTM),N1),N1);
VAR2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
LC := REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
EEA:=(C-REF(C,26))/REF(C,26)*10;
抄底:crOSS(RSI,20) AND VAR1<-45 AND VAR2<12 AND EEA<-2;