A1:=(HIGH+LOW+2*CLOSE)/4; MA1:=MA(A1,5); MA2:=MA(A1,10); SK:=REF(MA1,1)>REF(MA2,1); SS:=REF(MA1,1)MA2; XG:SK OR SS;