Manual backtesting

Trading & P&L

Order types, take-profit and stop-loss, the trading account, and the statistics you get out the other side.

While a replay is running you can place trades exactly the way you would on a live terminal: market, limit, or stop, with optional take-profit and stop-loss attached. Orders always fill against the full-resolution recorded data, whatever the replay speed — see How replay works.

Order types

  • Market — fills immediately at the current ask (long) or bid (short).
  • Limit — sits as a pending order; fills when price crosses your level better than your specified price (buy below, sell above).
  • Stop — sits as a pending order; fills when price crosses your level worse than the current quote (buy stop above, sell stop below).

What "price" means for triggering depends on the instrument: on quoted instruments (forex, CFDs) pending orders trigger on the recorded bid and ask; on stock-type instruments stops trigger on recorded trade prices — if no trade printed at your level, the stop doesn't trigger.

Each order can carry an optional take-profit and stop-loss, expressed as a distance from the entry — not as a percentage. On forex instruments the order panel takes the distance in pips and converts it to a price distance for you — a 10-pip stop on EURUSD is just 10 in the Pips field. On other instruments the field is a plain price distance — a $5 stop on a $250 stock is 5.

When you can place orders

Market orders and position closes execute instantly at the current bid/ask — even while the replay is paused. Limit and stop orders are evaluated only against price updates that arrive after placement, with one exception: an order placed at a level the price has already crossed executes immediately at placement.

Place, cancel, and close at any time, running or paused — the controls are disabled only during a load or a jump. Read-only sessions can't be traded.

P&L and account state

The trading account exposes:

  • Balance — realized cash.
  • Equity — balance plus unrealized P&L on open positions.
  • Open positions, pending orders, closed trades — what's in-market, what's waiting to fill, and the full trade history.
  • Executions — every individual fill the engine recorded, shown in the Trades tab.

Statistics come in two layers. Live panel: trade-level stats computed as you trade. Run report: equity curve, drawdown, Return %, Sharpe — computed on request.

Statistics panel

The stats panel summarizes your closed trades for the current session, with an All / Long / Short side filter. Trade counts, win rate, average and largest win / loss, and max consecutive streaks are shown with their labels; three metrics deserve a definition:

MetricWhat it means
Net P&LSum of realized P&L across all closed trades.
Profit factorGross profit divided by gross loss.
ExpectancyMean P&L per closed trade.

Stats update live as trades close, and they always reflect the trades up to the playhead: jump back in time and the trades after that point drop out of the stats; jump forward again and they're restored.

Full statistics: equity & drawdown

The full statistics — the equity curve, drawdown, Return %, Sharpe — are computed on request, because they need a pass over the complete market data. Open the session's Run report and use the Equity & Drawdown section: enter an initial balance for the statistics and press Calculate. StrategyTune's cloud replays your recorded trades over the full market data and fills in the complete statistics.

  • Manual sessions trade from a $0 balance, so percentage stats — Return %, drawdown %, Sharpe — aren't defined until you choose a statistics starting balance for the calculation. It's an analysis assumption for the statistics only — your session's trades and P&L don't change — and you can recalculate with a different balance any time from the report's Initial balance field.
  • The calculation runs on StrategyTune's cloud and counts against your daily compute time, like any run.

For what the simulation does not model — slippage beyond the spread, commissions, partial fills — see Data quality.

Something missing or wrong? Email support@strategytune.com.