ai strategy code reviewer

    1

    Audit AI-generated trading strategies for lookahead bias, repainting, and unrealistic execution logic.

    $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

    ai strategy code reviewer

    Example session with this skill installed

    Review this Pine Script strategy. It uses request.security to get daily data for a 15-minute timeframe crossover. I'm getting 90% win rate and want to check for lookahead bias.

    • Read your context and instructions
    • Compiled the ai strategy code

    Summary

    Verdict: FAIL
    Severity count: Critical: 1, Major: 0, Minor: 1

    Issues Found

    Issue 1

    • Severity: Critical
    • Category: Lookahead
    • Description: request.security is called without barmerge.lookahead_off.
    • Impact: Accesses future daily closes.

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

    About this skill

    The problem

    AI-generated trading strategies often produce impossible backtest results due to lookahead bias and repainting. These scripts frequently lack the safeguards and execution realism required to survive live market conditions without blowing up an account.

    What it does

    • Audits code for lookahead bias and repainting that invalidates backtest results.
    • Identifies state management bugs where position flags fail to reset or update correctly.
    • Verifies position-sizing math to ensure risk calculations and lot sizes are accurate.
    • Checks for unrealistic order execution like zero-slippage fills or same-bar entries/exits.
    • Flags missing safeguards such as drawdown limits, cooldown periods, and input validation.

    Frameworks & tools

    Pine Script (TradingView), Python (backtesting.py, Backtrader, vectorbt, zipline), C# (NinjaScript), and MQL4/MQL5.

    Why this beats prompting it yourself

    Standard LLMs often overlook subtle indexing errors or framework-specific quirks like Pine Script's barmerge behavior. This skill applies a rigid, multi-point audit process specifically designed to catch the "too good to be true" bugs that generic prompts miss.

    Use cases

    • Reviewing a Pine Script strategy before deploying it to a TradingView alert.
    • Auditing a Python backtest for hidden future-data leakage in dataframes.
    • Validating the risk management logic of an MQL5 Expert Advisor.
    • Converting a backtest-only script into a live-ready execution bot.

    Known limitations

    Cannot verify external data quality or broker-side execution latency. Assumes standard framework behavior unless custom libraries are fully provided.

    Cannot verify external data source integrity or broker-side API latency. Requires full source code to detect cross-function state bugs.

    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

    The AI Strategy Code Reviewer identifies 'too good to be true' backtest results caused by lookahead bias, repainting, and unrealistic order execution that standard AI coding assistants often miss.

    This skill is compatible with the most popular trading frameworks, including Pine Script (TradingView), Python (backtesting.py, Backtrader, vectorbt), MQL4/MQL5 (MetaTrader), and NinjaScript (NinjaTrader).

    You will receive the specialized agent skill profile and a comprehensive audit checklist that ensures every review covers risk management, state management, and execution realism.

    While it can audit logic for high-frequency or arbitrage strategies, it cannot account for external variables like broker-specific latency, spread widening, or slippage occurring at the API level.

    Simply upload your strategy code or paste the script into your AI agent's interface; the skill is pre-configured to automatically begin a multi-point audit of the logic.

    Yes, the skill is periodically updated to reflect changes in framework syntax, such as new Pine Script versions or updates to major Python backtesting libraries.

    New in Trading & Investing