In simple terms
Both models buy after a completed H4 closes above the highest price of the preceding 20 bars. The OBV version also requires a new 20-bar high in OBV. At base costs it returned −6.51% and −8.59%, versus −11.54% and −15.89% for the price-only model.
Contents
What OBV measures
On-Balance Volume adds the candle’s traded BTC volume if its close is above the preceding usable close and subtracts it if the close is lower. An equal close leaves OBV unchanged. Each H4 contributes its entire base volume with that sign.
OBVₜ = OBVₜ₋₁ + sgn(Cₜ − Cₜ₋₁) × Vₜ
Data and test windows
We test BTC/USDT spot on Binance in UTC. The two windows cover all of 2022–2023 and 2024–2025. Each starts flat with 10,000 USDT. OBV starts at zero on the first usable H4 of the preceding December.
The 20-bar price breakout
A signal needs a completed H4 and 20 usable consecutive H4 bars immediately before it. Let B be the highest high of those 20 bars. The signal close must be strictly above B. The current bar is excluded from the threshold.
Bₜ = max(Hₜ₋₂₀, …, Hₜ₋₁) · Cₜ > Bₜ
How OBV confirms the breakout
The OBV model requires OBV at the same completed close to be strictly above its highest value in those 20 previous bars. The price-only control uses the same price breakout, with the same entry, size and exit rules.
Mₜ = max(OBVₜ₋₂₀, …, OBVₜ₋₁) · OBVₜ > Mₜ
Entry on the following H4
Use the first price of the exact opening minute of the next H4, within the window. Without a valid archived open and positive volume in that minute, the entry is canceled. A previous position still open through that quote blocks the new entry. We hold at most one unleveraged spot long.
Exit after a failed breakout or 12 bars
Freeze B from the signal. The first usable H4 close at or below B schedules an exit at its closing boundary. Sell from the first archived nonempty minute at or after that time. The 12-slot time limit is 48 hours from entry. The test boundary may arrive earlier. Time and boundary exits take priority on ties.
Cᵤ ≤ Bₜ · u ≥ entry bar · Bₜ fixed
Size, commission and slippage
Use the available USDT balance including the entry commission. Commission is 10 bp per side in the base case and 20 bp in the higher-fee case. Adverse slippage stays at 5 bp per side. One bp equals 0.01%. The opening price of a minute supplies the execution reference.
Missing candles and maximum drawdown
H4 needs 240 consecutive full-duration minutes and positive total volume. One H4 is unusable in the test windows. Drawdown uses the available H4 closing values with estimated exit costs, plus initial and final cash.
The six-bar return to B
Before the position limit, take signals with an available entry quote and six following usable H4 within the window, starting with the entry bar. Mark a return if any of those closes is at or below B. The price-only group includes the OBV-confirmed subset.
| Case | Price candidates | Signals assessed | Closed back at or below B | Return rate |
|---|---|---|---|---|
| 2022–2023 · Price breakout alone | 179 | 179 | 96 | 53.63% |
| 2022–2023 · OBV confirmation | 146 | 146 | 77 | 52.74% |
| 2022–2023 · Rejected by OBV | 33 | 33 | 19 | 57.58% |
| 2024–2025 · Price breakout alone | 242 | 242 | 126 | 52.07% |
| 2024–2025 · OBV confirmation | 190 | 190 | 97 | 51.05% |
| 2024–2025 · Rejected by OBV | 52 | 52 | 29 | 55.77% |
Confirmed and rejected signals
The six-bar return rate was 52.74% for confirmed and 57.58% for rejected signals in 2022–2023. In 2024–2025 it was 51.05% and 55.77%. This comparison uses separate groups and describes follow-through after a signal.
Results at base costs
Both models lost in both windows. OBV reduced the number of trades, the net loss and the maximum drawdown in each. The equity chart shows account values at base costs.
| Case | Net return | Maximum H4 drawdown | Completed trades | Skipped while invested |
|---|---|---|---|---|
| 2022–2023 · Base commission · OBV confirmation | −6.51% | 27.98% | 78 | 68 |
| 2022–2023 · Base commission · Price breakout alone | −11.54% | 33.22% | 94 | 85 |
| 2022–2023 · Higher commission · OBV confirmation | −20.02% | 35.33% | 78 | 68 |
| 2022–2023 · Higher commission · Price breakout alone | −26.70% | 38.00% | 94 | 85 |
| 2024–2025 · Base commission · OBV confirmation | −8.59% | 31.62% | 94 | 96 |
| 2024–2025 · Base commission · Price breakout alone | −15.89% | 37.02% | 118 | 124 |
| 2024–2025 · Higher commission · OBV confirmation | −24.26% | 39.18% | 94 | 96 |
| 2024–2025 · Higher commission · Price breakout alone | −33.57% | 48.80% | 118 | 124 |
Sensitivity to higher fees
The OBV model returned −20.02% and −24.26% with 20 bp commission per side. It still finished ahead of the price-only model. Both lost in both windows. The cost table separates market price movement, slippage and commission.
| Case | Price movement | Slippage | Commission | Net P&L |
|---|---|---|---|---|
| 2022–2023 · Base commission · OBV confirmation | +1,517.33 | 722.90 | 1,445.80 | −651.37 |
| 2022–2023 · Base commission · Price breakout alone | +1,405.87 | 853.41 | 1,706.82 | −1,154.36 |
| 2024–2025 · Base commission · OBV confirmation | +2,228.92 | 1,029.42 | 2,058.83 | −859.33 |
| 2024–2025 · Base commission · Price breakout alone | +2,290.51 | 1,293.16 | 2,586.32 | −1,588.98 |
Read the trade example
The chart shows an OBV-confirmed breakout in February 2024 followed by a close back below B. S marks the signal close, E and X the modeled fills. The lower panel shows OBV minus the fixed prior OBV high at S. The archive verifies both minute opening prices.
- S · UTC
- E · UTC
- X · UTC
- E · USDT/BTC
- 49,942.75890000
- X · USDT/BTC
- 48,703.10626500
- B · USDT/BTC
- 48,826.81
- OBV above prior high · BTC
- +7,998.01290000
- Failed-breakout close · USDT/BTC
- 48,727.47
Check the two archives
We verify the 1m and 4h ZIP hashes and compare reconstructed with archived H4. Seven usable H4 differ in volume and trade count while their OHLC matches. Repeating the test with the published H4 at the same usable timestamps gives the same executions and results.
Reproduce the results
The JSON includes the fixed protocol, checksums, OHLCV, OBV, signals, account marks and independent checks. The CSV lists every closed trade across the eight scenarios. Dates use UTC and fees are accounted for on both sides.
What the study supports
In these two windows the OBV filter improved the relative outcome after costs, while each account still lost money. Results apply to these spot data, this filter and these exit rules. The simulation uses fractional BTC and a fixed slippage assumption.
Questions and answers
Why use BTC volume instead of USDT turnover?
This OBV adds or subtracts the traded quantity of the base asset, BTC. The same definition applies throughout.
What happens if the close equals the previous close?
OBV stays at its preceding value. To confirm a breakout it must still be strictly above the maximum of the prior 20 values.
Can the current bar set its own thresholds?
Both thresholds use the preceding 20 completed H4 bars. The signal bar is compared with them after it closes.
Does a wick below B trigger an exit?
The model uses a completed H4 close at or below B. The sale reference comes from the first available minute open after that close.
Can a trade occur on an opening quote used to exit?
An existing position open through that quote blocks the new entry. Later valid signals can still be considered.
What changes with higher fees?
Commission rises from 10 to 20 bp per side. Slippage remains 5 bp per side.
Sources and reproducibility
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.
Risk disclosure
Educational historical simulation. BTC can lose value. Actual quotes, execution and costs can differ. A close-based exit leaves the account exposed to intrabar moves.