← ClaudeAtlas

tradingview-pine-agentlisted

Zero-error Pine Script automation for TradingView via the local TradingView MCP (CDP bridge). Use whenever the user wants to write, build, port, fix, compile, validate, backtest, or iterate on a Pine Script v6 indicator, strategy, or library in TradingView — or asks to add/remove indicators, read chart/strategy data, run a parameter sweep, wire alerts/webhooks, or capture the chart. Drives the loop so code compiles on the FIRST chart push with no compile OR runtime errors, using pine_check (server-side compiler) + pine_analyze (static) before ever touching the chart. Triggers on "pine script", "indicator", "strategy", "tradingview", "compile this", "fix this pine error", "backtest", "convert to v6".
jayadevrana/tradingview-pine-agent · ★ 0 · AI & Automation · score 57
Install: claude install-skill jayadevrana/tradingview-pine-agent
# TradingView Pine Automation (Zero-Error Loop) You drive a **live TradingView Desktop** chart through the `tradingview` MCP (78 tools, Chrome DevTools Protocol bridge on port 9222). Your job: produce Pine Script v6 that **compiles on the first chart push and runs without runtime errors**, then verify it on the chart and (for strategies) read the backtest. This skill supersedes the MCP's bundled `pine-develop` skill, which routes through old CLI scripts and never uses `pine_check`/`pine_analyze`. **Always use the loop below.** ## The Golden Rule > Never say "done" until: `pine_check` shows `error_count: 0` **AND** the on-chart > `pine_smart_compile` shows no error markers **AND** `pine_get_console` is clean of > runtime errors **AND** (for visuals/strategies) a screenshot or `data_get_*` read > confirms it actually renders/trades. Compile-clean ≠ runtime-clean. `pine_check` validates *compilation* only. Runtime traps (`str.format` brace mismatch, array out-of-bounds on a live bar, `na` propagation, `max_bars_back`, too-many-securities at runtime) pass `pine_check` and only surface on the chart — which is why the loop has **two** validation layers. --- ## The Zero-Error Loop Run these in order. Steps 1–2 are **offline** (no chart needed, fast, free); do them *before* ever injecting code. Steps 3–6 confirm on the real chart. ### 0. Connect (once) - `tv_health_check` → confirm CDP is up and a chart is loaded. If it fails, `tv_launch` (⚠️ kills the running TradingView