r/algotradingcrypto • • 17h ago

I tested 3 textbook 5m crypto spot rules across 10,000 Binance candles on BTC, ETH & SOL with 2x slippage — 0 of 9 survived (open-source reproducer + Bonferroni calculator)

2 Upvotes

Every week someone posts a 5-minute crypto breakout or EMA pullback backtest showing a smooth equity curve. Almost every time, two things are missing: realistic round-trip execution friction and a strict out-of-sample holdout with zero parameter tuning.

I froze 3 standard 5m spot-long rules with zero post-hoc optimization and ran them head-to-head across 10,000 closed 5m Binance candles (~35 days: warm-up + 20-day development reference + 10-day blind holdout) on BTCUSDT, ETHUSDT, and SOLUSDT.

Frozen Rules & Cost Model

  1. 20-Bar Breakout (Control): 5m close > 20-bar high on >= 1.5x 20-bar volume, EMA20 > EMA50 rising.
  2. Post-Breakout Retest: Within 60m after breakout, price pulls back to [-0.5 ATR, +0.25 ATR] of breakout level and reclaims it on a green bar.
  3. EMA20 Trend Pullback: Pullback <= EMA20 within 1 ATR in rising trend, reclaiming on green bar (>= 1.0x volume).
  • Fees & Slippage: 0.10% taker fee + 0.05% baseline slippage per side (0.30% round-trip), stressed at 2x slippage (0.10% per side = 0.40% round-trip).
  • Exits: Structural stop (0.4%–2.5% risk), net 2R target, 6h max hold. No parameter optimization.

10-Day Blind Holdout Results (Verified Across 9 Symbol x Rule Cells)

SymbolStrategyHoldout TradesWin Rate1x Slip Mean Net2x Slip Mean NetVerdict
BTCUSDT20-Bar Breakout825.0%-0.251%-0.351%Negative + low N
BTCUSDTPost-Breakout Retest250.0%-0.244%-0.344%Insufficient sample
BTCUSDTEMA20 Pullback633.3%+0.030%-0.070%Flips negative at 2x
ETHUSDTAll 3 rules combined22—-0.052% to -0.174%-0.152% to -0.274%All negative
SOLUSDTAll 3 rules combined21—-0.056% to -0.193%-0.156% to -0.293%All negative

Three Findings Worth Remembering Before Deploying 5m Trend Bots

  1. The margin is thinner than 1 bps of slippage: Only BTC EMA20 Pullback stayed barely positive (+0.030% / trade), and doubling slippage by 0.05% flipped it negative (-0.070%).
  2. Sample starvation on strict filters: Even across 10,000 closed 5m bars, 8 of 9 cells failed to reach >=30 closed holdout trades.
  3. Multi-pair scanning inflates luck (m * 0.05): Scanning 100 coins at a naive 95% cutoff yields ~5 lucky "winners" by chance alone unless you apply Bonferroni tightening (1 - 0.05/m = 99.95%).

Free interactive tools to reproduce or test your own numbers (zero login, zero API keys, zero custody):

Full zero-dependency Node.js reproduction script & MCP server (MIT, run npm run reproduce locally): https://github.com/574710939lb-design/holdoutradar-mcp


r/algotradingcrypto • • 18h ago

Does your crypto bot trade the same way on weekends?

3 Upvotes

Weekends in crypto can feel like a different market. Order books get thinner, spreads can widen, and BTC sometimes drifts into a level that becomes a CME gap by Monday.

Curious how people handle this with bots:

  • Same rules all week, or separate settings for Saturday and Sunday?
  • Smaller size, wider stops, or just switch it off?
  • If you backtest, do you split the results into weekday and weekend?

Would like to hear what actually changed once you looked at it.