Strategies
Funding–Price Divergence Squeeze Continuation, Single-Venue Long-Short (Single-Instrument ETHUSDT.BINANCE USD-M, 4H Bars + FUNDING-RATE Feed — Go WITH the Price Trend ONLY When Funding DISAGREES With It (Uptrend + Persistently NEGATIVE Funding = Trapped Shorts Fueling a Squeeze; Downtrend + Persistently POSITIVE Funding = Trapped Longs Fueling a Flush); Ride Winners with an ATR Trailing Stop, 3-Parameter)
Outcome: Abandoned
EthFundingPriceDivergenceSqueezeContinuationLS
Outcome Summary
EthFundingPriceDivergenceSqueezeContinuationLS reframed funding not as a carry/valuation signal but as a positioning-trap tell, going with the ETH trend only when funding disagreed with it and trailing winners to build large per-trade returns. In backtest across 1645 trades it did the reverse of its thesis: per-trade capture was just 0.079% against high turnover, yielding profit_factor 0.92, -30.0% total return, Sharpe 0.286, and a 47.6% drawdown, negative in 5 of 7 years. The analyst abandoned it at backtest review on iteration 2 as a clear fee_edge death, never advancing to optimization since total return was negative and PF was below 1.0. The core lesson: the funding-divergence trap delivered no continuation edge, and the intended large-capture design instead produced tiny capture with heavy, mostly-short turnover.
Hypothesis
Losing strategy with no edge: profit_factor 0.904, total_return -34.3%, negative expectancy (-$19.37/trade), and avg_trade_return_pct 0.0757% below the 0.15% BINANCE USD-M fee floor — gross edge is negative net of costs (fee_edge/no_edge signature: PF ~0.90 over 1,658 trades). Risk-adjusted metrics are all negative (Sharpe CI straddles zero, IR -0.82, alpha -0.021, max DD 47.5%). The trade record (1,566 shorts vs 92 longs) contradicts the symmetric funding-price divergence squeeze premise, indicating the mechanism does not implement the hypothesis as a balanced trap trade. This is the third pass on the same hypothesis (previously abandoned at iteration 2); 3-parameter tuning cannot rescue a negative-per-trade-edge, PF<1 book. Failure pattern: funding-based single-perp directional strategy with edge below fee costs and no risk-adjusted signal.
Implementation
Long-short 4H continuation strategy on ETHUSDT.BINANCE USD-M perpetual that goes WITH the price trend only when the funding rate DISAGREES with it. Uptrend + persistently negative funding = shorts paying to hold into a rally (trapped short base, forced-buying fuel) -> LONG. Downtrend + persistently positive funding = longs paying to hold into a decline (trapped-long fuel) -> SHORT. When funding agrees with price the crowd is comfortably positioned, there is no trapped counter-flow, and the strategy stays flat. Signal = trend z-score x softplus(-funding_z x sign(trend)), a smooth continuous product recomputed every bar: it always carries the trend's direction while its magnitude only clears the entry threshold when funding disagrees (~17x multiplier separation between disagree and agree). Winners are ridden with a 3xATR trailing stop for large per-trade capture; positions also exit on a trend flip or a 120-bar calendar time stop. Fixed-fractional sizing (2.5% risk per trade via the ATR stop distance) with a hard gross-notional cap.
Verification Results
CLEAN RESTART 2026-09-04 — this run's verdict history and learning records were removed and it was restarted from verification. Its previous abandonment came from the pipeline, not from the market: the Layer-2 harness mis-bound @staticmethod helpers (fixed), QA issued terminal performance verdicts on an unoptimized smoke test (removed — QA now judges correctness only), and sandbox timeouts came from backtest-slot starvation (fixed). The hypothesis and the strategy code are unchanged. Verify the code on its merits; performance is decided later by the full backtest and the optimizer.
At backtest_review, break out performance by direction and by year; confirm the long leg has a real edge over 2020-2026 before optimizing.
HEAVY SHORT SKEW / REGIME-DEPENDENCE — for the Analyst to confirm on full history, not a bug. The sandbox is 103 shorts vs 15 longs. This is partly STRUCTURAL: the long trigger requires persistently NEGATIVE funding (rare in crypto), while the short trigger requires positive funding (common), so the book is inherently short-tilted, and the down-biased 2025-26 ETH window amplifies it. The overall result is positive (+9.5%, avg_trade +0.305%, PF 1.26) but dominated by the short leg; the long leg is thin (15 trades, win 0.27). Full history must confirm the mechanism works in BOTH directions and across regimes (e.g., the 2021 bull with frequent positive funding), not just as a one-window short-bias.
Check deflated Sharpe, capacity/impact at deployment size, and whether full-history Sharpe firms the CI above zero. Modest one-year Sharpe is fine to advance; the walk-forward confirms.
OUTLIER-DEPENDENCE AND CAPACITY — Analyst checks. largest_win 10976 vs avg_win 1106 with kurtosis 7.9/skew 0.68 means +9.5% leans partly on a few large wins (expected for ride-winners, but deflated-Sharpe/robustness must confirm it's not a handful of days). impact_cost_pct 16.8% with capacity ~3.5M and turnover 92.7 flags a small-capacity, impact-sensitive profile — the fee-clearing avg_trade could erode at scale. Sharpe 0.29 CI [-1.29,+1.91] straddles zero, so the one-year edge is modest.
No fix needed; the implementation is correct and faithful.
Code correctness verified — clean, faithful, polarity exactly right. Signal = tz*softplus(-fz*sign(tz)) correctly implements all four quadrants (uptrend+negative-funding -> BUY, downtrend+positive-funding -> SELL, funding-agrees -> flat), always carrying the trend's direction (continuation, not fade) — distinct from the falsified funding-carry (opposite sign). Funding score scale-free (recent mean / own rolling dispersion). No look-ahead (funding aligned nearest-at-or-before via searchsorted with a 12h staleness guard; trend-z/ATR use past bars). Exits (ATR trailing keyed on position.id, trend flip, calendar time stop from ts_opened) correct; time stop avoids the L26 trap. Capital-relative fixed-fractional sizing with gross cap. Divisions guarded (sd, scale->default, stop_dist->fallback, price, sma via finite-filter). Layer-2 staticmethod fix holds (synthetic 'frozen 0.0' is correct no-funding degradation). No code action required.
Backtest Review
- Sharpe
- 0.27
- Total return
- -34.31%
- Max drawdown
- 47.50%
- Trades
- 1658
- Win rate
- 43.1%
- Profit factor
- 0.90
Verification-safe implementation: orthogonal single-venue funding feed, single instrument, 3 tunables, no cross-venue/options; conceptually distinct from the falsified funding-carry family.
Loses money: profit_factor 0.904 (<1.0), total_return -34.3%, expectancy -$19.37/trade, avg_trade_pnl negative.
avg_trade_return_pct 0.0757% is below the 0.15% BINANCE USD-M fee floor and the gross edge is negative net of costs (classic fee_edge/no_edge signature: PF ~0.90 over 1,658 trades).
No risk-adjusted edge: Sharpe CI [-0.30, 0.88] straddles zero, information_ratio -0.82, alpha -0.021, max_drawdown 47.5% (CI high 97%).
Mechanism mismatch: hypothesis is a symmetric trap/squeeze but trades are 1,566 shorts vs 92 longs — a one-sided short bias, not the balanced funding-price divergence continuation described.
Third pass on the same hypothesis (previously abandoned at iteration 2); the premise repeatedly yields PF < 1.
Iteration History
Outcome Summary
A funding-price divergence 'trap' signal produced no continuation edge, and despite explicitly aiming to avoid fee_edge death via large per-trade capture, the design generated the opposite — tiny capture and very high (mostly short) turnover — so with avg-trade below the fee floor and a net loss there was no parameter region worth optimizing toward.
The analyst abandoned it at BACKTEST_REVIEW (before optimization) as a decisive net loser and textbook fee_edge death — per-trade capture of 0.079% was roughly half the round-trip cost and below the 0.15% fee floor, so 128x turnover ($21k impact) consumed the entire gross edge, failing every backtest criterion (Sharpe, drawdown, return, PF, avg-trade).
A long-short single-instrument continuation strategy on ETHUSDT.BINANCE 4H bars that went WITH the price trend only when the funding rate diverged from it (uptrend + persistently negative funding = trapped shorts fueling a squeeze; downtrend + positive funding = trapped longs fueling a flush), riding winners with an ATR trailing stop.
Over 2019-2026 (2404 data days, 1645 trades, 1553 of them shorts) it was a net loser: total_return -30.0%, profit_factor 0.92, Sharpe 0.286 (95% CI [-0.289, 0.914]), expectancy -$16.9/trade, and avg_trade_return_pct just 0.079%, with a 47.6% max drawdown and negative results in 5 of 7 years.
Backtest and paper results are hypothetical. Trading involves risk of loss.