A1:=IF(C REF(C,1)*1.015,1,0);
A2:=IF(C REF(C,1)*1.02,2,0);
A3:=IF(C REF(C,1)*1.03,3,0);
A4:=IF(C REF(C,1)*1.04,4,0);
A5:=IF(C REF(C,1)*1.05,5,0);
A6:=IF(C REF(C,1)*1.06,6,0);
A7:=IF(C REF(C,1)*1.07,7,0);
A8:=IF(C REF(C,1)*1.08,8,0);
A9:=IF(C REF(C,1)*1.09,9,0);
A10:=IF(C REF(C,1)*1.099,10,0);
X1:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(A1,A2),A3),A4),A5),A6),A7),A8),A9),A10);
X2:=(MA(X1,5)+MA(C,3))*0.66;
X3:=MA(X2,5);
XG:(LONGCROSS(X1,2,5) OR LONGCROSS(X1,2,6) OR LONGCROSS(X1,1,7)) AND CROSS(X2,X3);