repainting fake signal inspector

    by nowrich

    1

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

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Audit this snippet for lookahead bias: strategy.entry("Long", strategy.long, when=clover > 0) strategy.exit("Exit", "Long", stop=low - 10 * syminfo.mintick)

    Your agent does

    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

    What you get

    Detect impossible entries caused by future bar lookahead logic.Identify repainting indicators that shift signals after bar close.Fix unrealistic fill assumptions in strategy execution settings.Prevent duplicate signal firing through state-based trade guards.

    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.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    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

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions

    Popular in Code Review