What a backtest is, and what it is notBeginner
The basics in five minutes: rules, data, costs and the limits of testing the past.
Definition
A backtest applies a fixed set of rules to historical candles and records every trade those rules would have taken: entry, stop, target, result. At the end you see win rate, profit factor, drawdown and an equity curve.
What makes a backtest honest
Real data rather than invented prices. Costs included. Signals only on closed candles, so nothing uses information from the future. The same rules on every trade, without exceptions added after seeing the result. Enough trades to mean something.
What it cannot do
It cannot predict the future, only describe the past. It cannot test judgement you cannot put into rules. It cannot tell you whether you will follow the rules on a losing streak.
A good workflow
Write the idea in plain words. Run it. Look at the trades on the chart and check the engine read your rules the way you meant. Change one thing at a time. Test on another market and another period before trusting anything.
Write your rules in plain words and test them on real data in seconds.
More lessons
Education only, not financial advice. Definitions vary between teachers; these are ours, written for clarity.