Bob's Bots

Trend Breakout Trading Bot Template

Trades 20-bar (4h) breakouts on large-cap perps in the direction of the 200 EMA, long or short. 2 ATR stop, 3 ATR trailing stop, skips the most violent bars, 0.5% risk per trade, max 5 positions.

Tested result

Passed out-of-sample Profitable on data it was not tuned on and passed every luck/overfitting check. Still not a guarantee.

Test: Binance USD-M Futures, 31 large-cap perps (BTC, ETH, SOL, XRP, DOGE ...; each enters when listed, delisted ones kept), 4h, 2019-09-08 to 2026-11-19, out-of-sample from 2024-09-21. Run 2026-11-19 19:39 EST.

Average month (whole test)+2.86%
Average month (out-of-sample)+3.10%
Max drawdown-28.2%
Average month (in-sample / design period)+2.75%
Walk-forward periods profitable5 of 5
Luck checksbeats 100% of random-entry versions; deflated Sharpe 0.95 after 27 variants tried (needs 0.95+)
Trades2189
Win rate34.6%
Profit factor (all / out-of-sample)1.32 / 1.32

By market regime

RegimeDaysAvg month
bull1434+3.57%
bear950+1.11%
chop246+9.29%

Template results are real backtests from this engine on the listed coins and dates, after fees, slippage and funding. None is a promise. A template is labeled "Passed out-of-sample" only if it passed every check.

Open this template in the workshop

Results not guaranteed. Backtests are hypothetical; trading risks loss of capital.