TradingView can backtest, but "backtesting on TradingView" means two very different tools that suit two very different traders. Bar Replay is for reading price bar by bar with your own eyes. The Strategy Tester is for measuring a strategy you have written in Pine Script code. Pick the wrong one and you will either waste hours or get numbers that have nothing to do with how you actually trade. Here is how both work, and what to reach for when neither fits.
The two ways to backtest on TradingView
Before the step-by-step, know which tool you are actually looking for:
- Bar Replay — rewind the chart to a past date and step forward one candle at a time. You watch the setup form and decide, in real time, whether you would have taken the trade. This is manual / discretionary backtesting.
- Strategy Tester — attach a Pine Script strategy to the chart and TradingView auto-runs it across history, spitting out net profit, win rate, and drawdown. This is automated / mechanical backtesting, and it only works on rules written in code.
How to use TradingView Bar Replay
- Open any chart and click Replay in the top toolbar.
- Click a point on the chart to set where the replay starts, then press play or use the step-forward button to reveal one bar at a time.
- As each bar prints, use the drawing tools to mark your entry, stop, and target, and note whether the trade would have won or lost.
- Keep stepping forward and record the outcome of each setup by hand — in a spreadsheet or notebook — so you can total them up later.
Bar Replay is genuinely useful for training your eye and rehearsing a setup. But notice what you are doing in steps 3 and 4: marking trades with drawings and tallying results by hand. TradingView has no built-in way to place a trade during replay, size it to your risk, or total your win rate and expectancy for you. That bookkeeping is all on you — which is where most manual backtests quietly fall apart.
What's gated behind a paid plan: Bar Replay exists on the free tier, but intraday replay (stepping through M1–H4 candles), faster replay speed, longer history, and more indicators per chart move up into TradingView's paid plans. If you backtest an intraday strategy, you will run into these limits fast.
How to use the TradingView Strategy Tester
- Open the Pine Editor at the bottom of the screen.
- Write (or paste) a strategy using
strategy()calls that define your exact entry and exit rules. - Click Add to chart, then open the Strategy Tester tab to see the performance summary, the list of trades, and the equity curve.
The Strategy Tester is powerful — for a fully mechanical system. The catch is in step 2: your strategy has to exist as Pine Script code. If you trade by reading structure, momentum, or a pattern by eye, there is no honest way to express "I take this when it looks right" in code, and no way to click buy or sell manually during the test. So the tester measures a robot's version of your idea, not yours.
Where TradingView backtesting hits a wall
For a discretionary trader, both tools leave the same gaps:
- No manual trade execution during replay — you draw trades instead of placing them, so there is no automatic record.
- No risk-based position sizing — nothing sizes your lot to a fixed 1% risk off your stop distance, so every trade is weighted differently in your head.
- No automatic analytics — win rate, expectancy, profit factor, max drawdown, and the equity curve are yours to compute by hand.
- Coding tax for real testing — the only tool that totals results for you (Strategy Tester) demands Pine Script.
None of this means TradingView is bad — it is a superb charting platform. It just was not built to be a manual backtesting tool for discretionary traders. That is a different job.
A free, no-code alternative for manual backtesting
FxBacktest is built for the exact job Bar Replay makes you do by hand. It runs free in the browser and turns discretionary backtesting into something you can actually measure:
- Bar-by-bar replay across forex, gold, indices, crypto, and stocks — with the intraday timeframes free from the start.
- Place real buy / sell trades by dragging your stop and target on the chart, exactly as you would live.
- Automatic risk sizing — set risk to 1% (or a fixed dollar amount) and the lot size is calculated from your stop distance for you.
- A full session report — win rate, expectancy, profit factor, max drawdown, and an equity curve are totalled automatically, no spreadsheet.
- Multi-timeframe replay and per-trade journaling so you review the whole sample, not one candle at a time.
- No Pine Script. If you can read a chart, you can backtest your strategy.
The workflow is simple: use TradingView for live charting and analysis, and use FxBacktest to actually test a strategy across a real sample and read the numbers. Many traders run both.
Which should you use?
- Want to train your eye on a chart you already have open? Use TradingView Bar Replay.
- Have a fully mechanical strategy and don't mind coding? Use the TradingView Strategy Tester.
- Trade discretionary setups and want measured win rate, expectancy, and drawdown without coding or manual tallying? Use a dedicated manual backtesting simulator.
TradingView backtesting FAQ
Can you backtest on TradingView?
Yes, in two ways. Bar Replay rewinds the chart so you can step forward bar by bar and practice reading price, and the Strategy Tester runs automated backtests on strategies you write in Pine Script. Bar Replay is for manual, discretionary practice; the Strategy Tester is for coded, rule-based strategies. There is no built-in tool for logging manual trades with stop, target, and risk during a replay.
Is TradingView backtesting free?
Bar Replay and the Strategy Tester exist on the free plan, but with limits. Intraday replay, faster replay speed, extended history, and more indicators per chart are gated behind paid tiers, and the Strategy Tester still requires you to code your strategy in Pine Script. For free, no-code manual backtesting you need a purpose-built simulator.
Does the TradingView Strategy Tester work for discretionary trading?
Not really. The Strategy Tester only runs strategies defined in Pine Script code, so it measures a fully mechanical rule set. If you trade discretionary setups by eye, there is no way to place a manual buy or sell during the test, so the results do not reflect how you actually trade.
What is a good alternative to TradingView for manual backtesting?
A dedicated manual backtesting simulator like FxBacktest is built for exactly this: replay historical charts bar by bar, place buy and sell trades with draggable stop and target, auto-size the lot to a fixed risk percentage, and get a full session report with win rate, expectancy, drawdown, and an equity curve. It runs free in the browser with no Pine Script.