VAR3:=(((CLOSE - LLV(LOW,8)) / (HHV(HIGH,8) - LLV(LOW,8))) * 100);
VAR4:=SMA(VAR3,2,1);
VAR5:=SMA(VAR4,2,1);
VAR6:=((CLOSE / REF(CLOSE,3)) = 1.1);
VAR7:=BACKSET(VAR6,3);
VV:=(VAR7 AND (COUNT(VAR7,3) = 1));
XG1:IF(VV,1,0);
XG2T:IF(COUNT(VV,2) =1,1,0);
XG3T:IF(COUNT(VV,3) =1,1,0);