Skip to content

Guide

What is repainting in a TradingView strategy?

Repainting is when an indicator or strategy shows different entries and exits on past bars than it fired live. A repainting strategy shows a backtest that live trading may not match. Nyria acts on the alerts that arrive.

Official documentation

Check a strategy for repainting

  1. 1

    Run it live on paper

    Send its alerts to Nyria Paper first.

  2. 2

    Compare the log

    Open the log and read what each alert did.

  3. 3

    Compare the chart

    Check the same bars on the chart afterwards.

  4. 4

    Look for moved entries

    An entry that moved or vanished is a repaint.

  5. 5

    Fix or replace it

    Use entries that stay put once the bar closes.

What it looks like

  • An entry appears on the chart for a past bar.
  • The strategy never fired an alert at that time.
  • The chart was redrawn after the bar closed.
  • The past and the live view disagree.

Why it matters

  • A backtest reads the redrawn history.
  • Live trading only sees the alerts that fired.
  • The two results can differ a lot.
  • A strong backtest of a repainting strategy proves little.

What Nyria sees

  • Nyria acts on the alerts that reach it.
  • It cannot see bars a strategy redraws later.
  • An alert that fired is acted on as sent.
  • The log shows what each alert did.

How to test

  • Send the alerts to Nyria Paper first.
  • Let it run through several sessions.
  • Compare the log with the chart afterwards.
  • Any mismatch needs a closer look.

Common causes

  • Entries that use the current, unfinished bar.
  • Entries that look ahead at later data.
  • Alerts set to fire on every tick, not on bar close.

Questions

What is repainting?
A strategy showing different past entries than it fired live.
Why is it a problem?
Its backtest can look better than live trading would.
Does Nyria detect repainting?
No. Nyria acts on the alerts that arrive.
How do I check for it?
Run it on Nyria Paper and compare the log with the chart.
Can I fix it?
Use entries that stay fixed once the bar closes.
Is it only a TradingView issue?
No. Any indicator that redraws history can repaint.

Next

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.