tradingview-pine-agentlisted
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