How to backtest and forward test your strategy
How to backtest and forward test your strategy
One of the most dangerous things a new trader can do is look at three historical examples of their setup working, convince themselves they have an edge, and immediately risk real money. Three examples is not data — it is pattern recognition bias. A properly validated strategy requires systematic backtesting across at least 100 setups before a single real dollar is at risk.
What backtesting actually is
Backtesting means going back through historical price data and identifying every instance where your specific setup criteria were met, then recording what happened — not cherry-picking the ones that worked. The goal is to build a real sample size that reveals the true win rate, average risk-to-reward, and statistical expectancy of your strategy before live capital is involved.
How to backtest properly
Step 1 — Define your rules precisely first You cannot backtest a vague strategy. Before touching a chart, write out every specific rule: the exact entry criteria, where the stop goes, where the target goes, what timeframe you're on, and what session you're trading. If you cannot write it down specifically, you cannot backtest it consistently.
Step 2 — Go back at least 3 to 6 months of data Use a platform like TradingView's replay feature or a dedicated backtesting tool. Scroll back in time and work forward, identifying every setup that meets your criteria — including the ones that lose. Recording only winners is not backtesting, it's self-deception.
Step 3 — Record every trade in a spreadsheet For each historical setup log: date, entry price, stop price, target price, result (win/loss), R:R achieved, and any relevant notes. After 100 entries you have real data.
Step 4 — Calculate your expectancy Expectancy = (Win rate × Average win) − (Loss rate × Average loss)
A positive expectancy means the strategy makes money over a large sample. A negative expectancy means it does not, regardless of how good individual setups looked.
Three winning examples on a chart is not a strategy. One hundred consistently recorded setups with a positive expectancy is a strategy.
What forward testing is and why it's different
Backtesting uses historical data — you already know what price did. Forward testing means executing your strategy on a demo account in real time, without knowing what will happen next. This is a completely different psychological experience.
Forward testing reveals things backtesting cannot: how you handle a setup forming in real time, whether you can actually pull the trigger on entries, how you manage trades while they're live, and whether your emotional response to losses causes you to deviate from the plan. Many strategies that backtest beautifully fail in forward testing because the trader cannot execute them under real-time pressure.
The minimum viable process before going live
- Backtest at least 100 historical setups — record every one, wins and losses
- Calculate win rate, average R:R, and expectancy — confirm it's positive
- Forward test on demo for at least 30 real-time setups across a minimum of 4 to 6 weeks
- Review your demo journal for execution quality — are you actually following your rules?
- Only then go live — and start with the smallest position size your broker allows
The most common shortcut that destroys accounts
Skipping step 3 (demo trading) because "it doesn't feel real." This reasoning is exactly backwards. The purpose of demo trading is not to simulate the emotional pressure of real money — it's to build the habit of executing your rules consistently before the stakes are high. A trader who cannot follow their rules on demo will not suddenly follow them with real money on the line.
How Tradecility supports this process
When you start logging real trades in Tradecility, every entry is evaluated against your specific strategy rules by the AI. If your backtesting was thorough and your rules are specific, the AI coaching immediately identifies whether your live execution matches your tested process — closing the loop between the strategy you proved in backtesting and the strategy you're actually executing in the market.
Key takeaways
- Three historical examples is not data — backtest at least 100 setups before risking real money, recording wins and losses consistently
- Expectancy = (Win rate × Average win) − (Loss rate × Average loss) — a positive expectancy is the minimum requirement for a viable strategy
- Forward testing on demo reveals what backtesting cannot: whether you can actually execute your rules under real-time pressure without knowing the outcome
- The correct sequence is always: backtest 100 setups, forward test 30+ real-time setups, then go live at minimum size — skipping any step is how accounts get blown
Tradecility is an educational tool and does not give financial advice.