Free tools / Repaint checker
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
- Future leak (high):
request.security()withlookahead = barmerge.lookahead_onand no[1]offset, or with a plain series beside an offset one, such ashigh - low[1]. History then shows higher-timeframe values before they existed. TradingView calls this "dangerously misleading", and publications that use it are moderated. - Unconfirmed higher-timeframe values (medium):
request.security()without an offset. Live, the daily value keeps changing until the day closes; on history you only see the final one. The documented fix isclose[1]withlookahead_on, used together. A request ontimeframe.periodstays on the chart timeframe, so these two rules do not apply and it gets a low note instead. - Live-only state (medium):
varip,timenow,barstate.isnewandcalc_on_every_tick = trueall behave differently on live bars than on history. - Plotting in the past (medium): negative
offsetvalues, and pivot labels placed onbar_index[n]. A pivot is known only after its right-side bars close, but it is drawn on the pivot bar. - Synthetic prices (medium):
ticker.heikinashi(), Renko and similar. Strategies filling on them fill at prices that never traded. - Check by hand (low): an offset that sits inside a call, such as
nz(close[1]), or in a variable or a function of the script, a plot offset held in a variable,request.security_lower_tf(), and drawings moved or rebuilt on the latest bar. These can be fine or can be a real leak. A text scan cannot tell, so each is flagged for you to read. - Unconfirmed signals (low): crosses feeding alerts or shapes without
barstate.isconfirmed. A marker can appear on the live bar and disappear before the close.
Where it fails
- It reads text, it does not run the code. A pattern inside a function that is never called still gets flagged, and a repaint built from unusual code can be missed.
- No flags means none of these patterns was found. It does not prove the script is safe or that it never repaints.
- Some flagged patterns are harmless where they are used, for example
barstate.islastto draw a table. Read the reason before judging the script. - It cannot check closed-source or invite-only scripts, because their code is not visible. For those, watch the script live for a few bars and compare with what history shows after a reload.
- Data revisions and a different first bar can change past values in any script. No text check can see that.
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, Squeeze Momentum, What is repainting on TradingView?, Is TradingView backtesting accurate?, Chandelier Exit, WaveTrend Oscillator, QQE MOD, Pivot highs and lows, Hull Suite, Range Filter, Twin Range Filter, HalfTrend, ZigZag++, SSL Hybrid, CM MacD Ultimate MTF, Volume Profile / Fixed Range, ADX and DI, Support Resistance Channels, Market Structure Break & Order Block, Order Block Finder, Pivot Point SuperTrend, Trendlines with Breaks [LuxAlgo], Divergence for Many Indicators, TradingView script selling terms, Support and Resistance Levels with Break, Liquidity Swings [LuxAlgo], Pine Script errors, Breakout Probability (Expo), Did ChatGPT or Claude write your Pine Sc, Lorentzian Classification, SuperTrend AI (Clustering), Machine Learning Adaptive SuperTrend, Dynamic Swing Anchored VWAP, Support and Resistance Power Channel by , Support and Resistance (High Volume Boxe, Trendline Breakouts With Targets by Char, Breakout Finder by LonesomeTheBlue, Volume Flow Indicator by LazyBear, FVG Order Blocks by BigBeluga, CM_Williams_Vix_Fix by ChrisMoody, Bollinger + RSI Double Strategy by Chart, Ultimate Moving Average MTF by ChrisMood, Fibonacci Bollinger Bands by Rashad, Candlestick Patterns Identified by repo3, MACD + SMA 200 Strategy by ChartArt, Pine Script v5 to v6, Moving Average Cross Alert, Multi-Timefr, WaveTrend Oscillator [WT] by LazyBear, WaveTrend with Crosses [LazyBear], CM_Price-Action-Bars by ChrisMoody, RSI Candles by glaz, CM RSI-2 Strategy Lower Indicator by Chr, CM Stochastic Multi-TimeFrame by ChrisMo, CM_Ultimate RSI Multi Time Frame by Chri, TonyUX EMA Scalper - Buy / Sell by tux, MACD 4C by vkno422, My Pine Script is valid. What did the va
Get the next teardown by email
One short email when a new teardown or free tool goes live, about twice a month. No signals, no hype. Unsubscribe in one click.
Almost done. Check your inbox and click the confirmation link.
Sent with Kit. Your address is used only for these emails. Privacy
Script compiles but behaves differently live, or changes after a reload? In a Pine Script Audit, an AI model reads every line and writes a report on what to fix for $49, or also fixes those problems for $149. It cannot prove a script is safe either, but it covers logic this scan cannot see. Order an audit
No TradingView account yet? This affiliate link gives you a $15 coupon toward a paid plan, and we earn a commission if you buy one. The free plan is enough to follow this page.