Product Updates

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

Reviewed by Mike Christensen

Fact-checked by Mike Christensen

3 Min Read
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

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.

  • Product Updates Mar 9, 2026

    Pine Script strategy.exit() Changed in v6

    How to fix strategy.exit() calls when migrating from Pine Script v5 to v6, where relative and absolute parameters are now both evaluated.

  • Video
    Product Updates Nov 18, 2025

    AGI’s Impact on the Future of Trading

    Explore the potential impact of Artificial General Intelligence (AGI) on the future of trading. This comprehensive guide discusses how AGI might influence market volatility, trading strategies, and the role of human traders, along with ethical and regulatory considerations to ensure fair and beneficial market practices.

  • Video
    Product Updates Nov 18, 2025

    Are JSON Properties Case Sensitive?

    JSON properties in TradersPost are case sensitive. Users should copy property names directly from the documentation to ensure correct formatting and avoid execution errors.

  • Video
    Product Updates Feb 2, 2025

    Why Does the Sentiment Parameter Sometimes Sell Everything?

    If sentiment = flat is sent, TradersPost closes all positions, ignoring quantity settings. To avoid this, traders should use “action = sell” with a specific quantity for partial exits.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

TradersPost operates as a non-custodial automated trading platform, enabling users to connect alerts from their preferred trading platforms to their selected brokerage or exchange accounts. It abstains from the transmission, custody, or management of customer funds, covering both traditional and cryptocurrency assets. Typically, registration requirements set by regulatory entities such as the SEC, FINRA, or FinCEN apply to entities that hold or transmit customer funds. To ensure ongoing compliance, TradersPost regularly engages with regulatory authorities to confirm its adherence to all relevant local and federal laws.

TradersPost does not provide alerts, signals, research, analysis, or trading advice of any kind. It is designed to assist traders and investors in making their own trading decisions based on their alerts. The platform does not offer recommendations regarding securities to buy or sell, nor does it provide trading or investing advice. The platform and its features, capabilities, and tools are provided 'as-is' without any warranty.

Risk Disclosure: The use of automated trading systems involves inherent risks, including the potential for significant financial loss. These systems operate based on predetermined algorithms that may not fully adapt to changing market conditions, possibly making them unsuitable for some investors. Individuals are advised to thoroughly assess their financial situation and risk tolerance before using this platform.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

© 2026 TradersPost, Inc. All rights reserved.