pine-script

Convert Python backtest strategies into Pine Script v6, TDX, and MQL5 code.

6.1k|1.2k|Updated Jun 9, 2022
One-click install
npx skills add https://github.com/charliedream1/ai_quant_trade --skill pine-script-charliedream1
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pine-script
Source: https://github.com/charliedream1/ai_quant_trade/tree/main/a_%E5%85%A8%E7%BD%91%E4%BC%98%E7%A7%80%E8%B5%84%E6%BA%90/10_%E5%A4%A7%E6%A8%A1%E5%9E%8B/07_skill%E5%8C%85/vibe_trading_skills/pine-script
Command: npx skills add https://github.com/charliedream1/ai_quant_trade --skill pine-script-charliedream1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool exports a Python-defined backtest trading strategy into platform-specific indicator/strategy code for major platforms (TradingView, TDX, MT5).

Core Features & Use Cases

  • Platform translation: generate Pine Script v6 for TradingView, TDX/TDX Formula for China equities, and MQL5 for MT5, all from one model.
  • Unified output: outputs a single artifacts/strategy.pine file containing multi-platform code blocks.
  • Use Case: Imagine a strategy developed in Python that you want deployed across multiple charting environments with minimal manual rewriting.

Quick Start

Load the pine-script skill, read your config.json and code/signal_engine.py, and export the combined strategy to artifacts/strategy.pine.

Frequently Asked Questions about pine-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Python backtest strategy to Pine Script for TradingView?▼

To convert a Python backtest strategy to Pine Script, you need a Python-based signal engine and a config.json. This skill translates that logic into Pine Script v6, outputting a combined artifacts/strategy.pine file for TradingView deployment.

Can I export one trading strategy to MQL5, TDX, and Pine Script at the same time?▼

Yes, you can export one trading strategy to MQL5, TDX, and Pine Script simultaneously. The tool generates a single artifacts/strategy.pine file containing properly structured code blocks with correct syntax for all three platforms.

What do I need to generate MQL5 and TDX indicator code from my model?▼

To generate MQL5 and TDX indicator code, you need a Python-based strategy with a signal engine and a config.json. The skill reads these inputs to produce platform-specific indicator and strategy code blocks.

What is the best way to deploy a Python strategy across MT5 and TradingView?▼

The best way to deploy a Python strategy across MT5 and TradingView is using a unified export tool. It translates your Python logic into platform-specific code, minimizing manual rewriting for MT5 and TradingView environments.

Does this strategy export tool support Pine Script v6 syntax?▼

Yes, this strategy export tool supports Pine Script v6 syntax. It produces a single artifacts/strategy.pine file with correctly structured platform sections and proper syntax for Pine Script v6, TDX, and MQL5.

Why does my exported strategy file contain TDX and MQL5 code inside a .pine file?▼

Your exported strategy file contains TDX and MQL5 code inside a .pine file because the tool outputs a single unified artifacts/strategy.pine file. This file holds multi-platform code blocks together for convenient deployment.