M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);M3:=MA(CLOSE,20);TT:=BARSLAST(CROSS(M2,M1));AA:=EVERY(M1>M3,TT);BB:=M1>REF(M1,1) AND M2>M1;CC:=BB OR CROSS(M1,M2); XG:AA AND CC;