✦ Agent Skill

Backtest trading strategies and remember what failedv2026.11.28

Have an AI agent run a bounded strategy-research loop: propose candidates, backtest with costs, check on a holdout, and keep failed attempts in memory.

Author CWYZLevel Advanced
4.0
Free

Use when the user wants an AI agent to try a few simple quant strategies (momentum, mean reversion, trend, breakout and more) on a stock or ETF, rank them by cost-aware backtests, check the pick once on a holdout slice the search never saw, and keep failed attempts in memory for next time. Based on the open-source AgentQuant (MIT): a CLI that runs a bounded research loop and falls back to grid search without an LLM key. It only suggests, never trades, and is not investment advice.

Updated Nov 28, 2026

Backtest trading strategies and remember what failed
Images and videos

Skill name

agentquant

Good for

Works with

Claude CodeCodexAny agent that reads SKILL.md

Access

Free after sign-in

Related tutorials and cases

Project

Advanced: Reverse-engineer a Polymarket bot with AI

A developer used AI to analyze trades from many Polymarket bots and took one apart (about $624,000 profit in four months by public data): it buys both sides in pairs for under $1 and keeps a leftover bet on direction. Breaks down why the method of rebuilding the trades, writing a hypothesis, backtesting part by part, re-testing on real order books and paper trading first works, with a six-step SOP, a trade-analysis prompt for your AI agent, and safety rules on wallets, limits and regional restrictions.

Project

No more late nights watching stocks and crypto, build a team of AI agents that trades for you

A trading blogger built an AI trading desk with Grok Bot. A chief of staff leads five bots: scout, chart analyst, strategist, risk, and trader. Only risk can say no, and only the trader can place orders. Money goes live one step at a time. Covers the three habits behind it, a six-step SOP you can follow, and a desk rules template. This is not investment advice.

Tutorial

Advanced: Build a 3D Game Asset Pipeline With Your AI Agent

Advanced tutorial: connect your AI agent to Blender via MCP, lock project rules in ASSET_RULES.md, enforce multi-angle visual checks and bpy audits, and export clean GLB or FBX assets for Godot, Unity, Unreal Engine, or Three.js. Includes 4 copy-paste prompts.

Tutorial

Let your AI agent make your product launch video

Beginner tutorial: give your AI agent a link to your website or app store page, answer three multiple-choice questions about character style, language and resolution, review a draft and say what to fix, then render. You get a launch film of about 40 seconds, an editable web version and a line-by-line fact sheet. Includes two prompts you can copy.

Similar skills

All skills

What you get

  • A ranked strategy card with cost-aware metrics and verdicts
  • A one-time check on holdout data the search never saw
  • Research memory that keeps failures and replays by date

Good for

  • Traders testing ideas who distrust best-of-many backtests
  • Developers studying how well agents run experiments

Not for

  • Anyone wanting automated trading or stock picks
  • Fundamentals, options or intraday-data work

About this skill

Give an AI agent a ticker and it runs AgentQuant on your machine. It proposes a handful of candidate strategies, backtests them after fees and slippage, looks at what went wrong, then tests the chosen one once on the final stretch of data the search never touched. You get a results card with the current market regime, a ranking, each candidate's Sharpe ratio and max drawdown, and a watch or rejected verdict.

What sets it apart is that it remembers failures too. Every combination it tries is stored in local memory, consulted on the next round, and can be viewed as of any past date. The author says openly that it is still unproven whether memory-guided search beats random tries. By default it only suggests and never places orders.

What you need

  • Python 3.10 or newer and git, on Windows, macOS or Linux.
  • Daily prices come from yfinance by default. Internet access is needed, no key.
  • An LLM key is optional: Gemini (default), OpenAI or Claude lets a model propose strategies. Without one it falls back to grid search.
  • Optional extras: FRED macro data, vectorbt backtests and regime models, installed only when needed.
  • Open source, MIT licensed.

FAQ

Does it work without an API key?

Yes. The demo runs offline on synthetic prices, and real backtests only need internet for price data. With no key it uses grid search instead of model proposals and says so in the log.

Will it trade for me?

No. The default mode only suggests, there is no order placement, and nothing it prints is investment advice.

A great backtest means I can use it, right?

Not on its own. Check the holdout result and the bootstrap Sharpe lower bound; a negative bound means the edge is shaky. Past backtests do not predict future returns.

Do the demo numbers mean anything?

No. The demo uses synthetic prices and only confirms the install works.

This is an outline. The full SKILL.md comes with the install: sign in, then copy the prompt or download.

REVIEWS

4.0

0 reviews

Rate this skill

No reviews yet.

Used this skill? Be the first to rate it.

Done with this one? Mark it to track your path.Sign in
Save it for laterSign in
Questions about this piece?Ask AI about this