Strategies
XRP Binance USD-M Rolling-Regression Slope Trend — Long-Short, Trade the Sign of a Fast Log-Price Regression Slope Confirmed by a Slower Slope, Vol-Scaled + Notional-Capped to Tame Fat Tails, ATR Trailing Exit (3-Parameter)
Outcome: Abandoned
XrpRollingRegressionSlopeTrendLS
Outcome Summary
XrpRollingRegressionSlopeTrendLS changed the trend estimator to a rolling OLS log-price slope and paired it with volatility-scaled sizing and a notional cap to convert XRP's big fat-tailed trends into distributed edge, deliberately choosing Binance's long history to clear the significance gate that had killed short-history Hyperliquid ports. The fat-tail control worked (kurtosis 11.6) and the sample was ample (348 trades over 6.6 years), but the edge never materialized: Sharpe 0.28 with a CI straddling zero, profit factor 1.17, a -0.54 information ratio versus holding XRP, and returns carried entirely by 2020-2021 with flat-to-negative years since. The analyst abandoned it at backtest review, concluding the long venue and new estimator conclusively showed XRP slope-trend has no edge (weak, not un-measured), unlike the ADA and BNB Binance ports that did establish one; it never reached optimization, analysis, or risk review.
Hypothesis
Implementation
Long-short, single-instrument directional trend follower on XRPUSDT.BINANCE USD-M perpetual, 4H bars, using a rolling ORDINARY-LEAST-SQUARES slope of log price as the trend estimator instead of an EMA cross or a channel breakout. Two slopes are maintained in O(1) per bar from rolling sums: a fast one over 48 bars (~8 days) and a slow confirmation slope over 144 bars (~24 days). calculate_signal returns fast_slope / (ATR/close) -- the fast trend expressed in per-bar volatility units, continuous and varying every bar. ENTRY only when the fast and slow slopes share a sign (LONG rising, SHORT falling); disagreement means FLAT. EXIT on a 3x-ATR trailing stop from the best close since entry, or on either slope flipping against the position. Sizing is volatility-scaled (qty = equity*1.5%/(3*ATR), so positions shrink as ATR expands) and hard-capped at 25% of equity x 2x leverage.
Verification Results
Analyst/backtest_review: confirm edge survives walk-forward OOS and the 15-day holdout, isn't carried by the 2020-2021 bull tail, and clears the deflated-Sharpe gate; weight the trailing-365-day result heavily.
Pure-OHLCV long-short directional trend follower (rolling OLS log-price slope). Per L7, pure-OHLCV strategies have ~0% historical survival to risk review. Code is correct and measurable, but the sandbox is weak: Sharpe 0.268 with a bootstrap CI [-1.54, 1.76] straddling zero, PF 1.18, return_skew 1.80, kurtosis 16.0, and the developer concedes edge is weaker than the EMA-confluence siblings (PF 1.53 vs 2.0-2.6) with only +0.22%/trade over the trailing 365 days.
Analyst: evaluate on realized trade-return distribution (kurtosis, top-N concentration) rather than the assumed smoothness of the estimator.
The hypothesis's core rationale (OLS slope tames XRP fat tails into distributed edge) is only partly borne out per the developer's own caveat: full-sample trade-return kurtosis 39.9 and top-3 trades = 21.7% of gross profit. Vol-scaling bounds equity impact but does not remove return kurtosis. Code implements the mechanism as described; the premise should be judged on distribution stats, not assumed.
For live deployment, persist _side/_extreme/_entry_atr or reconstruct from the actual open position rather than from the current signal.
should_exit() infers _side from the live signal sign on restart (_side==0) and re-seeds _entry_atr/_extreme from current values. Unreachable in backtest; only a live mid-position crash-restart risk, where it could pick the wrong side or reset the trailing reference.
Backtest Review
- Sharpe
- 0.28
- Total return
- 44.71%
- Max drawdown
- 24.24%
- Trades
- 348
- Win rate
- 42.0%
- Profit factor
- 1.17
Large measurable sample (348 trades, 6.6 years) on the long-history venue; novel OLS-slope estimator; fat-tail control kept kurtosis moderate (11.6) and skew 0.57
No significant edge: Sharpe 0.28 with CI [-0.36, 0.88] straddling zero deeply — the long-history venue gave ample sample yet the edge did not lift off zero (weak edge, not small sample)
Fee-edge zone and underperforms buy-hold XRP: profit_factor 1.17, alpha 0.029, information_ratio -0.54
Front-loaded/decayed edge: ~all return is 2020-2021; 2022 -5.7% and 2023/2024 near-flat; rolling_sharpe negative much of 2022-2024
Thin/impacted: impact_cost_pct 12.2%, capacity ~$6.7M, max_drawdown 24.2% (CI to 47.6%); XRP single-name alt trend is the L41 0/213 class
Outcome Summary
Fixing the data problem (long history) and swapping in a smoother, less outlier-prone estimator successfully rules out short-sample and outlier-mirage explanations — but that only proves the absence of edge more conclusively: XRP slope-trend simply has no edge to optimize toward, front-loaded into 2020-2021 and underperforming buy-and-hold since.
The analyst abandoned it at backtest review: unlike the short-history Hyperliquid ports, this had ample sample (348 trades over 6.6 years) yet the edge still failed to lift off zero, so it is genuinely weak, not un-measured — profit factor in the fee-edge zone, underperforming buy-and-hold XRP, front-loaded and decayed, thin (12.2% impact, ~$6.7M capacity), in the L41 0/213 single-name alt-trend class. A Sharpe-0.28 base cannot clear deflated Sharpe under best-of-N optimization.
A long-short, single-instrument directional trend follower on XRPUSDT.BINANCE USD-M 4H (3 parameters) that used the slope of a rolling OLS regression of log-price as its trend estimator — trading the sign of a fast slope confirmed by a slower slope — with volatility-scaled sizing and a hard notional cap to tame XRP's fat tails, and an ATR trailing exit, choosing Binance for its ~6-year history to establish significance.
The backtest (XRPUSDT.BINANCE 4H, 2403 data days, 2020-01 to 2026-08) returned +44.7% over 348 trades but with no significant edge: Sharpe 0.28 (CI [-0.36, 0.88] straddling zero deeply), profit factor 1.17, information ratio -0.54 versus holding XRP, alpha 0.029, max drawdown 24.2% (CI to 47.6%). The fat-tail control worked (kurtosis 11.6, skew 0.57), but the return was front-loaded — 2020-2021 carried it while 2022 lost -5.7% and 2023/2024 were near-flat.
Backtest and paper results are hypothetical. Trading involves risk of loss.