Your backtest is off by up to 59 seconds
Every close-bar backtest fills entries at the bar's close — but your strategy's condition usually became true seconds earlier, at a different price. capitalM magnifies each bar with real 1-second klines and replays the actual indicator pipeline to find the exact second — and price — your entry really happened.
Try the magnified backtestInside one minute — a real bar
BTCUSDT, 14:44:00Z, a long signal bar. The 1-minute candle shows open 60,020.8 and close 60,224.4. Replaying the sixty 1-second klines through the real pipeline shows the entry condition actually fired at second :27, at 60,163.8 — 33 seconds and 0.10% earlier than the close.

| Method | Says… | Error |
|---|---|---|
| 1m close-state normal backtest | entry @ 60,224.4 at bar close | +0.10% worse, 33s late |
| High/Low check OHLC touch test | "touch happened somewhere in the minute" | no second, no price |
| Leaf magnifier touches only, flags frozen | fired :01 @ 60,004.8 | 26s early, −0.26% too optimistic |
| capitalM exact magnifier full pipeline @ 1s | fired :27 @ 60,163.8 | = the truth |
Three ways a close-bar backtest lies — measured
We scanned all 4,999 bars of a BTCUSDT window second-by-second against the committed 1-minute series. Three error classes show up in real data — and capitalM detects all of them.
Phantom entries
The condition is true for 20 seconds mid-bar, reverts by the close. Every close-bar backtest misses it — your live bot fills it. 8 real trades appeared in the 1s replay that simply don't exist at 1m.
Lookahead artifacts
Higher-timeframe indicators map their final values onto bars that couldn't have known them. 0.6–3.9% of committed signals can't be reproduced in real time — our mirror check flags every one.
Entry-price error
When the trigger is genuinely intra-bar, filling at close misprices the entry by up to ±0.64% per trade — and the error cascades through every exit that follows.
Same strategy, both models — the honest number
Run the engine once on close-state bars, then again with intra-bar truth on every bar. The 1s run re-prices entries, adds the phantom trades, and removes the artifacts.
| Strategy variant (5000×1m) | Trades 1m → 1s | Return 1m → 1s | Phantom entries | Artifacts removed | Re-priced |
|---|---|---|---|---|---|
| v12-scalper | 15 → 18 | −28.28 → −39.29 USDT | +8 | 5 | 10 |
| v11-cycle | 13 → 12 | −15.99 → −27.00 USDT | +2 | 3 | 7 |
In this window the 1s run is worse — that's the point. The close-state backtest was hiding real losing trades and crediting entries that can't exist live. Second-accuracy is the honest number; if your edge survives it, it's real.
How the magnifier works
The full engine
Multi-timeframe pipeline
1m base resampled to 6 timeframes; Bollinger, WaveTrend, DRSI and the Buy-Phase composite mapped back per bar.
9 strategy variants + condition trees
Composable AND/OR condition trees on BP, BB width, dips, profit and dominant-TF logic.
Full DCA model
Perseverant / capital-exhausted modes, martingale sizing, averaged or individual SL, smart-TP arming.
4 Monte Carlo modes
Random, grid, strategy-search and bootstrap resampling in a background worker.
Live paper trading
Binance WebSocket ticks evaluate the forming bar continuously — calc_on_every_tick semantics with a fill latch.
TradingView execution
Alerts → webhook → order server. Signal fills tracked against the engine, broker truth reconciles.
See what your strategy really does inside the bar
Fetch candles, run the backtest, hit ⌕ Magnify — the trigger second and executed price are waiting.
Open the backtest