Skip to main content
This article is for educational purposes only and does not constitute financial advice. Trading involves risk of loss. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.
Risk Management4 min readUpdated October 12, 2026
TW

Backtest P&L Reconciliation: Audit Matched Trades

Backtest P&L reconciliation: Match trade quantities and prices before assigning unexplained P&L to an execution cause.

Put this into practice with a watchlist

Build a watchlist, then review each signal’s entry, stop, target, and reasoning. Broker access is optional.

Public subscriptions are paper-only; separately approved private beta accounts may submit live broker orders.

Start free — no card

Backtest P&L reconciliation: Match trade quantities and prices before assigning unexplained P&L to an execution cause.

The NQ results discussion compared live trades with a backtester using similar timing. Accessible replies questioned last-price fills and systematically adverse differences. The image figures were not independently validated; the original exercise below demonstrates how to investigate such a discrepancy.

The source discussion is a starting question, not verified strategy evidence. Accessible comments were reviewed incompletely; some replies remained unavailable. Author results are unverified. The exercise below is original educational reasoning with hypothetical inputs, not a reproduction of those results.

Backtest P&L reconciliation: matched-trade residual audit: align before averaging

Choose an identical date interval and strategy configuration. Match signals and orders using stable identifiers where available. Record unmatched signals, rejected requests and partial fills in separate rows. An inner join containing only completed pairs can hide the largest operational difference: one system traded while the other did not.

For matched trades, record side, quantity, decision timestamp, intended execution, observed execution and fees. Keep entry and exit differences separate. Consistent signal times are useful evidence about timing, but they do not prove consistent prices or quantities. Inspect the first divergent event before explaining the final profit-factor gap.

Worked example: correct times, adverse prices

Imagine the simulator buys ten shares at 100 and sells them at 102. Its gross profit is 20. The comparison ledger buys at 100.10 and sells at 101.90, producing 18 before fees. Define the P&L residual as observed minus simulated: it is negative 2. These invented prices expose an unfavorable difference at both ends despite matching trade times.

Repeat with five filled shares instead of ten. Separate the quantity effect from the price effect; do not describe the entire profit difference as slippage. Then add a fee and verify that the net residual changes by exactly that fee in this simple example. Each calculation should be independently reproducible.

Look for direction and concentration

Group residuals by entry versus exit, long versus short, order size, time bucket and exit reason. Preserve the sign convention in the report. Averages can look acceptable while a small set of emergency exits carries most of the discrepancy. Show individual extreme rows rather than relying only on a histogram.

Avoid declaring a universal acceptable tick tolerance. A tick's economic significance depends on quantity, instrument and the strategy's modeled advantage. Express residuals in both price units and cash. Compare their size with the net result being explained, while acknowledging the limited comparison interval.

Put the setup on a watchlist first

Use the rules in this guide to evaluate a signal’s entry, stop, target, and reasoning before deciding what, if anything, to do.

Public subscriptions are paper-only; separately approved private beta accounts may submit live broker orders.

Start free — no card

Check accounting with deliberately simple cases

Use one trade with no fees, one with fees and one partial fill. Reconcile starting cash, purchases, sales and terminal positions. A cost setting should visibly affect the equity ledger, not just appear in configuration output. Add a duplicate event and confirm it does not double a position.

The audit can identify a pricing mismatch, missing order or state inconsistency. It does not prove the remaining strategy has an edge. Once the earliest divergence is understood, preserve the correction and evaluate later observations without retroactively selecting only the trades that now match.

Reference and first useful step

Last-traded prices can differ from market-order execution prices. Investor.gov: Types of Orders.

Open Advisory Research to explore a local sample report and inspect its assumptions before comparing your own saved evidence. Choose a synthetic sample before importing offline JSON. Keep outputs advisory; this exercise does not place trades. For background, read backtesting fundamentals and paper trading.

Continue the research

Intraday Trade Clustering: Resample Portfolio Days and Small Account Backtests: Test Capital Constraints develop adjacent checks. Use a small synthetic fixture first; these educational diagnostics do not validate a trading edge or change account settings.

Frequently Asked Questions

Are matching entry times sufficient?

No. Prices, quantities, fees and unmatched orders can still differ.

What residual sign is used here?

Observed net P&L minus simulated net P&L; negative means worse observed performance.

Why preserve unmatched trades?

Dropping them can hide missed signals or execution failures.

Why split entry and exit residuals?

They can have different causes and reveal where adverse differences concentrate.

Is there a universal acceptable tick difference?

No. Interpret price differences with quantity, instrument and the modeled net advantage.

Keep learning with a related guide before putting an idea on your watchlist.

Try AI signals on your watchlist

Send yourself a signal preview, then add tickers to see ranked entries, exits, and risk notes in Tradewink.

Enter the email address where you want to receive a Tradewink AI signal preview.

Sources cited in this guide

TW

Tradewink builds explainable market research for self-directed traders. Build a watchlist, inspect signal reasoning and risk context, and paper-track ideas before you decide. Public subscriptions are paper-only; separately approved private beta accounts may submit live broker orders.

How we write, source, and correct guides

How this guide is reviewed

Tradewink reviews educational content against its documented market-data sources, risk controls, and product methodology. See our data sources and evaluation methodology for the evidence and limitations behind the platform, and our editorial standards for how guides are sourced, dated, and corrected.

Important disclosures

Informational purposes only

Tradewink is published by Tradewink LLC, which is not a registered investment adviser, broker-dealer, commodity trading advisor, or financial planner. All data, signals, and analytics on this page are general, impersonal, and for informational purposes only. They do not constitute investment advice, financial advice, or a recommendation to buy or sell any security or other instrument.

Trading risk

Past performance does not guarantee future results. Trading involves substantial risk of loss, including the possibility of losing more than your initial investment. You are solely responsible for your own trading decisions.