Step-by-Step Tutorials
Tutorial: How to Backtest a Strategy in 5 Steps
A practical guide to testing your strategy on historical data using TradingView's replay mode.
Key rules
- Write entry criteria before starting the backtest — not during
- Use TradingView Replay: go back 12 months, advance bar-by-bar
- Record every qualifying setup — not just the ones you like
- Calculate win rate and expectancy after minimum 100 trades
- Validate on a separate out-of-sample period
Step 1: Write out your exact setup criteria in advance. Step 2: Select a market and scroll back 6–12 months. Step 3: Use TradingView Replay to advance candle-by-candle. Step 4: Record every qualifying setup in a spreadsheet. Step 5: Calculate win rate, average R, and expectancy after 100+ samples.
Common pitfall: hindsight bias — advance only one candle at a time using Replay to prevent it.