Skip to content

View original

XrpFourHourVolumeConfirmedBreakoutDailyRegimeLong

Hypotheses

XRP 4H Volume-Confirmed Breakout Long with Daily Regime Filter

Hypotheses

A long-only single-instrument breakout strategy on XRPUSDT perpetual futures using 4-hour bars and OHLCV-only data, with a daily-bar regime filter. This proposal applies the 4H Volume-Confirmed Breakout architecture (proven on BNB Sharpe ~4, SOL Sharpe 4.42, BTC Sharpe 3.74) to XRP — but NOT as blind auto-replication. The empirical justification is asset-specific: the analyst explicitly noted the 4H Volume Breakout architecture works on assets whose volume distribution shows distinct multi-sigma spikes around news/catalyst events (matching BTC/SOL/BNB), and FAILS on assets with smoother volume profiles (LINK -7.2%). XRP has the MOST event-driven volume profile of any major crypto: SEC lawsuit verdict (July 2023), ETF speculation cycles (2024-2025), Ripple partnership announcements, and on-ledger token unlock schedules ALL produce textbook 2-3+ sigma volume spikes that align precisely with this architecture's signal mechanism. XRP is also currently NOT covered in the portfolio (zero XRP positions), so this fills a genuine diversification gap rather than adding redundant coverage. Critically, the 4H timeframe (vs daily) avoids the sparse-signal failure mode that killed the Golden Cross (14 trades over 6 years) and Multi-Week Trend strategies — 4H breakouts on XRP fire ~20-40 times per year, providing enough trades for walk-forward to find a stable edge. The strategy uses ONLY OHLCV data (no funding/OI/liquidations dependencies) so it sidesteps the supplementary-data verification fragility seen in recent failures.

Hypotheses

Iteration 2 fixes the Layer-3 zero-trades failure. Diagnosis: should_enter gated on the continuous signal magnitude (signal >= 0.7), but a FRESH breakout structurally has the close sitting just above the Donchian level, so edge is tiny and tanh(strength) lands ~0.46-0.60 — below 0.7 except when volume is >2.4x AND edge is large, which never coincided with the daily-regime filter on XRP over the sample. The proven ETH/BNB/SOL siblings never threshold the magnitude; they enter on the cached boolean conditions. Fix: cache _entry_ready = (fresh_breakout AND vol_confirm AND regime_ok) in calculate_signal and have should_enter return BUY on that boolean, decoupling the entry decision from the fragile magnitude threshold. The continuous signal RETURN value is unchanged so Layer-2 frozen-series stays green; imports, exit logic, and sizing are untouched (no regressions to earlier layers). Config carries the daily regime extra bar (XRPUSDT.BINANCE-1-DAY) so the SMA(200) regime filter is fed.

Hypotheses

Not worth the optimization budget: a clean, functioning strategy but with a near-zero, sub-deflation-bar edge. The daily SMA(200) regime filter over-constrains it to exposure_pct 1.96% (in-market ~2% of the time), yielding CAGR 1.7% / total return 9.8% over ~6 years and Sharpe 0.747 with sharpe_ci_low -2.03 (CI through 0), PSR 0.758, alpha ~0.0006, IR -0.57 — essentially no risk-adjusted edge over the basket. The architecture clears Sharpe ~1.8-4.4 on its promoted BNB/SOL/BTC arms, so the XRP event-driven-volume thesis did not materialize; critically, this 0.75 base is LOWER than the SUI arm of the same FourHourVolumeBreakout family (base ~1.26) that was already abandoned post-optimization for failing deflated Sharpe (below its ~1.45 best-of-225 luck bar with a negative holdout), so starting from 0.75 a 4H best-of-225 sweep is very unlikely to clear the deflation bar. The only tunable path to a real edge is loosening the daily regime filter that causes the 2% exposure, but that dismantles the feature differentiating this from the plain volume-confirmed-breakout variant already validated/promoted on XRP — a successful optimization would just converge toward that stronger existing strategy (redundant), while a faithful one stays sub-bar. Not iterate: iteration 2 already fixed the 0-trades bug; the remaining issue is an intrinsically thin edge on this construction, not a code defect. FAILURE PATTERN: adding a daily-regime filter to the volume-confirmed 4H breakout family throttles time-in-market to ~2% and collapses the edge to Sharpe 0.75 / CAGR 1.7% on XRP — well below both the family's promoted arms (1.8-4.4) and the deflation bar that already killed the SUI arm at 1.26.

Implementation

Long-only single-instrument 4H volume-confirmed Donchian breakout on XRPUSDT.BINANCE USD-M perpetual, gated by a daily SMA(200) macro-regime filter. Enters when a fresh 20-bar Donchian-high breakout is confirmed by >1.5x average volume while the daily close is above its 200-day SMA. Exits on Chandelier ATR trailing stop, +6% take-profit, -3% hard stop, 30-bar time stop, or a daily regime breakdown. Pure OHLCV, capital-relative sizing (20% notional), leverage 1.0.

Verification Results

Verification failed (Layer 3 — sandbox backtest): No trades produced Bar type used: XRPUSDT.BINANCE-4-HOUR-LAST-EXTERNAL, Bars processed: 13972 Diagnostics: should_enter() returned a side 0 times over 13948 evaluated bars -> your ENTRY CONDITION never triggered. Loosen the entry logic / thresholds. Ensure your strategy produces trades with the given data and parameters.

Backtest Review

Clean, functioning after the iter-2 fix: 209 long trades, trades match the hypothesis (volume-confirmed fresh breakouts, 0 shorts, daily-regime gated), low max_drawdown 5.69%, clean sizing (avg_position_pct 20%)

Backtest Review

Consistent small positive years (2020-2025 all near +2% except 2022 -1.8%) — a real but tiny edge

Backtest Review

Near-zero return: CAGR 1.7%, total return 9.8% over ~6 years, with exposure_pct just 1.96% — the daily regime filter over-constrains it to ~2% time-in-market

Backtest Review

Weak, insignificant Sharpe 0.747 with sharpe_ci_low -2.03 (CI straddles 0), PSR 0.758; alpha ~0.0006, information_ratio -0.57 — essentially no risk-adjusted edge over the benchmark

Backtest Review

Far below the family it replicates (BNB ~4, SOL 4.42, BTC 3.74) — the XRP event-driven-volume thesis did not deliver; base Sharpe 0.75 is even lower than the SUI arm (1.26) that was abandoned post-optimization for failing deflated Sharpe

Backtest Review

The only tunable path to a real edge (loosening the daily regime filter) dismantles this variant's differentiation and converges toward the already-validated plain volume-breakout arm — redundant

Backtest Review

209 long volume breakouts

Backtest Review

long breakout

Outcome Summary

XrpFourHourVolumeConfirmedBreakoutDailyRegimeLong ported the family's promoted 4H volume-confirmed breakout architecture (BNB ~4, SOL 4.42, BTC 3.74 Sharpe) to XRP, arguing XRP's event-driven volume profile would produce the multi-sigma spikes the signal keys on, and added a daily SMA(200) regime filter to avoid bull-trap breakouts. After an iteration-2 fix that resolved a zero-trades bug, it ran cleanly with 209 faithful long volume-breakout trades and low drawdown, but the daily filter held it in-market only ~2% of the time, yielding a near-zero edge (CAGR 1.7%, Sharpe 0.747 with a CI through zero, alpha ~0.0006). The backtest-review gate abandoned it before spending optimization budget, judging the thin edge intrinsic to the construction rather than a code defect: its 0.75 base sat below the family's SUI arm (1.26) already killed by deflated Sharpe, and the only route to a real edge — loosening the regime filter — would merely dismantle its differentiation and converge toward the stronger plain volume-breakout variant already validated on XRP.

Outcome Summary

Adding a daily SMA(200) regime filter to the 4H volume-confirmed breakout family throttled time-in-market to ~2% and collapsed the edge to Sharpe 0.75 / CAGR 1.7% — far below the family's promoted arms (1.8–4.4); replicating a proven architecture onto a new asset with an extra constraint does not inherit its edge, and the XRP event-driven-volume thesis did not materialize.

Outcome Summary

The backtest-review gate abandoned it before optimization: it failed on CAGR (1.71% vs 8.0), exposure (1.96% vs 10) and sharpe_ci_low (-2.03), the daily SMA(200) regime filter over-constrained it to ~2% time-in-market, and its 0.75 base Sharpe was below even the same family's SUI arm (~1.26) already abandoned post-optimization for failing deflated Sharpe — while the only path to a real edge (loosening the filter) would converge toward the already-validated plain volume-breakout variant.

Outcome Summary

A long-only, single-instrument, pure-OHLCV strategy on XRPUSDT.BINANCE perp that took fresh 20-bar Donchian breakouts on 4H bars confirmed by a volume spike (>1.5× the 20-bar average) and gated by a daily SMA(200) up-regime filter, exiting on a Chandelier ATR trailing stop, take-profit, stop-loss, time stop, or regime breakdown — porting the family's promoted BNB/SOL/BTC volume-breakout architecture to XRP for its event-driven volume profile.

Outcome Summary

It functioned cleanly after an iteration-2 fix (209 long trades, 0 shorts, 5.69% max drawdown, ~20% avg position size), but delivered a near-zero edge: CAGR 1.7%, total return 9.8% over ~6 years, Sharpe 0.747 (CI low -2.03), profit factor 1.20, alpha ~0.0006 and information ratio -0.57, with the daily filter holding time-in-market to just 1.96%.
Strategy report

Backtest and paper results are hypothetical. Trading involves risk of loss.