Black Friday50% off TDLab Pro, annual and monthly. Until Sunday 6 December.50% off until 6 Dec

See the codes
All guides
Analytics & discipline

Testing rules with the What-if analysis

Updated Nov 18, 20266 min read

TDLab What-if analysis: a 45-minute pause after every loss replayed on past trades, actual vs simulated equity
Product interface · recorded example. Click to open at full size.

The What-if analysis answers “what if I had followed this rule?” It replays your real trades in a period with the rules of a scenario applied and shows the simulated equity next to the actual one. It is the second tab of Behavioral Edge: the Simulate button next to a pattern opens it with the suggested rule already set.

Build a scenario

A scenario is one or more rules. Add them from the groups on the right, set their parameters, then press Run simulation. When a scenario holds several rules, they add up.

  • Frequency: max trades per day, max trades per week, minimum pause between trades, pause after a win.
  • Losses: stop after N losses, daily loss stop, pause after a loss, reduce size after a loss.
  • Hours: exclude weekday, exclude time slot, day and time slot together.
  • Size: cap on oversized trades, relative to your average size.
  • Execution: exclude discipline mistakes, exclude low execution, only followed plan.
  • Setups, tags, symbols: exclude symbols, exclude setups, only chosen setups, exclude tags, only chosen tags.

Rules based on execution, plan, setups and tags use what you recorded in Trade Review, so they are as reliable as those fields.

Read the result

The Active scenario card shows the result with the scenario compared with the real equity over the same period, plus max drawdown, win rate and Trades affected. Below it you find:

  • Trades affected: every trade the scenario excludes or modifies, with the reason. A trade excluded by several rules is counted once, in the first rule that excludes it.
  • Drawdown: actual and simulated drawdown over time.
  • A confidence check: with enough trading days TDLab tells you whether the improvement is distinguishable from noise; with too few it says how many more days are needed.

Before adopting a rule, use the trading what-if analysis workflow to inspect affected trades, test nearby parameters and avoid choosing a rule only because it produced the best historical result.

Save and compare

Save run keeps the scenario under Saved simulations, where you can reopen it or select two for an A/B comparison on the same trades and period.

Adopt as rule

Adopt as rule turns the rules of the scenario into Account Rules. Choose which rules and which accounts: TDLab creates one independent rule per account, with limits per account and amounts in each account’s currency. Where the same rule is already active it is skipped, not duplicated. From then on every new trade is checked against it.

Past data, not a forecast

Simulated figures show what your past trades would have produced with the rules. They are not gains you achieved and not a prediction.

Plan limit

The 14-day TDLab trial includes 10 simulations. Pro allows unlimited runs. After the trial, limited free access keeps your saved simulations visible but blocks new runs until you upgrade.

Put the evidence to work.

Connect your real trades with behavior, rules and historical market context. Start free for 14 days.