The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Finance::GeniusTrader::Indicators::OBV

Overview

On Balance Volume (OBV) is a momentum indicator that relates volume price change.

On Balance Volume was developed by Joe Granville and originally presented in his book New Strategy of Daily Stock Market Timing for Maximum Profits.

Calculation

On Balance Volume is calculated by adding the day's volume to a cumulative total when the security's price closes up, and subtracting the day's volume when the security's price closes down.

If today's close is greater than yesterday's close then : OBV = Yesterday's OBV + Today's Volume

If today's close is less than yesterday's close then : OBV = Yesterday's OBV - Today's Volume

If today's close is equal to yesterday's close then : OBV = Yesterday's OBV

Example

Finance::GeniusTrader::Indicators::OBV->new()

Finance::GeniusTrader::Indicators::OBV::calculate($calc, $day)