Understanding the TradingView Backtester

Fact checked by
Mike Christensen, CFOA
November 28, 2024
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.

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. 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

Another setting to improve accuracy is On Every Tick Execution:

• Without this setting, orders execute at the close of a candle.

• When enabled, orders update dynamically with every price movement.

• 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. Even with premium plans, traders often only get a few years of data—far less than what institutional backtesting platforms provide.

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 paper account to simulate live execution.

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 allows traders to see actual execution performance. By running live forward tests, traders can measure:

Fill accuracy

Order execution speed

Slippage and commission impact

Unlike backtesting, TradersPost provides real-world results, making it a crucial step before trading with real capital.

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 on TradersPost to validate real-world execution

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

Ready to automate your trading? Try a free 7-day account:
Try it for free ->