Few things are more frustrating than watching a TradingView strategy show a clean winning trade on the chart, only to realize the live alert either fired a candle late—or never fired at all. Usually, TradingView isn’t broken; the Strategy Tester simply simulates historical bars differently than live ticks.
1. Historical Bars Only Have Four Prices (OHLC)
On historical candles, TradingView doesn’t know the exact tick-by-tick path price took inside the bar unless you enable Bar Magnifier. If both your stop-loss and take-profit sit inside the same candle’s high-low range, the tester makes an assumption about which was hit first—which can look much cleaner than live execution.
2. Market Orders Fill on the Next Bar Open
By default, a Pine Script strategy.entry() calculates at the close of the signal bar and fills at the open of the next bar. If you accidentally set your alert to trigger mid-candle, or turned on process_orders_on_close=true without accounting for spread, your live fills won’t match the backtest.
3. Heikin Ashi and Non-Standard Charts
Running a strategy backtest on Heikin Ashi, Renko, or Range bars is one of the biggest traps on TradingView. Those charts use synthetic open/close prices that don’t exist in the real market. Your backtest fills at fake Heikin Ashi prices, while your live broker fills at real candlestick prices.
How to Keep Backtests Honest
Always test on standard candlesticks, add realistic commission and slippage ticks in the Strategy Properties tab, and enable Bar Magnifier on intraday strategies so historical fills reflect real intra-bar price action.



