MA 10:=MA (closing,10);
MA60:=MA (close to, 60);
pday 1:= bars last(CROSS(MA5,MA60));
pday 2:= bars last(CROSS(ma 10,MA60));
PDAY3 :=BARSLAST (high =HHV (high, pday 2)););
pday 4:= bars last(CROSS(ma 10,MA5));
PDAY5:=BARSLAST(CROSS(MA5,ma 10));
a 1:= pday 1 & gt; PDAY2 and PDAY2 & gtPDAY3 and PDAY3 & gtPDAY4 and PDAY4 & gtPDAY5 and PDAY5 & lt5;
A2:= COUNT(CROSS(MA 10,MA5),pday 2)= 1;
a3:= MA5 & gt; MA60 and ma10 >; MA60
XG:(A 1 and A2 and A3) and filters (A 1 and A2 and a3,5);