Skip to content

Pine Script & TDX Strategy Exporter

Converts a backtested Vibe-Trading strategy into TradingView, TDX, and MT5 trading code.

Stars
37,433
Licence
MIT
Files
1 file

What it does

This skill teaches an AI agent to take a trading strategy that Vibe-Trading has backtested (or one described in plain language) and rewrite it as indicator or strategy code for several trading platforms: TradingView (Pine Script v6), Chinese platforms such as 通达信, 同花顺 and 东方财富 (TDX formula language), and MetaTrader 5 (MQL5). All outputs are saved together in one file, with instructions on where to paste each one. It does not run trades or connect to any platform itself; it only writes text files.

Great for

  • Quant or trading-strategy developers who want to move a Python backtest onto TradingView or MT5
  • Traders in China who need the strategy in TDX formula format
  • Users who want a starting template for indicator code they will review and test themselves

Skip it if

  • Anyone expecting generated code to be profitable or safe to trade live: the output is a translation of logic, not validated, and backtest results may not carry over to live markets
  • Users without the ability to read code and check it, since translated formulas can contain errors or differ subtly from the original Python logic
  • Non-trading uses, as the skill is specific to financial indicators and strategies

Try asking

  • “Export my backtested moving-average crossover strategy to TradingView, TDX and MT5”
  • “Turn this description of an RSI mean-reversion rule into Pine Script and MQL5 code”
  • “Read my config.json and signal_engine.py and produce platform code for all supported exchanges”
Step-by-step guide: how to use Pine Script & TDX Strategy ExporterInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    pine-script.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip pine-script.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip pine-script.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Always backtest and paper-trade the generated code on each platform before relying on it, because the translation may differ from the original Python logic.
  • Give the agent a clear description of entry, exit, and stop-loss rules so the generated indicators match your intent.
  • Review the position-sizing and commission settings in the generated Pine Script header, since they are defaults that may not match your broker.

What's inside

  • SKILL.md

Redistributed unmodified from HKUDS/Vibe-Trading under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.