Backtesting

How Deepwick backtests a strategy.

A backtest is only useful if it could have happened. These four rules are built into the broker emulator and cannot be switched off.

  1. 01
    Next-bar fills

    A signal on a closed bar fills at the next bar's open, never at a price you could not trade.

  2. 02
    A real path inside the bar

    Stops and targets are checked from the open to the nearer extreme, then the other, then the close.

  3. 03
    Gaps fill at the open

    If price gaps through your stop, you get the open, as you would in the market.

  4. 04
    Costs on every fill

    Saved backtests pay half the live spread on every market and stop fill; slippage and commission are charged on every entry and exit whenever your strategy() sets them.

Inside one bar
Inside one barOpenHighLowClose1234StopGap → filled at open

Deepwick vs a typical backtester

DeepwickTypical
Order fillsNext bar's openSame bar's close
Stops inside a barPath: open → nearer extreme → other → closeChecked against close only
Gaps through a stopFilled at the openFilled at the stop price
Spread, slippage, commissionLive spread on saved backtests, plus the slippage and commission you setOften optional or ignored
Script variables per barInspector shows them allNot visible
A saved Deepwick backtest report with metrics, equity curve and trade list

Summary reports net profit, profit factor, win rate, max drawdown, Sharpe and Sortino, buy & hold and exposure. The other tabs go further: Robustness (Monte Carlo, walk-forward, parameter sensitivity), Optimization (sweeps) and Risk (loss distribution, reconciliation against live fills).

Test your ideas before the market does.

Free plan, no card required. Sign up with your email to get started.

Built by a solo trader-developer. Shipped weekly.