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
Run it live on paper
Send its alerts to Nyria Paper first.
- 2
Compare the log
Open the log and read what each alert did.
- 3
Compare the chart
Check the same bars on the chart afterwards.
- 4
Look for moved entries
An entry that moved or vanished is a repaint.
- 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
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- Step by step for one account: how to automate Webhook to Nyria Paper.
- Alert tester.
Guides
Share your TradingView backtest
Export the List of trades, upload it to a strategy, and choose whether visitors see the curve, stats and trades.
Read guideWhat do Sent, Placed, Skipped and Failed mean in Nyria?
Six badges, one meaning each. Needs attention and Failed are the two to read.
Read guideHow do I test a TradingView webhook before going live?
Alert tester, Check format, then a Nyria Paper bot. Nothing live is touched.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.