Indicator guide

On-Balance Volume Backtesting Guide

On-Balance Volume is a cumulative volume measure that adds or subtracts volume by price direction. A valid backtest converts its readings into explicit, time-aware rules and evaluates them after costs without assuming profitability.

How On-Balance Volume is commonly used

Researchers use On-Balance Volume for OBV trend filters, breakouts, and price-volume confirmation. The indicator should be calculated only from information available at each simulated decision time.

Parameters to define

State the price source, smoothing, and comparison window. Parameter choices affect signal frequency and lag, so compare a limited, predefined range rather than selecting one value after reviewing the full history.

How to evaluate a test

Review net return, maximum drawdown, volatility, trade count, win/loss size, exposure, and behavior across subperiods. Compare with a simple benchmark and test unseen data.

Research checklist

  • price source, smoothing, and comparison window
  • Signal timing and execution price
  • Fees, spread, and slippage
  • Out-of-sample stability

Questions and answers

How do I backtest On-Balance Volume?

Define the On-Balance Volume calculation and signal rules, prevent future data from entering each decision, apply realistic execution costs, and validate on a separate period.

Continue your research