Agent skill

Pine Script Development Loop

by tradesdontlie in tradesdontlie/tradingview-mcp

Runs a write, compile, fix and verify loop for TradingView Pine Script indicators and strategies, pushing code into the Pine Editor and checking it on the chart.

Custom licenceAuto-check passedBusiness, Finance & HR

Install Pine Script Development Loop

skills CLI
$ npx skills add tradesdontlie/tradingview-mcp --skill pine-develop -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tradesdontlie/tradingview-mcp pine-develop --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tradesdontlie/tradingview-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pine-develop .claude/skills/pine-develop && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pine-develop
GitHub stars
6.8k
Used in
2 other repos
Token cost
~617 tokens
SKILL.md length
304 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Runs a write, compile, fix and verify loop for TradingView Pine Script indicators and strategies, pushing code into the Pine Editor and checking it on the chart.

  • Works in 7 steps: Understand the Goal → Pull Current Source (if modifying) → Write the Pine Script → …
  • Building a new TradingView indicator or strategy
  • SKILL.md covers Step 1: Understand the Goal, Step 2: Pull Current Source…, Step 3: Write the Pine Script and Step 4: Push and Compile, plus 3 more sections
  • Calls node

What it does

The agent first clarifies what to build: indicator, strategy or library, its logic, overlay or separate pane, and inputs. When modifying, it pulls the current source with a script into `scripts/current.pine`; otherwise it starts fresh. New scripts must carry a version 6 header, a proper indicator or strategy declaration, grouped `input` functions and clear section comments, and strategies add entry and exit calls, position sizing and default commission and slippage.

A push script injects the code into TradingView's Pine Editor, compiles it and reports errors, and the agent edits locally and pushes again until compilation is clean. Common error messages are listed with likely causes, such as indentation, misspelled functions and undeclared variables. After a clean compile it takes a screenshot of the chart and, for strategies, reads the performance results, then iterates by pulling fresh source first. It never reports the work as done without a clean compile.

When your agent uses it

  • Building a new TradingView indicator or strategy
  • Fixing Pine Script compile errors
  • Modifying an existing script already in the Pine Editor
  • Checking a strategy's results on the chart

Example prompts

  • “Write a Pine indicator that plots two moving averages and marks crossovers, then compile it.”
  • “Pull my current script, add an RSI filter to the strategy entries and push it.”
  • “The Pine Editor says undeclared identifier. Fix it and recompile.”

Requirements

  • TradingView Desktop connected to the agent
  • Node to run `pine_pull.js` and `pine_push.js`

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Understand the Goal
  2. Pull Current Source (if modifying)
  3. Write the Pine Script
  4. Push and Compile
  5. Fix Errors
  6. Verify on Chart
  7. Iterate

What it can do on your machine

Read from SKILL.md and the folder at commit c05b8f5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pine Script Development Loop loads about 617 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 304 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~617

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 304 words (~617 tokens).

“You are developing a Pine Script indicator or strategy in TradingView. Follow this loop precisely.”

— opening of SKILL.md by tradesdontlie, Custom licence
name
pine-develop

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/pine-develop of tradesdontlie/tradingview-mcp.

Open the folder on GitHubat commit c05b8f5

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in tradesdontlie/tradingview-mcp, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Pine Script Development Loop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pine Script Development Loop compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pine Script Development Loop this skilltradesdontlie/tradingview-mcp6.8k2 repos~617Automated safety check: PassCustom licence
TqSdk Trading and Datashinnytech/tqsdk-python5.1k—~2kAutomated safety check: PassApache-2.0
Polymarket Profilerunesleo/polymarket-toolkit194—~3.7kAutomated safety check: PassMIT
Strategy Export to Pine Script and MoreHKUDS/Vibe-Trading35k—~3.8kAutomated safety check: PassMIT
Options PayoffHKUDS/Vibe-Trading35k—~6.8kAutomated safety check: PassMIT
Backtest DiagnosisHKUDS/Vibe-Trading35k—~1.2kAutomated safety check: PassMIT

Similar skills

  • TqSdk Trading and Data

    shinnytech/tqsdk-python

    Answers TqSdk Python questions on market data, accounts, orders, margin trials, simulation and backtesting, using the library's own docs and examples.

    5.1k GitHub stars~2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Polymarket Profile

    runesleo/polymarket-toolkit

    Polymarket address profiler — input any 0x address, get a complete trading profile with PnL, win rate, positions, category breakdown, and top trades.

    194 GitHub stars~3.7k tokensUpdated 28 days ago
    Business, Finance & HRAuto-check passed
  • Translates a Python backtest strategy or a plain description into Pine Script v6, TDX formulas and MQL5 code for TradingView, Chinese broker terminals and MetaTrader 5.

    35k GitHub stars~3.8k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Options Payoff

    HKUDS/Vibe-Trading

    Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg strategy visualization, and Greeks-based scenario analysis.

    35k GitHub stars~6.8k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Backtest Diagnosis

    HKUDS/Vibe-Trading

    Finds why a trading backtest crashed or gave odd results, sorts the cause into a runtime, logic or data error, fixes the code and checks the rerun metrics.

    35k GitHub stars~1.2k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Longbridge Market Data

    sickn33/agentic-awesome-skills

    Real-time quotes, K-line charts, order book, trade ticks, intraday capital flow, market sentiment temperature, trading session schedule, security lists, exchange rates, and IPO calendar for…

    47k GitHub starsUsed in 1 repo~1.7k tokens
    Business, Finance & HRAuto-check passed

More from tradesdontlie/tradingview-mcp

  • Multi-Symbol Market Scanner

    tradesdontlie/tradingview-mcp

    Scans a list of trading symbols in TradingView for setups, patterns or strategy results and reports them as a ranked comparison table.

    6.8k GitHub starsUsed in 2 repos~447 tokens
    Auto-check passed
  • TradingView Chart Analysis

    tradesdontlie/tradingview-mcp

    Sets up a TradingView chart with a symbol, timeframe and indicators, marks key levels, takes a screenshot and reports price range, levels and overall bias.

    6.8k GitHub starsUsed in 3 repos~515 tokens
    Auto-check passed
  • Strategy Performance Report

    tradesdontlie/tradingview-mcp

    Builds a performance report for a backtested Pine Script strategy from TradingView data, covering metrics, trades, the equity curve and improvement ideas.

    6.8k GitHub starsUsed in 3 repos~591 tokens
    Auto-check passed
  • TradingView Replay Practice

    tradesdontlie/tradingview-mcp

    Guides a manual practice session in TradingView replay mode: set a chart, step through historical bars, take trades and review the P&L.

    6.8k GitHub starsUsed in 2 repos~446 tokens
    Auto-check passed

Questions about Pine Script Development Loop

What does Pine Script Development Loop do?

Runs a write, compile, fix and verify loop for TradingView Pine Script indicators and strategies, pushing code into the Pine Editor and checking it on the chart. The agent first clarifies what to build: indicator, strategy or library, its logic, overlay or separate pane, and inputs.pine`; otherwise it starts fresh.

When should I use Pine Script Development Loop?

Pine Script Development Loop fits situations like: building a new TradingView indicator or strategy; fixing Pine Script compile errors; modifying an existing script already in the Pine Editor; checking a strategy's results on the chart.

How do I install Pine Script Development Loop in Claude Code?

Run `npx skills add tradesdontlie/tradingview-mcp --skill pine-develop -a claude-code`. Or copy the skill folder (skills/pine-develop in tradesdontlie/tradingview-mcp) into .claude/skills/pine-develop in your project. Claude Code loads it when a task matches its description.

How do I install Pine Script Development Loop in Codex?

Run `npx skills add tradesdontlie/tradingview-mcp --skill pine-develop -a codex`. Or copy the skill folder (skills/pine-develop in tradesdontlie/tradingview-mcp) into .agents/skills/pine-develop in your project. Codex loads it when a task matches its description.

Can I use Pine Script Development Loop in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tradesdontlie/tradingview-mcp --skill pine-develop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pine-develop, .gemini/skills/pine-develop, .github/skills/pine-develop and .opencode/skills/pine-develop in your project.

What does Pine Script Development Loop need to run?

Going by SKILL.md and its folder, Pine Script Development Loop needs the command-line tools its instructions call (node). Our summary lists: TradingView Desktop connected to the agent; Node to run `pine_pull.js` and `pine_push.js`.

Does Pine Script Development Loop access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pine Script Development Loop safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pine Script Development Loop use?

Pine Script Development Loop has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Pine Script Development Loop use?

About 617 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pine Script Development Loop?

Skills that share tags, products or a category with Pine Script Development Loop: TqSdk Trading and Data (shinnytech/tqsdk-python, 5.1k stars), Polymarket Profile (runesleo/polymarket-toolkit, 194 stars), Strategy Export to Pine Script and More (HKUDS/Vibe-Trading, 35k stars) and Options Payoff (HKUDS/Vibe-Trading, 35k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pine Script Development Loop?

tradesdontlie (a GitHub user) maintains it in tradesdontlie/tradingview-mcp, which has 6,751 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on July 28, 2026.

Source: tradesdontlie/tradingview-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.