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.
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-scriptRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/pine-script ~/.gemini/antigravity-cli/skills/pine-scriptAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
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.
