Does this indicator repaint? Paste the Pine Script and check

Paste the source of any open-source TradingView script below. The checker looks for the patterns TradingView's own Pine Script manual names as causes of repainting, tells you which line each one is on, and what the documented fix is. It runs entirely in your browser: nothing you paste is sent anywhere.

What "repainting" means

A script repaints when what it shows on past bars is not what it showed, or would have shown, while those bars were live. The history looks cleaner than anything you could have traded, because the marks that appeared and then vanished are gone. TradingView's manual sorts the causes into three groups: values calculated on bars that have not closed yet, things drawn on bars earlier than the one where they became known, and changes in the data itself.

What the checker looks for

Where it fails

Sources: TradingView's Pine Script manual, Repainting.

See it applied

Our teardowns go through popular indicators one at a time, including whether each one repaints: Supertrend, UT Bot Alerts, RSI and VWAP. The monthly Teardown Letter does the same for one indicator per issue.

Also explained: VWAP, Supertrend, RSI, UT Bot Alerts, Nadaraya-Watson Envelope

Subscribe to the Teardown Letter: $19/moBack to Taught to Trade