How to test whether a TradingView indicator repaints

Record what the indicator shows as a candle closes, reload the chart, then compare the same candle. Log when the signal first appeared if the script draws labels on earlier candles.

AlgoAlpha ·

Test one signal live and after reload

  1. Record the exact exchange symbol, interval, candle timestamp, script, inputs, session and chart type. Use a standard candle chart and record its timezone so you can find the same bar again.
  2. While the candle is open, capture the plot value or take a screenshot when a label appears. Record it again once the bar closes. For a live alert, save its timestamp and trigger frequency.
  3. Reload the same chart with the same inputs and compare that closed candle. Record whether the value, direction, price or marker position changed. Repeat across several signals and record when the market data changed between checks.

If a marker flickers while the candle is open and the two closed readings match, you observed an intrabar update. A mismatch on a closed bar is worth investigating against the same data and settings. See TradingView’s Pine Script guide to repainting for common causes.

Check delayed pivots and higher-timeframe inputs

A pivot with three bars required to its right can draw a label three bars back when the third later bar confirms it. Write down both the bar the marker is drawn on and the bar where you first saw it. When comparing strategies, use the confirmation time as the earliest time you could act on that pivot.

On a 15-minute chart using an hourly input, take a reading at the 10:15 close and another once the 10:00–11:00 hourly candle has closed. Reload and check the same 15-minute bar. Depending on how the script requests higher-timeframe data, the input seen at 10:15 may have been provisional even though the 15-minute bar had closed.

An example log entry is BTC/USDT · 15m · 10:15 UTC close · up marker visible · 1h bar open · marker absent after reload. Keep the screenshots and check the script documentation before drawing a conclusion about the cause.

Use Bar Replay to check signal timing

Start Bar Replay before the event and advance one candle at a time. Note which candle first shows the label and where the script places it. Save live observations separately when testing intrabar fluctuations or server-side alerts, which use real-time data in TradingView.

For an exercise with an exact timestamp and gap boundaries, use the BTC/USDT fair value gap study. Then compare free and premium AlgoAlpha indicators and use the replay exercise for the indicator you are considering.