var2:=REF(CLOSE,17)<REF(HHV(HIGH,250),18);
var3:=REF(CLOSE,18)<REF(HHV(HIGH,250),19);
var4:=REF(CLOSE,19)<REF(HHV(HIGH,250),20);
var5:=REF(CLOSE,20)<REF(HHV(HIGH,250),21);
var6:=CLOSE>=REF(HHV(HIGH,250),1);
var7:=REF(CLOSE,1)<REF(HHV(HIGH,250),2);
var8:=REF(CLOSE,2)<REF(HHV(HIGH,250),3);
var9:=REF(CLOSE,3)<REF(HHV(HIGH,250),4);
var10:=REF(CLOSE,4)<REF(HHV(HIGH,250),5);
var11:=REF(CLOSE,5)<REF(HHV(HIGH,250),6);
var12:=REF(CLOSE,6)<REF(HHV(HIGH,250),7);
var13:=REF(CLOSE,7)<REF(HHV(HIGH,250),8);
var14:=REF(CLOSE,8)<REF(HHV(HIGH,250),9);
var15:=REF(CLOSE,9)<REF(HHV(HIGH,250),10);
var16:=REF(CLOSE,10)<REF(HHV(HIGH,250),11);
var17:=REF(CLOSE,12)<REF(HHV(HIGH,250),13);
var18:=REF(CLOSE,13)<REF(HHV(HIGH,250),14);
var19:=REF(CLOSE,14)<REF(HHV(HIGH,250),15);
var20:=REF(CLOSE,16)<REF(HHV(HIGH,250),17);
var22:=var2 AND var3 AND var4 AND var5 AND var6 AND var7 AND var8 AND var9;
var26:=var10 AND var11 AND var12 AND var13 AND var14 AND var15 AND var16;
XG:var22 AND var26 AND var17 AND var18 AND var19 AND var20;