A_1:=(MAX(REF(CLOSE,1),REF(OPEN,1))-MIN(REF(CLOSE,1),REF(OPEN,1)))/2+MIN(REF(CLOSE,1),REF(OPEN,1));
A_2:=(MAX(REF(CLOSE,2),REF(OPEN,2))-MIN(REF(CLOSE,2),REF(OPEN,2)))/2+MIN(REF(CLOSE,2),REF(OPEN,2));
A_3:=(MAX(REF(CLOSE,3),REF(OPEN,3))-MIN(REF(CLOSE,3),REF(OPEN,3)))/2+MIN(REF(CLOSE,3),REF(OPEN,3));
A_4:=(MAX(REF(CLOSE,4),REF(OPEN,4))-MIN(REF(CLOSE,4),REF(OPEN,4)))/2+MIN(REF(CLOSE,4),REF(OPEN,4));
A_5:=(A_1+A_2+A_3)/3;
A_6:=A_5<A_4;
A_7:=REF(vol,1)/REF(VOL,4);
A_8:=A_7<1;
A_9:=VOL>=REF(VOL,1);
A_10:=CLOSE>REF(HIGH,1);
A_11:=(REF(HIGH,6)-REF(LOW,4))/REF(LOW,4)>0.1 OR (REF(HIGH,6)-REF(LOW,1))/REF(LOW,1)>0.146;
A_12:=crOSS(CLOSE,REF(HIGH,1)) AND CROSS(CLOSE,REF(HIGH,2)) AND CROSS(CLOSE,REF(HIGH,3));
A_13:=CLOSE/REF(CLOSE,1)>=1.04;
XG:A_6 AND A_8 AND A_9 AND A_10 AND A_11;
DRAWBAND(XG,RGB(255,0,0),0,RGB(0,255,0));