TradingView's bar-replay tool lets you test a strategy on historical data candle by candle, without seeing the future — the closest risk-free equivalent to live trading. It is the fastest way to build screen time and prove an edge before risking money.
How to backtest with bar-replay
Open the replay tool, jump to a random historical date so you can't anticipate the outcome, and step forward one candle at a time. Apply your rules exactly as you would live: mark structure, wait for the setup, take the entry, and let it run to your stop or target.
What to record
Log every trade: setup type, entry, stop, target, the structure context, and result. After 50–100 trades you have a real sample — win rate, average reward-to-risk, and which setups carry your edge.
Avoiding the traps
Don't peek ahead, don't skip losing trades, and don't change rules mid-test. Curve-fitting — tweaking until the past looks perfect — produces a strategy that only works on history. Validate on data you haven't seen.
Frequently asked questions
How do you backtest on TradingView?
Use the bar-replay tool: jump to a random past date, step forward one candle at a time, apply your rules exactly as you would live, and log every trade. This removes hindsight bias and builds a real performance sample.
How many trades do you need to backtest?
Aim for at least 50–100 trades per setup for a meaningful win rate and average reward-to-risk. Smaller samples are dominated by luck rather than edge.
Key takeaway
Bar-replay from a random date, step candle by candle, apply rules exactly, and log everything. Fifty-plus trades with no peeking gives an honest read on your edge.