Skip to content

On-Balance Volume (OBV)

Cumulative volume: added on days when price rises, subtracted on days when it falls. On-Balance Volume (OBV) adds the entire day’s volume to the cumulative total when the closing price rises and subtracts it when it falls. A rising OBV along with a rising price confirms an uptrend. A divergence (price rises, OBV falls) signals a weakening trend.

Formula:

If Close > Close_prev: OBV = OBV_prev + Volume
If Close < Close_prev: OBV = OBV_prev - Volume
If Close = Close_prev: OBV = OBV_prev
TriggerDirectionConditionDescription
Level cross up🟢 BuyThe indicator value crossed the specified level from below.The OBV line crosses the configurable level Level from below. Level is set in the trigger parameters.
Level cross down🔴 SellThe indicator value crossed the specified level from above.The OBV line crosses the Level level from above. Level is set in the trigger parameters.
Value above level by N🟢 BuyThe indicator value rose above the level by the specified distance.The OBV line crosses the Level + Distance mark moving upward. The distance delays entry until a confirmed level breakout.
Value below level by N🔴 SellThe indicator value fell below the level by the specified distance.The OBV line crosses the LevelDistance mark moving downward.
Value rising🟢 BuyThe indicator value is rising relative to the previous bar.The OBV line is higher on the current bar than on the previous one — upward momentum.
Value falling🔴 SellThe indicator value is falling relative to the previous bar.The OBV line is lower on the current bar than on the previous one — downward momentum. Fires on every declining bar.
Slope turns positive🟢 BuyThe indicator’s slope turned positive — an upward reversal.The OBV line changes its slope from downward to upward — the indicator stopped falling and started rising.
Slope turns negative🔴 SellThe indicator’s slope turned negative — a downward reversal.The OBV line changes its slope from upward to downward — the indicator stopped rising and started falling.
Zero cross up🟢 BuyThe indicator line crossed zero from below — a buy signal.The OBV line crosses the zero level from below.
Zero cross down🔴 SellThe indicator line crossed zero from above — a sell signal.The OBV line crosses the zero level from above.
ParameterTypeDefaultRange / Values
Level (Value above level by N, Value below level by N, Level cross up, Level cross down)float0
Distance (Value above level by N, Value below level by N)float00>