A1:=MA(C,5);
A2:=MA(C,10);
A3:=MA(C,20);
A4:=MA(C,30);
A1>A2 AND A2>A3 AND A3>A4 AND A1>REF(A1,1) AND A2>REF(A2,1) AND A3>REF(A3,1) AND A4>REF(A4,1) AND O>=MA(C,10) AND C<=MA(C,5) AND ABS(C-O)/REF(C,1)<0.03 AND C>O;
A1:=MA(C,5);
A2:=MA(C,10);
A3:=MA(C,20);
A4:=MA(C,30);
A1>A2 AND A2>A3 AND A3>A4 AND A1>REF(A1,1) AND A2>REF(A2,1) AND A3>REF(A3,1) AND A4>REF(A4,1) AND O>=MA(C,10) AND C<=MA(C,5) AND ABS(C-O)/REF(C,1)<0.03 AND C>O;