ZF:=CLOSE/ref(CLOSE,1);
A1:=ZF<1.05;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
A3:=REF(RSI,2)>REF(RSI,3) AND REF(RSI,1)<(REF(RSI,2)) AND RSI>(REF(RSI,2));
JD:=ATAN((EMA(C,13)/REF(EMA(C,13),1)-1)*100)*57.3;
PX:=cross(JD,8);
XG:PX and A1 and A3;