pine-script

Featured

Convert Python backtest strategies to TradingView Pine Script v6, or generate Pine Script from natural language descriptions.

Data & Documents 8,661 stars 1768 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Overview This skill enables two workflows: 1. **Export**: convert an existing `signal_engine.py` (from a completed backtest run) into a TradingView Pine Script v6 strategy 2. **Generate**: write Pine Script v6 directly from a natural-language strategy description Output file: `artifacts/strategy.pine` (inside the run directory, or a new run directory). ## Workflow: Export from Backtest 1. `load_skill("pine-script")` — read this conversion guide 2. `read_file("config.json")` — understand instruments, dates, parameters 3. `read_file("code/signal_engine.py")` — understand the Python strategy logic 4. **Translate** the strategy to Pine Script v6 using the mapping table below 5. `write_file("artifacts/strategy.pine")` — save the output 6. Return the Pine Script in a code block with usage instructions ## Workflow: Generate from Description 1. `load_skill("pine-script")` — read this guide 2. Write Pine Script v6 directly based on the user's description 3. `write_file("artifacts/strategy.pine")` — save the output 4. Return the code with usage instructions ## Pine Script v6 Strategy Template ```pinescript // This strategy was generated by Vibe-Trading // Paste into TradingView Pine Editor → Add to Chart //@version=6 strategy("Strategy Name", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1, initial_capital=1000000) // ==========================================================...

Details

Author
HKUDS
Repository
HKUDS/Vibe-Trading
Created
1 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category