N:=24;
AN:=MA(C,N);
A:=REF(C,4)>REF(C,3);
A1:=REF(C,3)>REF(C,2);
A2:=REF(C,2)>REF(C,1);
A3:=A AND A1 AND A2;
A4:=C/REF(C,1)>1.065;
A5:=BArslAST(A4);
A6:= A5>6 AND C>REF(C,1)*1.03 ;
B:=EMA(MAX(C-REF(C,1),0),5)/EMA(Abs(C-REF(C,1)),5)*100;
B1:=EMA(MAX(C-REF(C,1),0),8)/EMA(ABS(C-REF(C,1)),8)*100;
B2:=REF(C,3)>REF(C,2) AND REF(C,2)>REF(C,1) AND REF(C,4)>REF(C,3);
B3:=crOSS(B,20) AND (CROSS(B,B1) );
XG:= A3 AND A6 AND B3 ;
D1:=L
D2:=C>AN;
D3:=C/REF(C,1)
D4:=CROSS(C,AN) AND V/REF(MA(V,5),1)>1.016;
XG1:= D3 AND D4 AND D1 AND D2 ;
XG1 AND XG;