- Home
- Skills
- Trading & Investing
- ai strategy code reviewer
ai strategy code reviewer
Audit AI-generated trading strategies for lookahead bias, repainting, and unrealistic execution logic.
$5
Works with the AI Agents you already use
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.securityis called withoutbarmerge.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.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
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