Does your Pine Script repaint?

Paste your code. See every repaint risk and its fix.

Try
Heikin Ashi or Renko adds one chart check.
Stays in your browser

Likely repaints

Strategy · Pine v6 · 19 lines

  • Higher TFHTF2 found
  • Realtimeclean
  • Alertsclean
  • Fills1 found
  • Visualsclean

Static check. Confirm with Bar Replay

Skip the debugging: see our 8 strategies live

All 8 of our strategies

  • Once per bar, closed bars only
  • No look-ahead
  • Past trades never change
See our live track record

We checked the most popular TradingView strategies.

The most-boosted open-source strategies, run through this checker.

With a look-ahead risk
1 %
With a repaint risk
18 %
Most common
Higher timeframe without [1]

The 100 most-boosted open-source strategies on TradingView's popular list · checked 2026-12-02

The Daily filter example in TradingView's Strategy Tester

With look-ahead
+141.5 %
Fixed with [1]
+52.9 %

Same script and costs, only the [1] differs · XAUUSD 1h · 2023–2026 · run 2026-12-02

Open-source TradingView strategies run through the checker on 2026-12-02
StrategyFindingsWorst
CleanTradeQuantum_v7.2_OB_FVG_INTEGRATED · finnp1729calc_on_every_tick = true
Adaptive Dual-Engine Strategy - Momentum + Mean Reversion [BT] · patelanishp20calc_on_every_tick = true
Bull & Wolf Nifty Indicator · Bull-and-Wolf9calc_on_every_tick = true
ICT 10AM First FVG Daily Strategy · mehmettopbas_8varip in orders
Trend Engine | Scored Trend Strategy with Squeeze Breakout · blitz_algo6lookahead_on, offset unclear
VWAP Reversal Strategy V1 · DerAndi725calc_on_every_tick = true
Alpha S/R Channel Strategy · Awab_Hassan4calc_on_every_tick = true
Smart Trend Strategy | julzALGO · julzALGO4timenow in logic
EMA200 REGIME + BOS/CHoCH + 2x FVG Strategy · Bystry19914calc_on_every_tick = true
Cloud Pro | Ichimoku Confluence · blitz_algo3Higher timeframe without [1]
Liquidity Sweep Tracker | Smart Money Stop Hunts · blitz_algo3Higher timeframe without [1]
Liquidity Hunter | SMC System - Full Suite · blitz_algo3Higher timeframe without [1]
TrendLock | Multi-Timeframe Supertrend Donchian Breakout · blitz_algo3Higher timeframe without [1]
Zone Flow S/R Strategy · Awab_Hassan3calc_on_every_tick = true
1 Trendline Strategy · egoigor19762Higher timeframe without [1]
GRAM RSI Strategy [3Commas] · 3Commas2Higher timeframe without [1]
Trend Trigger | EMA Trend Filter + MTF Stochastic Entry with ATR · blitz_algo1Higher timeframe without [1]
FlyTV - a real fruit fly connectome trading on your chart · gsoloviev1calc_on_every_tick = true
ICT Silver Bullet Backtest · MarkLeRoy3process_orders_on_close = true
8PM (MGC 5M) · Edge-Session3calc_on_order_fills = true
Universal Strategy Feed · Options3603process_orders_on_close = true
Super-trend Signal Engine Strat [QUANTUM EDGE] · Quantum-Edge-Capital3Higher timeframe without [1]
Shinobi · Takumi_algo3process_orders_on_close = true
Scam or Slam - Day Trading Rauf Strategy · MrWickTrading3process_orders_on_close = true
ICT Silver Bullet | Liquidity Sweep + FVG Strategy · blitz_algo3process_orders_on_close = true
1m Close Cross Prev 15m Close + SL & Targets · rrk2006hyd3process_orders_on_close = true
Ultimate Prop Firm [Artillery] · ArtilleryTrades2process_orders_on_close = true
TP/SL Toolkit [AxeAlgo] · AxeAlgo2process_orders_on_close = true
Cluster Breakout Strategy v6 (Robust) · ruchiragrawal2process_orders_on_close = true
MKB UT Bot MTF Pro V4 - Smart Trend Filter · mkbfolio2No commission or slippage
Initial Balance BO Strategy · MIKMani2No commission or slippage
STRATEGY SCRIPT Sweep Return v1 · everevolving3652process_orders_on_close = true
Gold Trail [XAUUSD] | Regime-Gated Adaptive ATR Strategy · blitz_algo2No commission
Tomukas Scale-In V2 · Tomukasss2process_orders_on_close = true
Bollinger Squeeze Breakout + Volume · PinegenAI2No commission or slippage
Magnet Structure Strategy | Liquidity Sweep & Reclaim · blitz_algo2process_orders_on_close = true
HTF Level Breakout · vanchesz2No commission or slippage
Momentum Bands | Breakout · blitz_algo2Target, stop or trail in one bar
Elijah's FVG + BOS/CHoCH 1:3 Strategy · kuyaelijah2process_orders_on_close = true
Gaussian Trend Targets | Supertrend Strategy w/ 3R Exits · blitz_algo2process_orders_on_close = true
Sweep & Reverse | Liquidity Sweep Reversal Strategy · blitz_algo1Target, stop or trail in one bar
UT Bot v2 - ATR Trailing Stop · QuantNomad1No commission or slippage
EWO,RSI advanced Signals Strategy - Exhaustion Filter · Pridarasx1No commission or slippage
Momentum Sequence Strategy+ [Herman] · helmans131Target, stop or trail in one bar
Bitcoin SuperFlip | Supertrend EMA Trend-Following Strategy · blitz_algo1Target, stop or trail in one bar
McGinley T3 Flow Campaign [NICK789] v.1 · NICK7891process_orders_on_close = true
Glow Ribbon Flip | Trend-Following Strategy with ATR Band Stops · blitz_algo1Target, stop or trail in one bar
HalfTrend SNIPERMONKEY · YashikaSatya1No commission or slippage
TrendShift | Supertrend + ADX Regime-Adaptive Strategy · blitz_algo1Target, stop or trail in one bar
Sequence Snap | RSI-Confirmed Reversal Scalper · blitz_algo1Target, stop or trail in one bar
Absorption Reversal | Delta Trap · blitz_algo1Target, stop or trail in one bar
ORB Pro | Session Breakout Scalper · blitz_algo1Target, stop or trail in one bar
Tide Rider | RMS Pullback Trend Strategy · blitz_algo1Target, stop or trail in one bar
Swing Exhaustion Fade | Learned Odds + Liquidity Sweeps · blitz_algo1Target, stop or trail in one bar
MACD Pullback Sniper | Trend + ADX Filtered Strategy · blitz_algo1Target, stop or trail in one bar
SuperTrend Regime Confluence · DefinedEdge1Target, stop or trail in one bar
XGBoost Mini Strategy [The Quant Science] · thequantscience1process_orders_on_close = true
UT Bot Strategy with Risk Management [TradeIQ] · Tradeiqofficial1Target, stop or trail in one bar
Fibonacci Cloud | Multi-Timeframe Fibonacci Scanner · blitz_algo1Target, stop or trail in one bar
Gravity Trend | ADX Strength Meter & Quality-Scored DMI System · blitz_algo1No commission or slippage
GlowVwap | Anchored VWAP Pullback Strategy · blitz_algo1Target, stop or trail in one bar
Apex Trail | Trend Agreement Scalper with ATR Trailing Stop · blitz_algo1Target, stop or trail in one bar
Elliott Wave Impulse Strategy | Wave 5 & Reversal Entries · blitz_algo1Target, stop or trail in one bar
Tomukas Elite SMC · Tomukasss1No commission or slippage
Liquidity Gravity Strategy | Weighted Swing-Pool Imbalance · blitz_algo1Target, stop or trail in one bar
Gradient Ribbon | EMA Ribbon Slope-Acceleration System · blitz_algo1Target, stop or trail in one bar
Patterns Strategy v1 · dipalishah941Target, stop or trail in one bar
Volume Vault | Volume Order Block Retest Strategy · blitz_algo1Target, stop or trail in one bar
Breakout Pulse | Volume-Confirmed Support/Resistance Strategy · blitz_algo1Target, stop or trail in one bar
MACD Confluence Strategy | Trend, Pullback & Reversal Entries · blitz_algo1Target, stop or trail in one bar
Harmonic Pulse | XABCD Fibonacci Pattern Strategy · blitz_algo1Target, stop or trail in one bar
Aurora KAMA | KAMA Adaptive Trend Strategy · blitz_algo1Target, stop or trail in one bar
Keystone Retest | Flip Zone & Breakout Strategy · blitz_algo1Target, stop or trail in one bar
Opening Candle Breakout [OCB] Strategy · elpips1Target, stop or trail in one bar
OBS Volume Spike Reaction Fade [NQ] · TurkishTraderUsa_1Target, stop or trail in one bar
Sweep + FVG Reversal [Strategy] · DoruGavrila1Target, stop or trail in one bar
Power Surge | BB Momentum Squeeze Release · blitz_algo1Target, stop or trail in one bar
Fib OTE Sniper | Supertrend Pullback Strategy with Fib Zones · blitz_algo1Target, stop or trail in one bar
Heat Sweep | Volume Heatmap Liquidity Strategy · blitz_algo1Target, stop or trail in one bar
TrendBreaker Pro | Auto Trendline Break Strategy with Momentum · blitz_algo1Target, stop or trail in one bar
Kalman Frontier | Trend, Pullback & HTF Confluence Strategy · blitz_algo1Target, stop or trail in one bar
Surgical Sweep - Original Restored · Abhivish1No commission or slippage
Trend Structure Scale-In · Tomukasss1No commission or slippage
QuantumForexTrader_SniperFusion_Strategy_v2 · finnp171process_orders_on_close = true
Trendline Angle Pro V6 (Degree + Strategy) · dewanpro1Target, stop or trail in one bar
Sweep & Trend | Regime-Filtered Liquidity Sweep Strategy · blitz_algo1Target, stop or trail in one bar
Aurora Value Trend | Value Area Retest Strategy · blitz_algo1Target, stop or trail in one bar
VWAP Trend Momentum [Artillery] · ArtilleryTrades1Target, stop or trail in one bar
Laguerre Pulse | Trend, Structure & Pressure Strategy · blitz_algo1Target, stop or trail in one bar
Z-Edge | Confluence Z-score Strategy · blitz_algo1process_orders_on_close = true
Sovereign Horizon Matrix (SHM) v8.0 · Kenpachi_ii1Target, stop or trail in one bar
HVN Fade & Break | Volume Profile Fade & Breakout Strategy · blitz_algo1Target, stop or trail in one bar
ICT Daily Liquidity Sweep [PineGen AI] · PinegenAI1Target, stop or trail in one bar
Gold Breakout 15M Strategy [WillyAlgoTrader] · WillyAlgoTrader0Clean
TASC 2026.08 An Ag Selling Model · PineCodersTASC0Clean
Golden Trident | Swing-Anchored VWAP Trend System · blitz_algo0Clean
TRADLEWARE-Gaussian Channel + StochRSI ETH · cs_lev0Clean
Velocity Breakout Strategy (VBS) · vasanth_mvk0Clean
Impulse Breakout Bot [TradeIQ] · Tradeiqofficial0Clean
Clearwater | Efficiency-Adaptive Trend Strategy · blitz_algo0Clean

What repainting means on TradingView.

Repainting is when a script's past signals or values differ from what it showed live. History is calculated on closed bars, the live bar tick by tick, so a reload shows signals that never fired and backtests live trading can't repeat.

  • The live bar moves

    Normal. Every indicator does it until the bar closes.

  • Past signals change

    Repaints. A reload shows other signals than live.

  • History sees the future

    Looks ahead. The backtest uses later data.

Does your indicator repaint?

As they are usually coded. Paste a script to check yours.

  • RSINoFixed once the bar closes
  • MACDNoFixed once the bar closes
  • StochasticNoFixed once the bar closes
  • Moving averagesNoFixed once the bar closes
  • SupertrendNoA flip counts at the close
  • FractalsDrawn backKnown 2 bars later
  • Pivot pointsDrawn backKnown several bars later
  • ZigZagYesThe last leg redraws
  • Renko-basedYesThe last brick redraws
  • Multi-timeframeDependsSafe only with a [1] offset

How to fix repainting in Pine Script.

Three changes solve most cases.

  • Higher timeframe: last closed bar

    Before
    request.security(sym, "D", close)
    After
    request.security(sym, "D", close[1],
         lookahead = barmerge.lookahead_on)
  • Orders: act on closed bars only

    Before
    if ta.crossover(fast, slow)
    After
    if ta.crossover(fast, slow) and barstate.isconfirmed
  • Alerts: fire once per bar close

    Before
    alert("Long")
    After
    alert("Long", alert.freq_once_per_bar_close)

How to check if an indicator repaints.

Bar Replay shows what a script really does.

  1. Open Bar Replay. Start 200 bars back.

  2. Step forward. Watch each signal at the close.

  3. A signal that moves or vanishes repaints.

Every repaint and lookahead pattern we flag.

Worst first. The checker shows each with its lines and the fix.

  • lookahead_on without [1]Sees the future close
  • Pine v1–v2 security()Looked ahead by default
  • request.earnings and others with lookahead_onValues before release
  • Strategy on a Renko or brick chartFills that never traded
  • Higher timeframe without [1]Reads a bar still forming
  • lookahead_on with an unclear offsetMaybe sees the future
  • calc_on_every_tick = trueOrders mid-bar, live only
  • varip in ordersLive ticks history never saw
  • barstate.isrealtime, islast, isnew in ordersAnother path live
  • timenow in logicBacktest shifts every day
  • Strategy on Heikin Ashi, no standard fillsFills at averaged prices
  • ticker.renko() data in ordersBricks form differently live
  • Alerts before the bar closesFires on vanishing signals
  • process_orders_on_close = trueFills at the signal close
  • calc_on_order_fills = trueGuessed fills inside a bar
  • Target, stop or trail in one barGuesses which came first
  • Price values in tick inputs (trail_offset, loss …)Exit far off its intent
  • No commission or slippageTrades look cheaper
  • Indicator on a Heikin Ashi chartSignals on averaged prices
  • Lower timeframe via request.securityOnly the last intrabar
  • chart.is_heikinashi and similarExpects synthetic prices
  • plot(…, offset = -n)Drawn before it was known
  • Pivot drawn at the pivot barLooks like an early signal

Pine Script repainting FAQ.

What is repainting in TradingView?

A script repaints when its past signals change after the fact. History is calculated on closed bars, live bars tick by tick, and the two don't match.

How do I know if an indicator repaints?

Paste its code into the checker to find the likely lines. Then confirm with Bar Replay: a signal that moves or vanishes after its bar closes repaints.

Is repainting always bad?

No. The open bar always moves, and a ZigZag redraws by design. It matters when orders, alerts or backtests use values that change later.

What is lookahead bias in Pine Script?

The backtest uses data that did not exist yet at that bar. The classic case: request.security with lookahead_on and no one-bar offset. Great results, all invalid.

How do I avoid repainting in Pine Script?

Use closed-bar values only: shift higher-timeframe data one bar back with lookahead_on, gate orders with barstate.isconfirmed, and fire alerts once per bar close.

Does a non-repainting indicator lag?

By up to one bar. It waits for the close, so a signal comes a little later, but it never changes afterwards.

What does TradingView's repainting warning mean?

TradingView warns in the alert dialog when a script may repaint. It is a quick guess that also fires on harmless code. The checker shows the exact lines.

Does a tick chart stop repainting?

No. Repainting comes from the script's logic, not from the chart. Fix the code, then confirm with Bar Replay.

Is my code uploaded?

No. The check runs in your browser. Your code is never sent to us or anyone else.

More free tools.

By , founder & developerBuilt by us. Rules checked against TradingView's Pine Script v6 docs on 2 Dec 2026, tested on 70 flagged and clean sample scripts. How we check our own results.