Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pine-script

Skill by HKUDS

Exports a Vibe-Trading backtest strategy to TradingView Pine Script v6, TDX formulas for 通达信, 同花顺 and 东方财富, and MQL5 for MetaTrader 5. Aimed at traders who want to move a Python strategy onto these platforms.

  • Score 91
  • 39k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pine-script

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.claude/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/pine-script ~/.claude/skills/pine-script

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pine-script in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Pine Script is an agent skill that converts a Vibe-Trading strategy into indicator or strategy code for several trading platforms in one pass. The assistant reads the run's config.json and the Python signal engine, then translates the logic using the mapping tables in the skill. All platform versions are saved together in artifacts/strategy.pine inside the run directory.

The skill covers TradingView (Pine Script v6), 通达信, 同花顺 and 东方财富 (one TDX formula that works on all three), and MetaTrader 5 (MQL5). It can also generate code from a plain text description of an indicator. Each platform section includes paste or install instructions. It is aimed at traders and developers who want to use a Python backtest on charting or trading platforms.

Written from the project's SKILL.md and checked against it.

What it can do

  • TradingView exportTranslates the strategy into Pine Script v6 strategy code.
  • TDX formula exportWrites one TDX formula version for 通达信, 同花顺 and 东方财富.
  • MQL5 exportProduces a custom MetaTrader 5 indicator template with buffers and arrows.
  • Generate from descriptionWrites indicator code for all platforms from a user's text description.
  • Combined output fileSaves all platform code to artifacts/strategy.pine with usage notes.
  • Python to platform mappingProvides conversion tables for indicators, signals and position sizing.

What you need

  • Vibe-Trading run directory with config.json and code/signal_engine.py
  • TradingView account to use Pine Editor
  • MetaTrader 5 with MetaEditor to compile MQL5 code

Try asking

  • Export my backtest strategy to TradingView and MT5 code
  • Turn this RSI crossover idea into TDX formula code
  • Generate Pine Script for a Bollinger Band breakout strategy

Good to know

  • The source lists TDX strategy backtesting as 条件选股 (stock selection) only.
  • Template signal conditions are placeholders that must be filled in for each strategy.
  • TDX formulas should stick to core functions for compatibility, per the source.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent/src/skills/pine-script/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md15 KB

Alternatives to pine-script

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

pine-script: common questions

Which platforms does pine-script export to?

The source says it exports to TradingView (Pine Script v6), 通达信, 同花顺, 东方财富 (TDX formula), and MetaTrader 5 (MQL5). It always generates all of them in one run.

Where is the exported code saved?

The combined output is written to artifacts/strategy.pine inside the run directory, with one section per platform.

Can it create code from a plain description?

Yes. The generate workflow writes indicator or strategy code for all platforms based on the user's description.

How do I install pine-script?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pine-script free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pine-script safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pine-script?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

pine-script Install

Add to stack

Loading.