ArchitectureStrategiesResearchWhy UsPricing
Volume Accumulation Indicator Volume Indicators

OBV: On Balance Volume

Running cumulative volume total adding volume on up-days and subtracting volume on down-days.

Visual Rule Syntax: @OBV(close, volume) > @SMA(@OBV(close, volume), 20)

Key Takeaways

  • Tracks cumulative institutional volume accumulation and distribution.
  • Volume precedes price: OBV breakouts frequently lead price breakouts.
  • Divergences between price and OBV highlight unbacked, fragile moves.

What It Means in Simple Terms

On Balance Volume (OBV) connects price to institutional volume. Think of volume as steam and price as the train engine: when institutional investors quietly accumulate shares, volume piles up before the price actually breaks out. OBV keeps a running tally of this volume pressure.

How It Helps You as an Investor

It alerts you to institutional buying before it becomes obvious on the price chart. If a stock's price is flat but its OBV is steadily making higher highs, smart money is accumulating. Conversely, if price makes a new high but OBV fails to follow, the rally lacks real backing.

Visual Node Rule Syntax & How to Plug in Values

Visual Node Expression No Code Required
@OBV(close, volume) > @SMA(@OBV(close, volume), 20)

Parameter Tuning & Market Calibration

OBV has no lookback period—it is a continuous running cumulative line. In systematic rules, we compare OBV to a moving average of itself, such as `@OBV(close, volume) > @SMA(@OBV(close, volume), 20)` to confirm that volume accumulation is accelerating.

Input Fields & Parameters

Field / Parameter Type Default Role & Description
close field Required Historical input price or volume series from market feed.
volume field Required Historical input price or volume series from market feed.

Mathematical Formulation

The mathematical definition of OBV (On Balance Volume) as evaluated within the Saral Engine execution pipeline:

OBVt=OBVt−1+{Vtif Ct>Ct−10if Ct=Ct−1−Vtif Ct<Ct−1OBV_t = OBV_{t-1} + \begin{cases} V_t & \text{if } C_t > C_{t-1} \\ 0 & \text{if } C_t = C_{t-1} \\ -V_t & \text{if } C_t < C_{t-1} \end{cases}

Variable & Parameter Definitions

Adds the day's volume if the close is higher than prior close, subtracts volume if lower, and leaves it unchanged on flat days.

Systematic Strategy Applications

Volume-Confirmed Breakout Entry Confirmation
@OBV(close, volume) > @SMA(@OBV(close, volume), 20) and close > @SMA(close, 50)

Ensure net volume accumulation is positive before taking long trend positions.

Common Questions & Practical Considerations

Can I compare raw OBV numbers between two different companies?

No. The absolute numerical level of OBV depends on how many shares exist and when data collection started. You only evaluate the slope, direction, and crossovers of OBV relative to its own history.

What happens if a stock has a massive one-day block deal?

A massive institutional block deal on a marginally higher day can step-up OBV artificially. Pairing OBV with delivery percentage data provides an extra layer of confirmation.