Plans, psychology and practice · Lesson 3 of 8
Testing ideas in the simulator
Testing shows how a rule set behaves before real money is involved. How backtesting, simulators and demo accounts differ, how many trades a test needs, and the ways results can mislead.
- 4 min read
- 4-question check
- Beginner
- ✓ Completed
In this lesson you will
- Compare backtesting, simulated practice and demo trading.
- Estimate how uncertain a win rate is for a given sample size.
- Recognise overfitting and other ways tests can mislead.
Backtesting applies fixed rules to past prices. A simulator, like the TradingFXO Forex Trading Simulator, plays synthetic prices bar by bar so you can practise placing and managing trades with virtual money. A demo account at a provider uses live prices with virtual money. Each is useful; none matches real trading exactly.
How many trades is enough?
Results from a small number of trades are dominated by luck. A rough way to see this is the 95% range for a win rate: about win rate ± 1.96 × √(p × (1 − p) ÷ n), where p is the win rate and n the number of trades.
Worked example: sample size and certainty
12 wins in 20 trades: p = 0.60
Range ≈ 0.60 ± 1.96 × √(0.60 × 0.40 ÷ 20) = 0.60 ± 0.21 → roughly 39% to 81%
120 wins in 200 trades: same 60%
Range ≈ 0.60 ± 1.96 × √(0.24 ÷ 200) = 0.60 ± 0.07 → roughly 53% to 67%
Illustrative numbers, not live prices.
Ways a test can mislead
- Overfitting: tweaking settings until past results look perfect. The rules then describe the past, not a repeatable behaviour.
- Leaving out costs: spread, commission, swaps and slippage all reduce results.
- Hindsight: judging a chart after you can already see what happened next.
- Changing rules mid-test: the results then belong to no single rule set.
Using the simulator well
In the simulator, write your rules first, then step through bars one at a time so the future stays hidden. Use "Size by risk" so every trade risks the same share of the balance. At the end of a session, note the win rate, average R and maximum drawdown it reports. A price seed lets you replay the same session to practise execution, but conclusions need many different sessions.
Simulated and demo results leave out real-money emotions and real execution. Good practice results are a reason to keep testing carefully, not evidence that a rule set will work live.
Common mistakes
- Drawing conclusions from 10 or 20 trades.
- Adjusting settings after every test until the results look ideal.
- Testing without costs, then being surprised by live results.
Key takeaways
- Backtests, simulators and demos each test something different; none equals live trading.
- Small samples are mostly noise: 60% from 20 trades could easily be 40% or 80%.
- Overfitting, missing costs and hindsight all flatter results.
- Fix the rules first, hide the future, record every trade.
Check your understanding
4 quick questions. Pick an answer to see an explanation straight away. Nothing is graded and you can try again as often as you like.
Use it
Related lessons
- What a strategy is: rules you can test Level 4 · 4 min
- Risk:reward versus win rate Level 2 · 3 min
- Take profit: a target, not a prediction Level 2 · 4 min
Related learning notes
Finished the lesson?
Mark it complete to track your progress through Plans, psychology and practice. Saved in this browser only.
OptionalFree
Email me new lessons
This lesson and the rest of the Academy are free to read without signing up. If you would like a short note when new lessons are published, leave your email.
Educational content only. Not personal financial advice. This lesson explains a concept with illustrative numbers. It is not a recommendation to trade and does not consider your circumstances or the rules where you live. Leveraged trading carries a high risk of losing money. Read the risk disclaimer.