Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    PineScript v6 Pro: Agentic Skills Suite

    0

    All-in-one Pine Script v6 specialist: synthesizes production indicators & strategies, audits repainting, debugs runtime logic, backtests execution, and auto-integrates documentation MCP.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    PineScript v6 Pro: Agentic Skills Suite

    PineScript v6 Pro: Agentic Skills Suite

    Example session with this skill installed

    I have a strategy using request.security that I think is repainting. Can you audit it for v6 compliance and fix any lookahead issues?

    • Read your context and instructions
    • Compiled the pinescript v6 pro

    I have audited your script for repainting issues and Pine Script v6 compliance. I found that your request.security calls were missing explicit lookahead settings and your array loops were not cached, which can cause performance hits in v6.

    Pine Script v6 Audit & Fix

    //@version=6
    strategy("Trend Follower Pro", overlay=true, margin_long=100, margin_short=100)
    //@strategy_alert_message {{strategy.order.alert_message}}
    
    // --- Inputs ---
    group_signal = "Signal Settings"
    lookback = input.int(14, "Lookback Period", group=group_signal, tooltip="Period for RSI calculation")
    
    // --- Logic ---
    // FIXED: Explicitly added lookahead=barmerge.lookahead_off and referenced confirmed bar [1]
    htf_close = request.security(syminfo.tickerid, "D", close[1], lookahead=barmerge.lookahead_off)
    
    rsi_val = ta.rsi(close, lookback)
    long_cond = ta.crossover(rsi_val, 30) and close > htf_close
    
    // FIXED: Plot moved to global scope from local 'if' block
    plot_color = long_cond ? color.green : color.red
    plot(htf_close, color=plot_color, title="Daily Reference")
    
    if long_cond
        strategy.entry("Long", strategy.long)
    
    // FIXED: Cached array size for loop safety
    var float[] prices = array.new_float(0)
    array.push(prices, close)
    sz = array.size(prices)
    if sz > 0
        for i = 0 to sz - 1
            // Perform calculation
            continue
    

    Next steps

    1. Copy the fixed code into the TradingView Pine Editor and hit Add to Chart.
    2. If you see performance warnings, I can route this to the pine-optimizer sub-skill.
    3. Use the pine-backtester to verify the expectancy of these non-repainting signals.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    🚀 The Definitive Pine Script v6 Development Suite

    PineScript v6 Pro is an autonomous, multi-agent skill bundle engineered for quantitative traders, developers, and trading firms building on TradingView. It bridges high-level trading ideas and battle-tested Pine Script v6 code with zero repainting, rock-solid compilation standards, and institutional-grade backtesting realism.

    Whether building from scratch, extracting strategies from YouTube video transcripts, or auditing complex multi-timeframe indicators, this suite automatically routes your prompt to the exact specialized sub-skill needed.


    🎯 Core Capabilities & Sub-Skills

    • 💻 Pine Developer: Generates production-grade indicators and strategies using UDT-first (User-Defined Types) architecture, input groups, custom alerts, and clean chart aesthetics.
    • 🛡️ Pine Auditor & Reviewer: Proactively catches repainting, lookahead leakage (barmerge.lookahead_off), real-time unconfirmed bar references, and TradingView execution limits (plots, drawings, security calls).
    • 🐛 Pine Debugger: Injects non-intrusive runtime debug tables and labels to isolate state bugs, NA values, and historical execution errors.
    • 📈 Quantitative Backtester: Models realistic fill assumptions, slippage, commission tiers, ATR-based risk management, and risk-adjusted metrics (Sharpe, Profit Factor, Max Drawdown).
    • ⚡ Pine Optimizer: Enhances script execution speed, caches array loops (March 2025/2026 breaking change), and reduces redundant request.security() overhead.
    • 📝 Pine Publisher: Prepares scripts for TradingView public/invite-only community publication with strict House Rules compliance and sanitized secrets.
    • 🎥 Video Strategy Extractor: Parses user-pasted YouTube trading video transcripts, notes, and subtitles into formal rule specifications and runnable code.
    • 🔄 Trade Data Converter: Conversational parser transforming TradersPost webhook logs and trade CSV exports into native Pine Script array playback declarations.
    • 🎓 Beginner Helper: Breaks down complex mathematical and trading logic into simple terms, line-by-line explanations, and everyday analogies.

    ⚡ Built-In v6 Compiler Contract & Best Practices

    • Compiler Perfection: Enforces line-continuation rules (no split ternary operators) and correct indentation.
    • Proper Alert Placement: Enforces //@strategy_alert_message placed immediately after strategy() declarations.
    • Drawing Persistence: Uses xloc.bar_time to prevent drawing loss past the 5,000-bar limit.
    • Cross-Platform MCP Integration: Detects and auto-configures the official pinescript-docs MCP server (uvx pinescript-mcp) with user approval across Antigravity, Claude Code, Cursor, Windsurf, and VS Code.

    💡 Ideal For

    • Algorithmic traders automating custom strategies.
    • Developers needing instant, error-free TradingView v6 code.
    • Traders migrating legacy v2–v5 indicators to modern Pine Script v6.
    • Creators preparing scripts for TradingView publication.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scanned

    Verified clean 8 days ago

    • Passed all security checks, Safe to install

    Requires

    Pinescript MCP
    uv (Python tool runner)

    Listed8 days ago

    What's inside

    Frequently Asked Questions