Learn
Backtesting is how you find out whether a trading idea has ever worked, before you find out with real money. These guides cover how to do it by hand, how much data you need, and the mistakes that make a good looking test fall apart in live trading.
Backtesting means taking a set of trading rules and checking them against price that has already happened. You apply the rules to history, write down every trade they would have produced, and add up the result.
The purpose is not to predict anything. It is to find out whether the idea has ever worked, and roughly how it behaves, before you pay to find out live.
If your rules can be written down exactly, software can test years of data in seconds. If part of your decision is judgement, and for most discretionary traders it is, then the honest way is to replay the chart bar by bar and make each call yourself.
Manual replay is slower but it has one advantage that matters. You cannot see the future, so you cannot accidentally cheat.
Too few trades, so the result is luck. Tuning the rules until they fit the data, so the result is a description of the past rather than an edge. And leaving out costs, so a losing system looks like a winning one.
Each of those has a guide below, because each is common enough to be worth its own page.
Replay any market from any date and find out whether the thing you believe about your trading is true.
Start free