The Limits of the TradingView Strategy Tester
TradingView's Strategy Tester is handy for a first look at an idea, but it has limits you should know before you trust its numbers. By default it assumes each order fills at the close of a bar, so when both your stop and your target sit inside the same bar, it guesses which one hit first instead of knowing. Scripts can also repaint or peek at future data if they are written carelessly, which makes past results look better than they were. On lower plans the amount of history and the intrabar detail are capped. It also ignores commissions and slippage unless you add them by hand. None of this makes it useless, but the equity curve is a rough sketch, not proof.
The built-in strategy tester is great for a first look and weak for robustness. The specific limitations around data, repainting, and sample size, and what to check before trusting a result.
Key points
- By default the Strategy Tester fills orders at each bar's close, so it can't reliably tell whether your stop or your target was reached first within the same bar.
- The intrabar detail that would fix that (the bar magnifier) sits on paid plans, and even then it is an approximation, not real tick data.
- Scripts that reference future bars or repaint can show past results that were never actually tradable, so the logic matters as much as the numbers.
- Commissions and slippage are not included unless you set them, and leaving them out flatters short, high-frequency strategies the most.
- History length and the number of backtested bars are limited on lower plans, which can shrink your sample below what you need to trust.
- A clean backtest is a starting point for research, never a guarantee that the same behavior repeats live.
Frequently asked questions
Why do my TradingView backtest results look better than live trading?
Common reasons are fills assumed at the bar close, no slippage or commissions built in, and possibly a script that repaints. Together they can make the past look cleaner than it traded.
What is repainting in a TradingView strategy?
Repainting is when an indicator or strategy changes its past signals as new data arrives, or uses data it wouldn't have had in real time, so the history looks better than it really was.
Does TradingView backtest on tick data?
Not on most plans. It works off standard OHLC bars, and the bar magnifier feature only approximates intrabar movement on paid tiers, so it is not the same as true tick data.
How many bars can I backtest on TradingView?
It depends on your plan. Lower tiers cap the history and the number of trades, which can leave you with a sample too small to draw a confident conclusion from.
Where can I run a fuller backtest with more detail?
AlgoAgent in Agenticks can backtest a strategy you describe and return numbers like drawdown and expectancy, plus stress checks such as walk-forward and Monte Carlo, so you see more than one equity curve.
Related on Agenticks
This content is for educational purposes only and does not constitute financial advice. Trading involves risk, including possible loss of capital.