Learn › Testing strategies › Lesson 1 of 3
Backtesting basics
A backtest replays a rule on past data to see how it would have done, with costs.
A rule you can write down
Entry, stop, target or exit, and size, with no judgement calls. If two people can read the rule and place the same trades, it can be tested.
Include costs
Fees, spread and slippage on every entry and exit. Many classic strategies stop being profitable once realistic costs are included.
Enough trades
Twenty trades say very little. Look for at least a hundred, across different market conditions, before trusting any number.
Try it
Check what you took from it
3 questions on this lesson. With at most one wrong answer the lesson is marked as done in this browser; nothing is sent anywhere.
Terms in this lesson
Education only. Nothing here is financial advice or a recommendation to buy or sell anything; trading involves a high risk of losing money.