After that, volume for each bar is taken into account with a sign: positive or negative, based on the mentioned comparison.
However, instead of comparing two Close prices of adjacent bars, it compares change in typical price with a so-called 'cut off' value based on standard deviation. The Volume Flow Indicator is a long-term trend following study which uses the same principle as On Balance Volume.