On-Balance Volume Calculator
Calculate a MetaQuotes-compatible On-Balance Volume sequence from ordered entered closes and one consistent volume measure.
Enter ordered close and volume rows
Use one symbol, timeframe, broker feed and volume type throughout the sequence.
One row per line. Commas, semicolons or tabs are accepted. Volume may be zero but cannot be negative.
Entered-series On-Balance Volume
Entered Volume Indicators 1.0.0.
| Label | Close | Volume | Close relation | Contribution | OBV |
|---|
How On-Balance Volume is calculated
Higher close: OBV = prior OBV + current volume
Lower close: OBV = prior OBV − current volume
Equal close: OBV = prior OBV
Version 1.0.0 follows the published MetaQuotes source and seeds the first value with the first entered volume. Later rows add, subtract or retain the current volume according to the close-to-close comparison.
The absolute level depends on the seed and available history. This page reports entered arithmetic only and does not label trend, breakout, confirmation or divergence.
Assumptions and limits
- Rows must be oldest to newest and use one symbol, timeframe, broker feed and volume type.
- Spot-forex tick volume counts price changes and is not centralized exchange turnover.
- Labels are descriptive; the page does not sort dates, fetch candles or fill missing observations.
- The first-volume seed and entered history affect the absolute OBV level.
- A rising or falling sequence is not classified as a trade, trend or confirmation signal.
Worked example from the audited fixture
How to interpret the result
OBV 440 is the cumulative result of this exact entered path and seed. Its absolute level changes when earlier history or the feed’s volume units change. The latest subtraction does not establish distribution, divergence or future direction.
Frequently asked questions
- Enter at least two ordered close-and-volume rows from one consistent symbol, timeframe, feed and volume type.
- Version 1.0.0 follows the published MetaQuotes source and uses the first entered volume as the first OBV value.
- The current entered volume is added to the prior OBV value.
- The current entered volume is subtracted from the prior OBV value.
- The prior OBV value is carried forward unchanged.
- MetaTrader commonly supplies tick volume, which counts price changes rather than centralized executed volume.
- Not necessarily. The feed, volume type, available history and seed starting point can change the absolute sequence.
- No. The page reports the entered recurrence without trend, breakout, confirmation, divergence, entry or exit labels.
Sources and methodology
- MetaQuotes Code Base — On Balance Volume — Published first-volume seed and close-comparison recurrence.
- MetaTrader 5 Help — On Balance Volume — Official formula and indicator context.
- MQL5 Reference — iOBV — Official applied-volume interface and single-buffer contract.
Continue entered indicator analysis
Compare the chart feed and trading terms
Confirm whether your platform supplies tick or real volume for the selected instrument, and keep the same feed and volume type across every entered observation.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

