Backtesting

How to Backtest on TradingView: Complete Guide

The TradingView Backtester simulates past trade performance but has limitations, including approximated data and restricted historical range. Traders should validate strategies with forward testing on TradersPost to ensure real-world viability.

Tom Hartman

Marketing

4 Min Read Reviewed by Mike Christensen Fact-checked by Mike Christensen
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.
Update history
  1. Major update

    Traders ask how TradingView backtests and forward tests work, so the guidance now clarifies realtime recalculation, broker-based paper testing, and Bar Replay for manual review.

  2. Correction

    TradingView now offers Deep Backtesting with up to 2 million bars and 1 million trades on Premium and higher plans, so the historical-data limitation has been corrected while the article’s broader backtesting guidance remains accurate.

The TradingView Backtester is a tool within TradingView that allows traders to simulate how a strategy would have performed on historical data. It visually displays entry and exit points on a chart and generates performance statistics.

Backtesting helps traders evaluate a strategy’s profitability before risking real capital. However, it is essential to understand its limitations and differences from live trading.

How the TradingView Backtester Works

When you run a backtest in TradingView, the platform replays historical price data and applies your strategy’s rules to determine where trades would have occurred. For manual review of past price action, Bar Replay lets you select a starting point and advance historical bars using the Replay control in the chart toolbar2. The results include:

• Entry and exit signals plotted on the chart

• Performance metrics, such as win rate, profit factor, and drawdowns

• An equity curve to visualize growth over time

However, unlike real-time trading, TradingView’s backtester does not analyze every single price movement within a candle. Instead, it estimates how trades would have executed based on available historical snapshots.

Key Differences Between Backtesting and Live Trading

1. Backtest Data is Approximate, Not Precise

The TradingView backtester does not process every tick of price movement within a candle. Instead, it takes snapshots at certain points, meaning your strategy may behave slightly differently in live conditions.

Bar Magnifier for More Accurate Results

The Bar Magnifier feature (available on Premium TradingView accounts) improves backtest accuracy by analyzing trades at a lower timeframe than the one displayed. For example:

• If you are backtesting on a 15-minute chart, the bar magnifier will check price movements down to the 1-minute level.

• This helps resolve issues where an entry and exit occur on the same candle but in an order that differs from live trading.

Tick-by-Tick vs. Candle Close Execution

For realtime strategies, another setting is On Every Tick Execution:3

• Without this setting, strategies calculate at the close of a realtime candle3.

• When enabled, strategies recalculate with every update of a realtime candle3.

• This can better reflect real-world conditions where prices fluctuate within a candle.

Commissions, Slippage, and Limit Orders Matter

Many traders assume a strategy is profitable based on backtests—but fail to factor in trading costs like:

• Brokerage commissions

• Slippage (the difference between expected and actual execution price)

• Limit order fill rates

Adding these settings to your backtest can drastically change results. Some profitable strategies in a zero-cost environment become unprofitable once these real-world factors are applied.

The Limitations of TradingView Backtesting

Limited Historical Data

TradingView restricts how far back you can test, depending on your subscription level. With Premium and higher plans, Deep Backtesting can use all available historical data for a symbol, up to 2 million bars and 1 million trades1.

Not a Replacement for Live Testing

A strategy that performs well in a backtest is not guaranteed to work in live markets. The best practice is to:

1. Run a forward test using TradersPost with a broker’s paper account to test execution4.

2. Analyze real-time fills and slippage to adjust for market conditions.

3. Deploy with small capital before scaling up.

Using TradersPost for Live Testing

While TradingView’s backtester helps refine strategies, TradersPost paper trading helps traders test strategy configuration4. By running live forward tests, traders can measure:

• Fill accuracy

• Order execution speed

• Slippage and commission impact

Unlike backtesting, broker-reported paper or live results can help assess execution before trading with real capital4.

Conclusion

The TradingView Backtester is a valuable tool for testing strategies, but it has limitations. Traders should:

  • ‍Use Bar Magnifier and Tick Execution for better accuracy‍
  • Include commissions and slippage to get realistic results‍
  • Run forward tests with a broker’s paper or live account to assess execution4

By understanding how backtesting differs from live trading, traders can avoid false confidence and optimize strategies for real market conditions.

References

1 How Deep Backtesting works - TradingView
2 tradingview.com, Demo features on TradingView
3 tradingview.com, Strategy properties
4 docs.traderspost.io, Paper Trading

All In Backtesting
  • Video
    Backtesting Oct 1, 2025

    Strategy Tester in TradingView

    TradingView integration guide: setup, features, automation options, and broker connectivity for enhanced trading.

  • Video
    Backtesting Sep 3, 2025

    How to Backtest Strategy in TradingView

    Comprehensive analysis of Tradestation, Alpaca, Interactive Brokers features, automation capabilities, and integration options for traders.

Ready to put what you read into practice?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.