Backtesting · 7 min read

What-If Analysis: Re-Run Your Real Trades Under Different Rules

Every trader asks the same questions after the fact. What if I had held that trade a little longer? What if my stop had been wider? What if I had taken a fixed one-to-one on everything instead of managing by feel? What-if analysis answers them with evidence instead of a guess.

It works by taking the trades you actually took and replaying them against the real historical candles under a rule you change, one at a time. Because it uses your real entries and the real price path, the answer is a fact about your history, not a hypothetical curve you fit after the event.

What what-if analysis actually is

A normal backtest invents a rule set and runs it over the market. What-if analysis is the reverse: it starts from your real, logged trades and asks how the outcome would change if one rule were different. Your entry, direction and the market's actual candles stay fixed; only the rule under test moves.

That distinction matters. Because the entries and the price data are real, what-if analysis measures your decisions, not a made-up strategy. It is the honest way to learn whether a habit is helping or hurting you.

Why it beats a generic backtest for this job

A generic backtest tells you whether an idea has an edge in the abstract. What-if analysis tells you something more personal and more actionable: given the exact trades you take, would a specific change have helped? It isolates one variable against your own sample, so the comparison is apples to apples.

And because it re-simulates against the real candles, with the stop checked before the target inside each bar and gaps handled honestly, the results reflect what would genuinely have filled, not an optimistic assumption.

The questions it can answer

  • What if I held to my original plan every time, instead of exiting early?
  • What if every trade used a fixed reward-to-risk, say a clean 1:1 or 2:1?
  • What if I held about ten minutes longer, or ten minutes shorter, on average?
  • What if my stop had been wider or tighter?
  • What if I moved to breakeven once a trade reached one R?
  • What if I only traded certain session hours, or skipped a weekday?
  • What if I stopped for the day after a set loss, a losing streak, or a maximum number of trades?
  • What if I had risked a fixed dollar amount on every trade?

How to read it without fooling yourself

The trap with any optimization is overfitting: if you keep tweaking rules until your past trades look perfect, you have described your history, not built an edge. The change that most flatters last month is often just noise.

Use what-if analysis to find robust, explainable improvements, not the single best-fitting number. If widening your stop helps across many trades and makes sense with how you enter, that is a real lesson. If only one oddly specific setting wins, be suspicious. And remember it is backward looking: confirm a promising change on new trades before you trust it.

Doing it on Secuora

Secuora builds this into the backtester. Run a session, then open the What-if tab on the analytics view and ask any of these questions in plain language, or open the advanced panel to set each rule by hand and watch the numbers recompute live. Every answer is walked over the same real candles your trades were taken on, so what you get is grounded in your actual history rather than an assumption. The 3-day trial covers it and the demo needs no sign-up.

Frequently asked questions

What is what-if analysis in trading?

It re-runs the trades you actually took against the real historical price data under a changed rule (a wider stop, a fixed reward-to-risk, holding longer, a session filter, and so on), so you can see how that one change would have affected your results. It measures your real decisions, not an invented strategy.

Does what-if analysis use my real trades?

Yes. It keeps your real entries, direction and the market's actual candles fixed and only varies the rule you are testing, re-simulating the outcome against real prices. That is what makes the answer a fact about your history rather than a hypothetical.

Can what-if analysis tell me my optimal rules?

It can show what would have happened, but treat "optimal on past trades" with caution. Tuning rules until your history looks perfect is overfitting. Look for robust, explainable improvements that hold across many trades, then confirm them on new trades before trusting them.

Practise this on Secuora

Free trading journal + bar-by-bar replay backtester. Crypto replay is free and there's a live demo with no sign-up.

Keep reading