How to backtest a strategy on TradingView — and read it honestly
TradingView is a genuinely powerful charting platform, and its Strategy Tester will backtest a strategy for you in a few clicks. Running the test is the easy part. The harder part — on any platform — is trusting the result: a good-looking equity curve can hide costs, look-ahead, and the one comparison that actually matters. Here are the steps, the things to check, and a free way to re-score what you got.
Run a backtest on TradingView, step by step
- 1. Add a strategy to a chart — a built-in one, or your own written in Pine Script (TradingView's scripting language).
- 2. Open the Strategy Tester panel at the bottom of the chart and let it run over the visible history.
- 3. Read the performance summary and the List of Trades — the total return, the drawdown, and every individual trade.
What a good-looking equity curve can hide
A backtest is easy to misread in your own favour — on TradingView or anywhere else. Before you trust one, check these:
Costs. A strategy that trades a lot can look great with no fees and slippage and turn negative once they're on. Check your commission and slippage settings — these are yours to set, and they change the answer.
The buy & hold comparison. An equity curve on its own doesn't tell you whether the strategy beat simply holding the asset — and a rule that merely rode a rising market can look like skill. That comparison is the one that matters.
Look-ahead and repaint. Some indicators repaint — they redraw on past bars as new data arrives — and careless Pine can read a bar before it has closed, so the curve shows trades you could never have taken live.
Sample size. A spectacular result built on a handful of trades is a coin that came up heads a few times, not an edge — few trades means a small sample, so treat it with suspicion.
If you've run a strategy on TradingView, you can paste or drop its List of Trades here and see it re-scored the honest way: real costs, fills at the next bar's open (never the signal bar), and the result measured against simply buying and holding the same asset. No code, no sign-up. A trade list can't prove a strategy is sound — and we say so on every screen — but it can show you what it looks like once the friction and the benchmark are back in.
Trade number Type Date and time Price Net PnL Return
3 Long Exit Apr 9, 2026 59.83 USD +1,027 USD +210.35%
Entry Jan 9, 2026 19.28 USD
2 Short Exit Jan 9, 2026 19.28 USD −310 USD −13.38%
Entry Dec 9, 2025 22.27 USDEach trade is its number + Long/Short, then its Exit and Entry rows. Yours won't line up this neatly when pasted — that's fine, we read it anyway and show you a preview to check. (This is a made-up example, not real trades.)
Which tool for which job
Reach for TradingView when you want its charting, real-time data, the community and shared scripts, alerts, or the full flexibility of Pine Script. Reach for this when you just want a quick, honest answer to “does this beat buy & hold?” without code — with the losses and drawdowns in plain sight, not buried. They're complementary: many people prototype on one and sanity-check on the other.
Stratsemble is not affiliated with TradingView. “TradingView” and “Pine Script” are trademarks of their respective owner, named here only to describe how to backtest on that platform. Other platforms' features and defaults change over time — check their own site for current details. This is an educational, analytical tool, not investment advice; you make all decisions and execute on your own broker.