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 charliedream1

Exports a Vibe-Trading backtest strategy to Pine Script, TDX formula and MQL5 code in one file. Built for traders who want the same logic on TradingView, Chinese equity platforms and MetaTrader 5.

  • Score 91
  • 6.8k stars
  • Apache-2.0
  • 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/charliedream1/ai_quant_trade /tmp/ai_quant_trade && mkdir -p ~/.claude/skills && cp -r /tmp/ai_quant_trade/egs_skill/vibe_trading_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

The pine-script skill exports a Vibe-Trading backtest strategy into indicator or strategy code for three platform groups. It writes one file, artifacts/strategy.pine, that holds TradingView Pine Script v6, TDX formula code for 通达信, 同花顺 and 东方财富, and MQL5 for MetaTrader 5. The skill reads config.json and the Python signal engine, then translates the logic using its mapping tables.

It can also generate code from a plain description of an indicator or strategy. Each output section includes a short note on where to paste or compile the code, and the skill returns the code with usage instructions per platform. The guide suits traders and developers who want to move a Python backtest onto charting or trading platforms.

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

What it can do

  • Export from backtestReads config.json and code/signal_engine.py, then translates the strategy to every supported platform.
  • Generate from descriptionWrites indicator or strategy code for all platforms from a user's written description.
  • Pine Script v6 mappingMaps pandas and numpy patterns to TradingView Pine Script v6 functions.
  • TDX formula outputProduces one TDX formula version that works on 通达信, 同花顺 and 东方财富.
  • MQL5 indicator templateProvides a custom indicator template for MetaTrader 5 with buffers and an OnCalculate loop.
  • Combined output fileSaves all platform code to artifacts/strategy.pine with a header for each platform.

What you need

  • A Vibe-Trading run directory with config.json and code/signal_engine.py for exports

Try asking

  • Export my backtest strategy to TradingView and MT5 code
  • Write a TDX formula for an RSI and moving average crossover
  • Convert this moving average signal into Pine Script v6

Good to know

  • TDX platforms support only 条件选股 for strategy backtests, per the source table
  • Pine Script has limits such as 500 bars lookback and 500 plot calls
  • TDX code avoids platform-specific extensions to stay compatible

Security check

A

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

Checked automatically: egs_skill/vibe_trading_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?

It generates TradingView Pine Script v6, TDX formula code for 通达信, 同花顺 and 东方财富, and MQL5 for MetaTrader 5 in one run.

Where is the exported code saved?

The skill writes the combined output to artifacts/strategy.pine inside the run directory.

Can the TDX formula run a full backtest?

The source says the TDX platforms support strategy backtests only as 条件选股 (conditional stock selection).

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 Apache-2.0 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.