repainting fake signal inspector

    1

    Audit Pine Script strategies for repainting, lookahead bias, and unrealistic backtest results.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    repainting fake signal inspector

    Example session with this skill installed

    Audit this snippet for lookahead bias

    strategy.entry("Long", strategy.long, when=clover > 0)
    strategy.exit("Exit", "Long", stop=low - 10 * syminfo.mintick)
    
    • Read your context and instructions
    • Compiled the repainting fake signal

    Finding #1: Lookahead Exit Bias
    Severity: high
    Line: strategy.exit(...)
    Issue: Using 'low' of the current bar to set a stop loss on the same bar.
    Why it is unrealistic: The strategy assumes it knows the bar's low before it occurs.
    Suggested fix: stop=low[1] - 10 * syminfo.mintick

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

    About this skill

    The problem

    TradingView backtests often show impossible returns due to hidden coding errors. Pine Script strategies frequently suffer from repainting and lookahead bias, where the script "sees" future prices to trigger perfect entries that can never happen in live trading.

    What it does

    • Identifies repainting risks in request.security calls and indicator calculations.
    • Detects lookahead bias where stops or targets use current bar data before it exists.
    • Audits strategy() parameters for unrealistic slippage, commission, and fill assumptions.
    • Flags duplicate signal logic that artificially inflates trade counts or equity curves.
    • Provides concrete Pine Script code fixes for every high-severity finding.

    Frameworks & tools

    TradingView Pine Script (v4 and v5).

    Why this beats prompting it yourself

    Generic LLMs often miss subtle execution nuances like process_orders_on_close interactions or barstate persistence. This skill uses a specialized audit workflow to trace the order lifecycle bar-by-bar, catching logic traps that pass standard syntax checks.

    Use cases

    • Verifying a purchased or open-source Pine Script strategy before risking capital.
    • Debugging "too good to be true" backtest results that disappear in forward testing.
    • Hardening entry and exit logic to ensure signals confirm only on closed bars.
    • Adding realistic execution constraints like slippage and commissions to existing scripts.

    Known limitations

    Cannot execute the code to see visual repainting; relies entirely on static analysis of the provided script logic.

    Static analysis only. Cannot detect repainting caused by external data feed delays not present in the code logic.

    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 3 months ago

    Permissions

    No special permissions declared or detected

    Listed3 months ago

    What's inside

    Frequently Asked Questions

    This skill performs a deep static analysis of your Pine Script code to identify logical errors like lookahead bias and repainting that cause 'too good to be true' backtest results. It provides a detailed report of vulnerabilities along with specific code snippets to fix them.

    The skill is compatible with any AI agent or platform that supports file uploads or code input, and it is specifically optimized for Pine Script versions 4 and 5.

    Unlike general AI, this skill uses a specialized audit workflow focused on the order execution lifecycle, catching subtle 'future-leaks' in request.security calls and barstate logic that standard models often overlook.

    No installation is required; simply provide your script's source code to your AI agent, and the inspector will immediately begin the multi-step audit process.

    You receive the full logic for the repainting audit workflow, which includes detection for lookahead bias, slippage audit protocols, and a library of Pine Script hardening solutions.

    The inspector uses static code analysis to find logic traps, but it cannot run the script or view live charts; therefore, it may not catch repainting caused by external data streams or dynamic inputs not defined in the code.

    New in Trading & Investing