pine_analyze
Analyze Pine Script offline to detect array out-of-bounds, unguarded array.get, invalid loops, lookahead bias, and deprecated syntax before compiling—no live TradingView needed.
Instructions
Run offline static analysis on Pine Script source code: detects array out-of-bounds, unguarded array.get/first/last, invalid loop ranges, lookahead bias, and deprecated syntax. WHEN TO USE: Call before compiling code to verify correctness without needing a live TradingView connection. SIDE EFFECTS: None (Read-only offline parser). LIMITATIONS: Static AST parsing only; does not execute runtime logic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Pine Script source code to analyze |