OBV is a running total that adds the candle's volume when the close rises and subtracts it when the close falls.
| Category | Volume |
|---|---|
| Formula | OBV = previous OBV + volume if close > previous close; minus volume if close < previous close; unchanged if equal. |
| Default settings | No settings |
| What it is used for | Checking whether volume is flowing the same way as price. |
| Limits | In forex the volume is tick volume from your broker, not true volume, so OBV is only a rough guide. Only the direction of its trend carries meaning, not its level. |
| Our own tests | It had a negative net return after costs on all three instruments in this backtest. It did not beat simply holding on any of them (gold and Bitcoin both rose strongly over these years, which flatters buy and hold). On no instrument did the timing beat the placebo at the 95% level, so these results are not distinguishable from luck. |
What our own test found
Rule tested: Long when OBV is above its 20-period average, short when below.
It had a negative net return after costs on all three instruments in this backtest. It did not beat simply holding on any of them (gold and Bitcoin both rose strongly over these years, which flatters buy and hold). On no instrument did the timing beat the placebo at the 95% level, so these results are not distinguishable from luck.
| Instrument | Net return after costs | Buy and hold | Trades | Worst drawdown | Second half only | Beat the placebo |
|---|---|---|---|---|---|---|
| Gold (XAU/USD) | -3% | +123% | 220 | 33% | +10% | 42% |
| EUR/USD | -13% | -8% | 214 | 22% | -7% | 27% |
| Bitcoin (BTC/USD) | -66% | +379% | 207 | 78% | -28% | 23% |
How we tested it
Same protocol for every indicator, fixed before we looked at any result and with no tuning. Daily candles from a demo feed, which we keep as a saved copy so that our numbers stay the same: Gold (XAU/USD) May 2021 to Oct 2026; EUR/USD May 2021 to Oct 2026; Bitcoin (BTC/USD) Dec 2022 to Oct 2026. The signal is read at the close and held through the next day, so there is no look-ahead. Costs are an assumption, not a measurement: Gold (XAU/USD) 0.30 USD, EUR/USD 1.0 pip, Bitcoin (BTC/USD) 25 USD per spread, charged on every flip. Two yardsticks: simply buying and holding, and a timing placebo, the same trades rotated to random dates 1,000 times, which keeps the number of trades and the long and short share but destroys the timing. The last column of the table is the share of those placebo runs the rule beat; 95% or more would suggest the timing carried information. Volume is tick volume from the broker, not exchange volume.
Before relying on any indicator rule, test it with costs and a baseline: How to test a strategy. Other indicators with full lessons and real-data tests are in the indicator reference.
Related indicators
Frequently asked questions
Is OBV reliable in forex?
Less so. Forex has no central volume figure, so OBV is built from one broker's tick counts.
Definitions are the standard published ones. The test results above come from our own data with the protocol stated; they describe the past and are not a forecast.
Educational content only, not financial advice. Trading involves substantial risk of loss. Read the full risk disclaimer.