Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 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.

    Requires uvx for MCP features. Cannot bypass TradingView hardware limits like the 64-drawing object cap or 40-security-call limit. Requires manual copy-paste into TradingView Pine Editor.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by 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 scan

    Security scan passed 1 month ago

    Requires

    Pinescript MCP
    uv (Python tool runner)

    Permissions

    Terminal / Shell
    Listed1 month ago

    What's inside

    Frequently Asked Questions

    Unlike generic AI models that often mix up older versions, this skill is hard-coded to enforce Pine Script v6 standards, specifically addressing the new indentation rules, scope restrictions, and anti-repainting compliance required for 2025/2026.

    This skill is optimized for IDEs that support MCP, including Cursor, VS Code, Windsurf, and Claude Code, allowing it to perform authoritative, offline documentation lookups.

    While the agent can optimize code for performance, it cannot override TradingView's hard-coded platform limits, such as the 64-drawing object cap or the 40-call limit for `request.security()`.

    The skill includes a 'Publication Prep' mode that audits your script against the official TradingView House Rules to ensure it won't be rejected by community moderators for common formatting or logic errors.

    The package provides the orchestrator skill, specialized sub-agent routing logic, and the configuration details needed to connect the `pinescript-docs` MCP server via `uvx`.

    The 'Anti-Repainting Guard' audits your code for lookahead leaks and forces safe `request.security()` patterns, ensuring your backtest results aren't inflated by data that wouldn't be available in real-time.

    New in Trading & Investing