XA_1:=MA(CLOSE,5);
XA_3:=MA(CLOSE,30);
XA_5:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
XA_7:=EMA(CLOSE,5)-EMA(CLOSE,10);
XA_9:=REF(XA_8,1);
XA_11:=XA_10-XA_9;
XA_13:=XA_7;
XA_15:=IF(OPEN<=XA_1 AND OPEN<=XA_2 AND OPEN<=XA_3 AND CLOSE>=XA_1 AND CLOSE>=XA_6 AND XA_11>0 AND XA_14>0,0.8,0);
XA_17:=EMA(XA_16,6);
XA_19:=CROSS(XA_17,XA_18);
XA_21:=MA(CLOSE,20);