Free: indicator teardowns, a repaint checker and open-source scripts. No buy/sell signals, ever.

Taught to TradeSystems over signals.

Explainers / Is TradingView backtesting accurate?

Is TradingView backtesting accurate?

TradingView's Strategy Tester does what it says it does: it replays your strategy over past bars and fills orders by a fixed set of rules. The arithmetic is not the problem. The problem is the assumptions, most of which are set by whoever wrote the strategy, and several of which are generous by default.

So the honest answer is: a TradingView backtest is as accurate as its settings. Here is what the tester assumes, and a six-step check you can run on any strategy.

How the Strategy Tester fills an order

On historical bars, TradingView only knows each bar's open, high, low and close. It does not know the order in which those prices happened. So it uses a rule:

That rule is reasonable. It is also a guess. On a bar where both your stop and your target sit inside the range, the tester decides which came first from the open alone, not from what actually happened.

Six things that make a backtest look better than it was

  1. Costs set to zero. Commission and slippage are whatever the author typed into the strategy, and that is often zero. Open the strategy's Settings → Properties and read them. On a strategy that trades often, costs are usually the single biggest difference between a backtest and an account statement.
  2. Limit fills at the exact price. By default a limit order fills if price merely touches it. In live markets a touch often does not fill you. The "Requested price and 1 tick beyond" setting is the stricter choice.
  3. The intrabar guess. Tight stops and targets on large bars are where the open-high-low-close assumption matters most. Bar Magnifier (below) reduces this.
  4. Heikin Ashi, Renko and other synthetic charts. TradingView's own manual calls results on these "typically unrealistic", because fills use prices that never traded. Run the test on standard candles, or make sure the strategy uses fill_orders_on_standard_ohlc.
  5. Repainting. If the strategy uses a higher-timeframe value without a one-bar offset, or recalculates on every tick, history can contain signals that were not available at the time. See What is repainting on TradingView?.
  6. Too few trades, and too many settings tried. Twenty trades is an anecdote. And if the settings were chosen by trying many combinations, the best one will look better on the past than it will on the future.

What Bar Magnifier and Deep Backtesting change

A quick check for any strategy

  1. Properties tab: commission, slippage, order size, and initial capital. Set costs to what your broker actually charges plus a tick or two of slippage.
  2. Limit fill setting: switch to "Requested price and 1 tick beyond" and see what changes.
  3. Chart type: standard candles.
  4. Bar Magnifier on (if your plan has it). If results move a lot, the original relied on the intrabar guess.
  5. Number of trades in the summary. Fewer than about 100 is too few to tell much.
  6. Bar Replay through a few signals to check they appeared at the time (see the repainting guide).

If the results survive all six, you have a backtest that is honest about its own assumptions. That still is not a forecast.

Our free TradingView script Cost Hurdle shows the cost a strategy has to clear before it earns anything, on your chart.

Where it fails

Educational content only. Not financial advice. Nothing here is a recommendation to buy or sell anything.

Also explained: Repaint checker, VWAP, Supertrend, RSI, UT Bot Alerts, Nadaraya-Watson Envelope, Squeeze Momentum, What is repainting on TradingView?, Chandelier Exit, WaveTrend Oscillator, QQE MOD, Pivot highs and lows, Hull Suite, Range Filter, Twin Range Filter, HalfTrend, ZigZag++, SSL Hybrid, CM MacD Ultimate MTF, Volume Profile / Fixed Range, ADX and DI, Support Resistance Channels, Market Structure Break & Order Block, Order Block Finder, Pivot Point SuperTrend, Trendlines with Breaks [LuxAlgo], Divergence for Many Indicators, TradingView script selling terms, Support and Resistance Levels with Break, Liquidity Swings [LuxAlgo], Pine Script errors, Breakout Probability (Expo), Did ChatGPT or Claude write your Pine Sc, Lorentzian Classification, SuperTrend AI (Clustering), Machine Learning Adaptive SuperTrend, Dynamic Swing Anchored VWAP, Support and Resistance Power Channel by , Support and Resistance (High Volume Boxe, Trendline Breakouts With Targets by Char, Breakout Finder by LonesomeTheBlue

Next steps

  • Get a script fixed. Compiles but behaves differently live, or changes after a reload? In a Pine Script Audit, an AI model reads every line and writes a report on what to fix for $49, or also fixes those problems for $149. It cannot prove a script is safe.
  • Check your own script. Paste its source into the free repaint checker. It runs in your browser and flags known patterns.
Subscribe to the Teardown Letter: $19/moBack to Taught to Trade

No TradingView account yet? This affiliate link gives you a $15 coupon toward a paid plan, and we earn a commission if you buy one. The free plan is enough to follow this page.