M1:=5;
M2:=10;
MA1:=MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
A:=MA1>=MA2 AND MA2>REF(MA2,1)AND REF(MA1,1)>REF(MA2,1);
B:=REF(MA1,1)<=REF(MA2,1)+REF(MA2,1)*0.023 AND MA1<=MA2+MA2*0.023;
A1:=REF(MA1,1)<REF(MA1,3) AND MA1>REF(MA1,1);
B1:=REF(MA1,3)>REF(MA2,3);
XG:A AND B AND A1 AND B1; |