Momentum Breakout (long only) Trading Bot Template
Long-only version of Trend Breakout for people who never want to be short: buys 20-bar breakouts above the 200 EMA on large-cap perps, 3 ATR trailing stop. Sits in cash when nothing is trending up.
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.80% |
|---|---|
| Average month (out-of-sample) | +1.99% |
| Max drawdown | -28.9% |
| Average month (in-sample / design period) | +3.14% |
| Walk-forward periods profitable | 5 of 5 |
| Luck checks | beats 100% of random-entry versions; deflated Sharpe 0.97 after 27 variants tried (needs 0.95+) |
| Trades | 1417 |
| Win rate | 31.3% |
| Profit factor (all / out-of-sample) | 1.42 / 1.30 |
By market regime
| Regime | Days | Avg month |
|---|---|---|
| bull | 1434 | +5.22% |
| bear | 950 | -0.41% |
| chop | 246 | +4.51% |
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.