Measured on real Binance data

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 backtest

Inside 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.

Intra-bar magnifier: 1-second candles inside a 1-minute signal bar
1-second detail inside the 14:44 signal bar — the moment a normal backtest can't see.
MethodSays…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.826s 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 → 1sReturn 1m → 1sPhantom entriesArtifacts removedRe-priced
v12-scalper15 → 18−28.28 → −39.29 USDT+8510
v11-cycle13 → 12−15.99 → −27.00 USDT+237

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

Fetch real 1s klines covering each bar
Rebuild every timeframe's forming candle per second
Re-run the real indicators: Bollinger, WaveTrend, DRSI, sticky flags, BP chain
First second the condition holds = trigger → engine fills at that price
Self-verify: final step must equal the committed bar — failures are flagged, never silent
This is TradingView's Bar Magnifier concept — but stepped through your actual strategy, not a price approximation: indicator values, crosses, and sticky flags all evolve second-by-second exactly as they do in live mode.

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