V00:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
V01:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
V02:= REF(HIGH,2) > HIGH AND REF(LOW,2) > LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);
V1:= COUNT(V00,4)>=2 AND HHVBARS(HIGH,4) = 1 AND V01;
V2:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 2 AND V02;
V3:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 1 AND V01;
V4:= COUNT(V00,6)>=2 AND HHVBARS(HIGH,6) = 2 AND V02;
XG: V1 OR V2 OR V3 OR V4;