pine-script

Convert Python backtest logic into TradingView Pine Script v6 strategies.

30.4k|4.9k|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/HKUDS/Vibe-Trading --skill pine-script
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pine-script
Source: https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/pine-script
Command: npx skills add https://github.com/HKUDS/Vibe-Trading --skill pine-script

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converting complex Python signal_engine.py backtest logic into Pine Script v6 is error-prone and time-consuming for traders who want to reuse strategies on TradingView, and this skill automates that translation while enforcing Pine-specific rules so the output can be immediately added to charts.

Core Features & Use Cases

  • Two workflows: export from an existing run by reading config.json and signal_engine.py, or write Pine Script directly from a natural-language description.
  • Pine Script v6 template & mapping guide: includes version declaration, strategy template, mapping tables for indicators, signals, and sizing, and reminders for alerts and commission settings.
  • Quality checklist & usage instructions: enforces platform limits, no plot() in local scopes, single-line ternaries, and documents how to paste artifacts/strategy.pine into TradingView, making it perfect for traders who want reliable, backtest-ready scripts quickly.

Quick Start

Convert the Python signal_engine.py strategy into Pine Script v6 using the provided mapping guide and save it as artifacts/strategy.pine for TradingView usage.

Frequently Asked Questions about pine-script

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

FAQPage Schema
How do I convert Python backtest logic into Pine Script?

To convert Python backtest logic into Pine Script, you can use a translation workflow that reads your config.json and signal_engine.py to output a Pine Script v6 strategy template.

Can I generate a TradingView strategy directly from a natural language description?

Yes, you can generate a TradingView strategy directly from a natural language description by mapping your text inputs into Pine Script v6 syntax, including indicators and signal sizing.

Does the converted Pine Script v6 template include commission and initial capital settings?

Yes, the converted Pine Script v6 template includes commission, initial capital, and alert configurations, ensuring the output is immediately ready for TradingView charts.

What Pine Script platform limits are enforced during Python strategy conversion?

During Python strategy conversion, the process enforces Pine Script platform limits by restricting plot() in local scopes, applying single-line ternaries, and validating syntax rules.

Why does my converted TradingView strategy fail on local scope plots?

Your converted TradingView strategy may fail because Pine Script enforces platform limits that restrict using plot() functions within local scopes to prevent execution errors.