Strategies
Crypto-Equity Residual Shock Reversal: fade a >=2-sigma 5-session BTC-beta-adjusted move in COIN/HOOD, hedged with a Bybit BTC perp (USEQ 1-DAY + BYBIT 1-HOUR, long-short, cross-venue)
Outcome: Abandoned
CryptoEquityResidualShockReversal
Outcome Summary
CryptoEquityResidualShockReversal paired COIN and HOOD daily bars with an hourly Bybit BTC perp hedge. It planned to fade 2-sigma residual shocks, using a rolling OLS beta and bisect-based BTC price lookup. Over 3 iterations the code was reworked, including a change to bounded extra-bar deques in iteration 3 to address an earlier timeout, but it never passed verification. The final Layer 3 sandbox backtest failed because a COIN.USEQ position executed after the evaluation boundary, with 0 primary bars reported as processed, so the run was abandoned before backtest review, optimization, or analysis.
Hypothesis
Fills the two buckets furthest from target: cross-venue (7.3% vs a >=15% target) and long-short (long-only is at 83.6% vs a <=55% target). It also puts the hedge leg on BYBIT (2.3% vs a >=5% target) instead of the overloaded BINANCE venue. BTC is used only because it is the economic factor being hedged out. It avoids the fee graveyard (multi-session holds, about 10x cost coverage), single perps gated on supplementary data (L111), options (L102), calendar windows (L179; the trigger is a residual z-score), and same-coin cross-venue dislocation (DOGE Bybit-OKX died as fee_edge). Leverage is deliberately NOT in optimization_plan.fixed, because that caused three recent Layer 1.5 failures. Every fixed entry is a strategy parameter with exactly the type shown.
verification_loop: Verification failed (Layer 3 — sandbox backtest): Position 87 (COIN.USEQ): execution time is after the evaluation boundary Bar type used: COIN.USEQ-1-DAY-LAST-EXTERNAL, Bars processed: 0 Ensure your strategy produces trades with the given data and parameters.
Implementation
Fades five-session BTC-beta-adjusted residual shocks in COIN and HOOD, with beta-scaled Bybit BTC hedges aggregated into one net position. Uses session-count holding limits, residual reversion and extension exits, and a pair loss stop.
Starts from previous_code and changes only extra-leg buffering to bounded deques, removing the base template's repeated 500-element list copies during hourly BTC intake. Existing rolling statistics, bisect point-in-time lookup, entry rules, sizing, instruments, parameter permissions and end-boundary guard are preserved. This is a runtime improvement, not a confirmed timeout fix: the previous code already bounded history, so another timeout should trigger engineering profiling of loading, engine execution and reporting rather than an alpha change. Verification was left to the pipeline as instructed. The requested outbox file could not be written because this workspace permits read-only filesystem access; the complete bound JSON is returned here.
Verification Results
Verification failed (Layer 3 — sandbox backtest): Position 87 (COIN.USEQ): execution time is after the evaluation boundary Bar type used: COIN.USEQ-1-DAY-LAST-EXTERNAL, Bars processed: 0 Ensure your strategy produces trades with the given data and parameters.
Iteration History
Verification failed (Layer 3 — sandbox backtest): Position 86 (BTCUSDT.BYBIT): execution time is after the evaluation boundary Bar type used: COIN.USEQ-1-DAY-LAST-EXTERNAL, Bars processed: 0 Ensure your strategy produces trades with the given data and parameters.
sandbox_timeout: Verification failed (Layer 3 — sandbox backtest): smoke test exceeded the 300s wall-clock limit on a ~20000-bar window (2400 days of COIN.USEQ-1-DAY-LAST-EXTERNAL). This almost always means per-bar work that scales with history — e.g. rescanning the full funding/supplementary series, or rebuilding a list and calling min()/sorted() inside calculate_signal()/on_bar() on every bar. Precompute sorted timestamp arrays ONCE in __init__ and use bisect, or cache lookups keyed by timestamp, so per-bar cost is O(log n) not O(n).
Outcome Summary
Cross-venue strategies that mix session-market daily bars with 24/7 hourly bars need order timing that respects the evaluation boundary, and the harness must be shown to process primary bars, before any edge can be measured.
After 3 iterations it was abandoned in a verification loop when the Layer 3 sandbox backtest failed: Position 87 (COIN.USEQ) had an execution time after the evaluation boundary, and the diagnostic reported 0 bars processed on COIN.USEQ-1-DAY-LAST-EXTERNAL.
Fade a >=2-sigma 5-session BTC-beta-adjusted residual move in COIN/HOOD (USEQ daily bars), hedged with a beta-scaled Bybit BTC perp, betting on short-horizon residual reversal of crypto-equity overshoots.
No performance was measured: the backtest report is empty and no optimization ran, so there are no return, Sharpe, or trade-count figures.
Backtest and paper results are hypothetical. Trading involves risk of loss.