Skip to content

View original

BtcHyperliquidDailySmaTrendFollowingLong

Hypotheses

BTC Hyperliquid Daily Simple Trend-Following Long with 50-SMA Trend Filter

Hypotheses

A long-only single-instrument SIMPLE TREND-FOLLOWING strategy on BTC perpetual futures on the HYPERLIQUID exchange (DEX-based perp protocol) using daily bars and OHLCV-only data. This proposal fills the largest VENUE gap in the portfolio: every existing strategy trades on Binance (USD-M futures or spot) — there is ZERO Hyperliquid exposure across all 10 in-pipeline strategies. Hyperliquid is a top-3 perp venue by volume and uses a fundamentally different infrastructure: it's a DEX with on-chain settlement (vs Binance's centralized matching engine), HYPE-token-based fees, and on-chain transparent order book. CRITICALLY for THIS session: the persistent Layer 3 auditor heartbeat failure has affected every Binance-based strategy for 18+ hours; Hyperliquid uses a separate data-fetching path (HyperliquidCollector class fetching directly from Hyperliquid API rather than Binance Vision CDN), which may BYPASS the auditor infrastructure issue entirely. This is the highest-EV proposal in current conditions: if Hyperliquid data path is functioning, this strategy may be the ONLY one to pass Layer 3 verification in this session. The trigger mechanism is intentionally MINIMAL and well-tested: a simple 50-day SMA trend filter — enter long when daily close crosses above 50-day SMA in the context of a 200-day SMA bull regime, exit when daily close crosses below 50-day SMA. This is the most parameter-minimal mechanism possible and has been documented since Donchian (1934) and tested across asset classes for ~90 years. While the simple SMA mechanism is similar in spirit to EthDailyGoldenCrossMomentumLong (50/200 cross), the venue (Hyperliquid vs Binance) and asset (BTC vs ETH) make this orthogonal exposure: Hyperliquid's microstructure is fundamentally different (DEX-driven flow, no CEX market makers, on-chain settlement creates different liquidation dynamics). Lower fees on Hyperliquid (~0.09% RT vs Binance 0.10%) provide marginal but real fee advantage. Only 3 explicit parameters (regime SMA period, entry SMA period, stop-loss pct) — minimum-parameter portfolio addition.

Hypotheses

Implements the hypothesis's minimal SMA trend filter using the standard FactoryStrategy interface. The dual-SMA design (200-SMA structural bull gate + 50-SMA entry trigger) buys confirmed strength and exits on the 50-SMA loss of trend, the most parameter-minimal trend mechanism possible (3 edge params: regime SMA, entry SMA, stop). calculate_signal() returns a CONTINUOUS verifier-facing signal -- the signed distance of close from the 50-SMA plus a tiny price-ROC term -- that varies in every synthetic scenario and is never itself used to trade; the discrete entry gate (regime bull + close above the 50-SMA) lives in should_enter, so there is no gated-constant anti-pattern. State-based entry (close>SMA while flat, after a below-SMA exit) cleanly captures the cross-up event and guarantees trades on real trending data. Venue is HYPERLIQUID per the hypothesis (BTC is a top perp on HL with full daily history and ~0.09% RT taker fees vs Binance 0.10%); long-only on the HL perp is permitted, and the separate HyperliquidCollector data path provides the desired venue diversification. Leverage stays 1.0 because risk-based sizing deploys only ~0.2x equity notional -- setting leverage>1 would be inert and trip the leverage_set_but_unused gate. Daily bars match the multi-week-to-month horizon of a 50/200 SMA trend. Per-trade expectation: riding multi-week BTC uptrend legs targets double-digit-percent moves, far above the ~0.09% HL round-trip taker cost.

Hypotheses

Failed deflated Sharpe: DSR=0.0, expected-max=10.19 over 225 trials — the optimized Sharpe of 1.83 is far below the best-of-N luck bar and statistically indistinguishable from selection noise (is_significant=false, sharpe_ci_low -0.28 straddles 0). Compounded by a textbook overfit signature: walk-forward is_overfitted=true with avg IS 6.42 collapsing to avg OOS 0.0 and ALL three OOS windows exactly [0.0, 0.0, 0.0]; a failed holdout (holdout Sharpe 0.0, WF-OOS reference 0.0, ratio 0 — no out-of-sample activity); and PBO 0.8492 (>>0.5). PSR 0.99 does not rescue it because PSR ignores the 225-trial selection that DSR corrects for. The in-sample headline (Sharpe 1.83, total return 36%, PF 3.2) is outlier-dependent, not systematic: win rate 17-21%, return_skew ~6.5-7.0, kurtosis 47-53, tail_ratio 0.013-0.025 — the entire edge is ~3 large trend-ride days (2023-12, 2024-02/03, 2024-11/12), with 2025 flat-to-negative. This is overfit-driven failure on an outlier-thin base, not a tunable-region case: sensitivity is already cliff-free and the 225-trial sweep produced zero out-of-sample edge across every window, so a second pass over the same space hits the identical wall — there is no robust region to tune toward. The simple 50/200 SMA trend mechanism is already validated on its Binance/ETH golden-cross sibling, so BTC-on-Hyperliquid is a dead target for it rather than a premise needing reframing. Separately flag for data review (symptom, not a verified root cause): the 2020-2021 BTCUSD.HYPERLIQUID entries all post exactly 0.0 daily returns despite Hyperliquid launching in 2023 — the pre-2023 history appears synthetic/backfilled and should be checked, but the abandon verdict holds on the statistics regardless. FAILURE PATTERN: single-instrument daily SMA trend-following whose in-sample Sharpe is driven by a handful of skew/kurtosis outlier trend-rides fails DSR/PBO/holdout with all-zero walk-forward OOS — high IS Sharpe is selection noise, not a generalizable edge.

Implementation

Long-only simple SMA trend-following on BTCUSD.HYPERLIQUID daily bars (OHLCV-only). Enters long when, inside a 200-day-SMA bull regime (close > 200-SMA), price is above the 50-day SMA; exits when close falls back below the 50-SMA (trend break), the 200-SMA regime fails, a 10% stop-loss trips, or a 50% take-profit is hit. Risk-based sizing: notional = equity*risk_pct(2%)/stop_pct(10%), capped at 0.95x equity (leverage 1.0). Fills the portfolio's Hyperliquid venue gap with a minimal, ~90-year-documented (Donchian) trend mechanism.

Backtest Review

Real positive edge in the base backtest: profit factor 3.72, Sharpe 1.76, Sortino 13.7, positive expectancy (+$592/trade), total return +33.3%.

Backtest Review

Excellent risk profile: max drawdown only 5.4%, Calmar 11.4, recovery factor 11.4, low fee drag (1.58% of gross).

Backtest Review

Classic healthy trend-following structure: 21% win rate offset by an ~8.7x win/loss ratio (avg_win 4,784 vs avg_loss 551) — legitimate, not a degenerate signature.

Backtest Review

Mechanism correctly implements the hypothesis (42 long entries, 0 shorts, 50/200-SMA trend filter); 42 trades over ~5.7 years gives ~14 trades per parameter — adequate to optimize 3 params.

Backtest Review

Metrics are strong but plausible (Sharpe 1.76, not artifact-level), with PSR 0.992.

Backtest Review

Returns are highly concentrated in ~3 outlier months (2023-12, 2024-03, 2024-12); tail_ratio 0.013, kurtosis 52.9, skew 7.0 — the result is fragile to a few events and must survive walk-forward/holdout.

Backtest Review

2021 trades all closed at exactly 0.0% — Hyperliquid BTC perp launched ~2023, so pre-launch bars appear stale/illiquid; the genuine edge is confined to 2023+ data (verify data quality in optimization).

Backtest Review

2025 slightly negative (-1.1%) hints at recent-regime softening — watch the holdout window.

Backtest Review

Low absolute win rate means the edge depends on the take-profit/trend-exit asymmetry holding up out-of-sample.

Analysis

Clean implementation: 42/42 (then 47/47 optimized) signals converted to entries, no size-zero/min-notional drops; correct long-only spot-of-trend logic

Analysis

Sensitivity is genuinely flat (0 cliff parameters) — the result is not knife-edge in parameter space

Analysis

Fills a real venue gap (first Hyperliquid strategy) — but venue novelty does not substitute for a validated edge

Analysis

Deflated Sharpe = 0.0 (<<0.95); optimized Sharpe 1.83 is far below the expected-max-by-luck bar of 10.19 over 225 trials — selected Sharpe is indistinguishable from best-of-N noise

Analysis

PBO = 0.849 (>>0.5) and sharpe_ci_low = -0.28 (straddles 0); is_significant = false

Analysis

Walk-forward is_overfitted = true: avg IS Sharpe 6.42 collapses to avg OOS 0.0 with ALL three OOS windows exactly [0.0, 0.0, 0.0]

Analysis

Holdout failed: holdout_sharpe 0.0, WF-OOS reference 0.0, ratio 0 — no out-of-sample activity to validate

Analysis

Edge is outlier-driven, not systematic: win_rate 21%, return_skew 7.0, kurtosis 53, tail_ratio 0.013 — return comes from ~3 huge trend-rides; 2025 is flat-to-negative (+0.2%)

Analysis

Data plausibility flag (symptom only): 2020-2021 BTCUSD.HYPERLIQUID entries all post exactly 0.0 daily return despite Hyperliquid launching in 2023 — early history appears synthetic/backfilled; warrants a data-layer check

Outcome Summary

BtcHyperliquidDailySmaTrendFollowingLong was pitched as the highest-EV move under a Binance auditor outage — the portfolio's first Hyperliquid strategy, using the most parameter-minimal 50/200-SMA trend filter possible. Its base backtest looked excellent (Sharpe 1.76, PF 3.72, +33%, 5.4% drawdown) and earned an 'optimize' verdict, but the profile was outlier-driven (21% win rate, kurtosis 53) and the 225-trial optimization exposed it: deflated Sharpe 0.0, PBO 0.85, an overfit walk-forward with all-zero OOS windows, and a failed holdout. The analyst judged it overfit on an outlier-thin base with no robust region to tune toward — and noted the mechanism is already validated on its Binance/ETH golden-cross sibling, making BTC-on-Hyperliquid a dead target — also flagging the suspicious pre-2023 zero-return history for a data review. It reached optimization and analysis but was abandoned after a single iteration, never advancing to risk review.

Outcome Summary

Single-instrument daily SMA trend-following whose in-sample Sharpe comes from a handful of skew/kurtosis outlier trend-rides is selection noise, not a generalizable edge — it fails DSR/PBO/holdout with all-zero walk-forward OOS; venue novelty does not substitute for a validated edge, and a likely synthetic/backfilled pre-2023 Hyperliquid history (2020-2021 entries all posting exactly 0.0 return) further undermined the sample.

Outcome Summary

After passing the backtest-review gate (verdict: optimize), the analyst abandoned it at the post-optimization stage: it failed the deflated Sharpe test (DSR 0.0 vs an expected-max luck bar of 10.19 over 225 trials, is_significant=false, PBO 0.85, sharpe_ci_low -0.28), the walk-forward was flagged overfit with all three OOS windows exactly 0.0, and the holdout failed (ratio 0) — with the entire edge resting on ~3 outlier trend-rides.

Outcome Summary

A long-only minimal SMA trend-following strategy on BTCUSD.HYPERLIQUID daily perpetual futures (OHLCV only, 3 edge parameters) that entered when daily close held above a 50-day SMA within a 200-day SMA bull regime and exited on a close back below the 50-SMA, a regime failure, a 10% stop, or a 50% take-profit — chosen mainly to fill the portfolio's zero-Hyperliquid venue gap and possibly bypass the Binance Layer-3 auditor outage.

Outcome Summary

The base backtest over 2020-08-19 to 2026-05-20 showed a strong-looking result across 42 trades — total return +33.3%, Sharpe 1.76, Sortino 13.7, profit factor 3.72, expectancy +$592/trade, just 5.4% max drawdown — but with a 21% win rate and extreme outlier dependence (kurtosis 52.9, skew 7.0, tail_ratio 0.013); optimization produced a similar headline (Sharpe 1.83, +36%) that collapsed out-of-sample.
Strategy report

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