VAR1:=IF((CLOSE > OPEN),((CLOSE - OPEN) * VOL),IF((CLOSE < OPEN VOL),0));VAR2:=IF((CLOSE> REF(CLOSE,1)),((CLOSE - REF(CLOSE,1)) * VOL),IF((CLOSE < REF VOL),0));VAR3:=IF((OPEN> REF(CLOSE,1)),((OPEN - REF(CLOSE,1)) * VOL),IF((OPEN < REF VOL),0));VAR4:=IF((CLOSE> OPEN),((OPEN - CLOSE) * VOL),0));VAR5:=IF((CLOSE < REF> REF(CLOSE,1)),((REF(CLOSE,1) - CLOSE) * VOL),0));VAR6:=IF((OPEN < REF> REF(CLOSE,1)),((REF(CLOSE,1) - OPEN) * VOL),0));VAR7:=(CLOSE > OPEN);VAR8:=(CLOSE > REF(CLOSE,1));VAR9:=(OPEN >