RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=DIF-DEA;

VOL_MA:=MA(VOL,20);

PRICE_MA5:=MA(CLOSE,5);

PRICE_MA20:=MA(CLOSE,20);

COND1:=RSI>55 AND RSI<80;

COND2:=MACD>0;

COND3:=VOL>VOL_MA;

COND4:=CLOSE>PRICE_MA5 AND CLOSE>PRICE_MA20;

COND5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5)*100>3;

COND6:=AMOUNT>5000000;

COND7:=DYNAINFO(17)>0;

RESULT:COND1 AND COND2 AND COND3 AND COND4 AND COND5 AND COND6 AND COND7;