✓ Free check✓ No sign-up✓ Your script isn't stored✓ Fixes use TradingView's documented patterns
Pine Doctor: find what breaks your TradingView script
Paste a script. See what repaints, what won't compile on v6 and which signals have no alert. The basics are fixed free.
Our free Pine Script v5 to v6 converter & repaint checker converts a v5 script to v6 in your browser and flags repaint risks line by line, without rewriting them. Pine Doctor's free check flags them too and fixes what stops a script compiling on v6; its Pro fix ($4.99 for one script, or every script with All-Access) rewrites the lines it lists so higher-timeframe values read the last closed bar and signals wait for the bar to close, and adds an alert condition for each signal.
Pine Doctor
Free · no sign-up · checked in your browser · we never store your script
How it works
- 1Paste or open a .pine file
Checked in your browser. Nothing uploads.
- 2See what fails, by line
The score is the share of checks that apply and pass.
- 3Copy the fix
Free: it compiles on Pine v6. Pro: it stops repainting and gets its alerts.
What the Pro fix changes
Higher-timeframe values that hold still
A daily value on a lower chart moves until that bar closes, and on history it can read the close early. Pro reads the last closed bar, as TradingView's docs show. MTF Supertrend, MACD and dashboard functions too.
- request.security(syminfo.tickerid, "D", high) + request.security(syminfo.tickerid, "D", high[1], lookahead = barmerge.lookahead_on)
Signals that wait for the close
An arrow on the bar still forming can appear and vanish. Pro draws it, and alerts, once the bar has closed. A divergence drawn bars back moves to the bar it fires on.
- plotshape(longOk, title = "Breakout") + plotshape(longOk and barstate.isconfirmed, title = "Breakout")
An alert for every signal
A signal with no alert can't notify you. Pro adds one per signal, ready in Create Alert (on a paid TradingView plan: the free one has price alerts only).
- // no alertcondition() + alertcondition(longOk and barstate.isconfirmed, "Breakout", "Breakout on {{ticker}}, {{interval}}")
Prices
Free
$0
The scan, every check and the free fix: paste debris, the v5 → v6 conversion. Copy it with or without a one-line credit.
Pro: this script
$4.99
Every Pro fix on the script you checked. One payment.
All-Access
$2.99
Every Pro fix on any script for the first 7 days, then $14/month, cancel anytime. Also every free tool's member side.
A lower price for one script in some countries ($2.99), shown at checkout. Doesn't compile, or a line it fixed still repaints? Reply to your Stripe receipt within 7 days: we correct it, or refund you if we can't.
Questions
Is Pine Doctor free?
The check and the free fix are: every check, its lines, and a copy that compiles on Pine v6 (paste debris removed, a v5 script converted). The Pro fix, which stops the signals repainting and adds alerts, is a one-time payment.
What does repainting mean in Pine Script?
A signal or value that changes after the fact: an arrow that appears mid-bar and is gone at the close, or a higher-timeframe value that moves until that bar closes. On past bars it can also read data that wasn't known yet, so the history looks better than live trading can be.
Do you store my script?
No. The check and the free fix run in your browser. If you ask to see one real change before you buy, or buy the Pro fix, the script is sent to our server to make the fix and is not kept; while Stripe takes the payment it waits in your own browser tab.
Will the fixed script compile?
The rewrites use the patterns TradingView documents, and each pattern compiled on TradingView in our tests. Paste it into Pine Editor to be sure. If it doesn't compile there, reply to your Stripe receipt within 7 days with TradingView's error: we send a corrected script within 3 business days, or refund you in full if we can't correct it.
Can I get a refund?
The Pro fix is code you keep the moment it unlocks, so it isn't refunded on request. If it doesn't compile, a line it changed still repaints, or an alert it added is missing from Create Alert, send us the script and TradingView's error (or the line) within 7 days: we correct it, or refund you in full if we can't. Lines the check names for a person aren't covered, since neither fix changes them.
Does the Pro fix make a strategy profitable?
No. It makes the script show on past bars what it would have shown live, which often makes its history look worse, not better. It changes no rule of the strategy and says nothing about future results.
What can't it fix?
Lines that need a person: a request that returns a tuple from the script's own function, a signal that isn't a plain true/false condition, logic that branches on realtime bars. The check names those lines; neither fix touches them.
Pine Doctor edits code; it isn't trading advice and makes no claim about results. Pine Script is TradingView's language; ProEA isn't affiliated with TradingView. Trading carries risk of loss.