TickAxis
Indicator guide

On-balance volume

Accumulates volume according to the direction of closing-price changes.

Pane or chart instructionSwitch to Chinese

Purpose and construction

Accumulates volume according to the direction of closing-price changes.

On-balance volume is applied to the chart series using the local definition below. Each period counts one bar on the active chart. The same period therefore covers a different amount of time on daily and intraday charts.

How to read it

Compare the cumulative slope with price to assess participation.

Confirm the inputs and settings before comparing the indicator with price. On an open bar, close, extremes and volume can still change, so the reading can update before the bar closes.

Parameters

ParameterDefault
M30

Parameter names match the variables in the calculation. After changing a lookback or smoothing period, recalculate on the same data to compare response speed. Defaults from another platform may not match this definition.

Original illustrated case

This original daily-bar case moves through an advance, a pullback and a wider-range recovery. It does not represent a real security. Where available, outputs are calculated by the project’s formula engine using the defaults above.

Original On-balance volume simulated case showing price, outputs and three observation points
Original educational figure. The three lettered points correspond to the observations below.

From bar 91 to bar 180, the close rose from 103.7631 to 115.7559. Compare each output below, then use the reading rules above to distinguish direction, momentum, participation or a pattern condition.

PointBarCloseVolumeCalculated outputs
A91103.763114187OBV: 41769MAOBV: 169897.5
B131102.704119368OBV: -23809MAOBV: 111750.8333
C180115.755915024OBV: 284782MAOBV: 218867.0667

At B, cumulative signed volume is −23,809 while its average is 111,750.8333. At C, it has risen to 284,782 above its average of 218,867.0667. This is a change in accumulated participation on the chosen history, not a money-flow amount or a directly comparable absolute score across securities.

To reproduce: retain the same OHLCV series and default settings, then compare outputs bar by bar. Warm-up bars can have no value. The case-generation script and local definition are stored with the project, so plotted curves are calculated rather than hand-drawn.

Local calculation

The local definition is shown below. Display labels can be translated; the case calculation uses original source identifiers. A shared indicator name does not guarantee identical calculations across platforms.

VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE==REF(CLOSE,1),0,VA),0);
MAOBV:MA(OBV,M);

Limitations

  • Compare the cumulative slope with price to assess participation.
  • Timeframe, adjustments, warm-up length and data units affect results. Align these before comparing charts.

Questions

Why can On-balance volume differ across platforms?

Compare inputs, default periods, smoothing, offsets and data units before comparing the final value. This guide uses the local source definition rather than assuming that an external example has the same settings.

Does the example show a real trade?

No. The figure and table use simulated data to explain calculations and chart reading. They contain no real orders and make no return or win-rate claim.

References

The calculation comes from the project’s indicator registry. Primary references below provide related conceptual reading. Figures and numerical cases are independently produced for this project.