← ClaudeAtlas

pine-scriptlisted

Convert Python backtest strategies to TradingView Pine Script v6, or generate Pine Script from natural language descriptions.
JacobHsu/vibe-trading-agent · ★ 0 · Data & Documents · score 61
Install: claude install-skill JacobHsu/vibe-trading-agent
## 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) // ==========================================================