← Back to Home
OBV Market Regime Strategy XRP-USD Hourly Backtest 37.55% Return

OBV Market-Regime Strategy: XRP-USD Returned 37.55% While Buy-and-Hold Lost 67.86%

Superseded result: A fresh August 14, 2026 vendor-data download produced a different verified result. Use the newer hourly crypto tutorial report. This article remains as a record of the August 11 screen.

Volume can reveal whether price movement has participation behind it. OBVMarketRegimeStrategy combines On-Balance Volume with RSI, relative volume, ADX, ATR, and a trailing stop.

It was the highest-returning qualifying XRP strategy in a one-year hourly screen of the Mega Backtrader Strategy Pack. The focused rerun turned 10, 000into * *13,754.67**, a 37.55% return, while XRP buy-and-hold lost 67.86%.

Explore the complete package: Mega Backtrader Strategy Pack

Verified Result

Metric Result
Strategy return 37.55%
XRP buy-and-hold -67.86%
Excess return 105.41 percentage points
Final portfolio value $13,754.67
Annualized Sharpe ratio 0.97
Maximum drawdown 28.88%
Closed / open trades 562 / 0
Wins / losses 218 / 344
Win rate 38.79%
30-day rolling windows ahead 83.4%
90-day rolling windows ahead 95.5%

The return and benchmark separation are strong. The 562-trade count is simultaneously useful evidence and a major execution-cost warning.

How OBV Becomes a Trading Signal

On-Balance Volume adds hourly volume when price rises and subtracts volume when price falls:

if self.data.close[0] > self.data.close[-1]:
    self.lines.obv[0] = prev_obv + self.data.volume[0]
elif self.data.close[0] < self.data.close[-1]:
    self.lines.obv[0] = prev_obv - self.data.volume[0]

The strategy then compares OBV with its 30-hour moving average. A crossover supplies direction, but several filters must agree:

atr_ratio = self.atr[0] / self.avg_atr[0]
adaptive_adx_threshold = self.p.base_adx_threshold * (
    1 + (atr_ratio - 1) * self.p.adx_sensitivity_factor
)
is_trending = self.adx.adx[0] > adaptive_adx_threshold

A bullish OBV crossover can open a long; a bearish crossover can open a short. Completed entries receive a 1% trailing stop.

Equity Curve vs XRP

OBV Market Regime XRP-USD hourly equity

The strategy was ahead of XRP during 100% of observed hours after the first 720 bars. That reflects both positive strategy performance and an exceptionally weak XRP benchmark.

Drawdown Comparison

OBV Market Regime XRP-USD hourly drawdown

Maximum strategy drawdown reached 28.88%. That is much better than holding XRP through its decline, but it is still substantial relative to a 37.55% return.

FilteredSqueezeStrategy was the cleaner risk-adjusted XRP alternative in the screen: 29.65% return, 1.34 Sharpe, and 12.74% drawdown with only 57 closed trades.

30-Day Rolling Performance

OBV Market Regime XRP-USD 720-hour rolling return

The strategy beat XRP in 83.4% of 30-day and 95.5% of 90-day rolling windows. Median 30-day excess return was 10.89 percentage points.

This is strong rolling benchmark performance. It must be interpreted in the context of XRP's 67.86% collapse.

Hourly Return Distribution

OBV Market Regime XRP-USD hourly distribution

The system won only 38.79% of trades. Its positive result depended on payoff asymmetry and fast exits, not a high hit rate.

The Critical Code Audit

The order-handling logic attaches an opposite StopTrail after every completed buy or sell. Before any live interpretation, this should be verified carefully to ensure a protective order's completion cannot unintentionally create another protective order or position.

The 0.10% commission assumption is included, but bid-ask spread, slippage, funding, and market impact are not. With 562 closed trades, those omissions can materially change the result.

Research Verdict

OBVMarketRegimeStrategy is a strong screening result, not a deployment-ready system. Its benchmark dominance and rolling consistency are impressive. Its drawdown, turnover, low win rate, and order-management implementation demand additional testing.

Explore the code and complete screening library in the Mega Backtrader Strategy Pack.

Disclaimer

This article is for research and education only. Backtest results are not financial advice or guarantees of future performance.