pine-script

Export Vibe-Trading backtest strategies into Pine Script, TDX formulas, and MQL5 code.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ebrahim-sani/trading-automation --skill pine-script-ebrahim-sani
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pine-script
Source: https://github.com/ebrahim-sani/trading-automation/tree/main/vibe-trading/agent/src/skills/pine-script
Command: npx skills add https://github.com/ebrahim-sani/trading-automation --skill pine-script-ebrahim-sani

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Traders and developers need a fast way to turn a single Vibe‑Trading backtest strategy into executable code for all major charting and trading platforms without rewriting it manually.

Core Features & Use Cases

  • Multi‑platform export: Generates Pine Script for TradingView, TDX formulas for Chinese equity software, and MQL5 for MetaTrader 5 in a single file.
  • Automatic mapping: Uses predefined Python‑to‑language conversion tables to translate indicators, signals, and position sizing.
  • Ready‑to‑use output: Saves the combined code to artifacts/strategy.pine with clear sections and usage instructions for each platform.

Quick Start

Use the pine-script skill to generate code for TradingView, TDX, and MT5 from my Vibe‑Trading strategy.

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 trading strategy to Pine Script for TradingView?

This skill exports Python backtest strategies to Pine Script by applying predefined Python-to-language conversion tables, mapping indicators and signals into TradingView syntax within a combined strategy file.

Can I export the same trading strategy to both MetaTrader 5 and Chinese equity platforms?

Yes, it generates MQL5 code for MetaTrader 5 and TDX formulas for Chinese equity platforms simultaneously from a single Vibe-Trading backtest strategy into one combined file.

What is the best way to translate Python indicators into MQL5 for MT5?

The best way is using predefined mapping tables that automatically translate Python indicators, signals, and position sizing directly into MetaTrader 5 MQL5 syntax without manual rewriting.

Does this strategy export tool support TDX formula generation alongside MQL5?

Yes, it supports TDX formula generation alongside MQL5, producing TDX formulas for Chinese equity software, MQL5 for MT5, and Pine Script for TradingView within one combined file.

Do I need to manually rewrite position sizing logic when exporting to Pine Script?

No, the automatic mapping feature translates indicators, signals, and position sizing from Python to the target platform's syntax automatically, eliminating manual rewriting.

Why does the exported strategy file contain code for multiple trading platforms?

The file contains multi-platform code to provide ready-to-use output, organizing TradingView, TDX, and MT5 code with clear sections and usage instructions for each platform.