Pine Diagnostic
Free Pine Script diagnostic

Find what broke.
See what matters.

Paste your TradingView Pine Script. Terrane checks structural errors, order paths, version problems, repainting and lookahead patterns, plus backtest assumptions—then separates what was actually detected from what needs semantic review.

01Deterministic first

Repeatable code checks before any AI interpretation.

02Evidence attached

Findings point back to the relevant source line when possible.

03No fake compiler pass

TradingView remains the authority on compilation and runtime behavior.

Terrane Diagnostic ConsoleSource inspection workspace
Static engine Semantic review
untitled.pine
0 lines0 chars
Private processingDeep review sends source to Terrane's AI endpoint with storage disabled. Terrane does not write this diagnostic to its database.
Awaiting source

Four layers of inspection.

01Language structureVersion, declaration, modern Pine patterns
02Order topologyEntry, exit and position paths
03Historical integrityLookahead, repainting and execution assumptions
04Semantic reviewIntent mismatches and harder logic defects

Terrane will never label a script “compiled” unless TradingView actually compiled it.

What Terrane checks

A diagnostic, not a green-check generator.

The tool is designed to narrow the failure surface before you start randomly rewriting code.

Language

Version & syntax patterns

Flags missing declarations, v6 migration issues, legacy namespace patterns, and other high-confidence structural problems.

Orders

Entry & exit paths

Checks whether a strategy can create orders, whether an explicit closing path exists, and whether script type matches order usage.

Repainting

Lookahead & realtime drift

Reviews request.security(), lookahead patterns, tick recalculation, realtime-only branches, and other historical/live divergence risks.

Evidence

Backtest assumptions

Surfaces execution settings, missing costs, slippage assumptions, and conditions that can make a historical test less representative.

Important boundary

Terrane does not replace TradingView's compiler.

Static analysis can identify many common failure patterns, but only TradingView can compile and execute the exact script against its Pine runtime and chart data. Use the exact TradingView error message when you have one—it makes the deep review substantially more precise.