DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
W:=MA((LLV(LOW,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*100,3);
W2:=MA((LLV(LOW,210)-CLOSE)/(HHV(HIGH,210)-LLV(LOW,210))*100,3);
A:=CROSS(-5,W) AND DIF>=DEA AND MACD>=0 OR CROSS(-5,W2) AND DIF>DEA AND MACD>=0;
B:=EXIST(A,15) AND C/REFV(C,1)>1.03 ;
CROSS(C,MA(C,5)) AND BARSLAST(B)<20;