by DaviddTech
Build your own AI hedge fund with Claude, Codex, Cursor & OpenClaw. The agent-native skills directory for Trader Dev MCP — write Pine Script, backtest crypto strategies, optimize parameters.
# Add to your Claude Code skills
git clone https://github.com/DaviddTech/ai-trading-agentGuides for using ai agents skills like ai-trading-agent.
ai-trading-agent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by DaviddTech. Build your own AI hedge fund with Claude, Codex, Cursor & OpenClaw. The agent-native skills directory for Trader Dev MCP — write Pine Script, backtest crypto strategies, optimize parameters. It has 104 GitHub stars.
ai-trading-agent's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/DaviddTech/ai-trading-agent" and add it to your Claude Code skills directory (see the Installation section above). ai-trading-agent ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ai-trading-agent against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
You are an AI trading research assistant connected to Trader Dev MCP.
Your job is to help the user build an AI-powered quant research workflow using Pine Script, backtesting, optimisation, and disciplined reporting.
Do not behave like a hype trading bot.
Behave like a careful research assistant working inside an AI hedge fund lab.
You must:
Trader Dev MCP endpoint:
https://mcp.trader.dev/sse
Claude Code:
claude mcp add --transport sse --scope user trader-dev https://mcp.trader.dev/sse
Codex:
codex mcp add trader-dev -- npx -y mcp-remote https://mcp.trader.dev/sse
OpenClaw:
Add https://mcp.trader.dev/sse as a remote SSE MCP server, then read this SKILL.md file.
Current support: crypto pairs.
If the project gets enough demand, future support may include forex, stocks, futures, and additional data sources.
When the user provides Pine Script:
Metrics to report:
When the user wants new strategy research:
When the user wants an optimizer:
mcp__trader-dev__search_strategies when available.When the user wants position optimisation:
Always favour:
Never favour:
Use this format whenever possible:
# Trader Dev Research Report
## 1. Goal
## 2. Strategy or Hypothesis
## 3. Pine Script Changes
## 4. Backtest Matrix
Symbols:
Timeframes:
Assumptions:
## 5. Results
Net profit:
Profit factor:
Max drawdown:
Win rate:
Average trade:
Trades:
## 6. Robustness Analysis
## 7. Weaknesses
## 8. Next Iteration
## 9. Verdict
Reject / Watchlist / Incubate / Candidate / Production candidate
This skill is for research and education only. It is not financial advice. Do not encourage reckless live trading. Backtests are not guarantees of future performance.
The agent-native skills directory for Trader Dev MCP — write Pine Script, backtest crypto strategies, optimize parameters, and run a full quant research desk from one conversation.
Quickstart · Workbook · Skills · Examples · Roadmap · Discord · YouTube
⚠️ Research and education only. AI Trader MCP does not place real trades, send real orders, or guarantee profits. Backtests are not future performance. Crypto trading is risky and leverage can cause catastrophic losses. Read docs/DISCLAIMER.md before doing anything.
https://github.com/user-attachments/assets/fabc1c81-dab0-4ce5-863d-2d5fa633a579
▶ Watch the AI hedge fund desk in action — 60 seconds.
"Just like human traders have TradingView, AI agents need their own quant research desk."
Most AI tools help traders write code. AI Trader MCP helps AI agents run the entire research workflow — generate hypotheses, write Pine Script, backtest, optimize, compare, and report. Built by DaviddTech, backtesting live on YouTube for 5+ years.
🤖 Prefer to hand it all to your AI? Open WORKBOOK.md and paste it into any MCP-capable agent. It's a step-by-step, self-contained install and usage guide written for AI agents to follow top to bottom.
https://github.com/user-attachments/assets/95757099-9a4c-4fea-a618-9b015eec942e
▶ Full install walkthrough — under a minute.
1. Install Trader Dev MCP in your agent (pick one):
# Claude Code
claude mcp add --transport sse --scope user trader-dev https://mcp.trader.dev/sse
# Codex
codex mcp add trader-dev -- npx -y mcp-remote https://mcp.trader.dev/sse
# Cursor / OpenClaw / Cline / Continue / Windsurf / Gemini CLI
Register https://mcp.trader.dev/sse as a remote SSE MCP server.
2. Paste this one-liner to your agent:
Read https://raw.githubusercontent.com/DaviddTech/ai-trading-agent/main/SKILL.md
and help me build an AI hedge fund research desk using Trader Dev MCP.
3. Ship your first backtest:
Backtest a Bollinger Band squeeze breakout on the top 10 Bybit pairs at 1h.
Report profit factor, max drawdown, and stability across symbols.
Reject overfit results.
That's it. Your agent is now a quant.
| Without AI Trader MCP | With AI Trader MCP |
|---|---|
| Open TradingView, hand-code Pine Script, click backtest, copy results into a spreadsheet. | "Backtest this strategy on the top 10 Bybit pairs at 1h." Done in one message. |
| Click-optimize parameters one input at a time. | Parameter sweeps across stop loss, take profit, ATR multiples, regime filters — natural language. |
| Forget which version of a strategy worked last week. | Strategies live in Trader Dev. Fork, version, compare, promote, demote — all from chat. |
| Pay for a quant team. | Spin up a Mathematician, Mean-Reversion Engineer, Strategy Optimizer, and Position Optimizer — for free. |
| Wonder if your backtest is curve-fit. | Built-in robustness discipline: multi-pair, multi-timeframe, drawdown control, honest verdict labels. |
| Use AI to write code. | Use AI to run the whole research desk. |
Not every trader wants to be a quant researcher. If you'd rather skip the research and run trading bots that already work, StrategyFactory.ai is where they live.
| Path | What you do | Where to start |
|---|---|---|
| 🛠 Build it yourself | Use the skills, prompts, and loop roles in this repo. Pine Script + backtests + optimization, all from chat. | Stay here |
| 🚀 Use what already works | Browse the marketplace, pick a bot, plug into your trading stack. | strategyfactory.ai |
→ Browse 400+ live-tested trading bots at StrategyFactory.ai →
Each skill is a focused, agent-readable SKILL.md that turns your AI client into a specialist on the desk.
| Skill | What it does |
|---|---|
| Main SKILL.md | The entrypoint. Routes your agent into the right workflow. Start here. |
| AI Hedge Fund Manager | Coordinates the research desk. Picks specialists. Enforces discipline. |
| Quant Mathematician | Renaissance-style first-principles strategy creation. No retail indicator soup. |
| Mean Reversion Engineer | Engineered mean-reversion systems for crypto. Volatility-aware, regime-filtered. |
| Strategy Optimizer | Searches Trader Dev for existing strategies. Forks. Improves. Compares against baseline. |
| Position Optimizer | Tests leverage, fractional Kelly, vol-targeting, drawdown throttling, bounded recovery. Keeps entries frozen. |
Plus copy-paste workflow prompts in prompts/ and examples/.
One conversation. Fifteen specialists. Forever. Every role is TradingView-native — pure Pine Script and OHLCV, no off-chain data feeds.
Drop any of these into your AI client's /loop command and walk away. Each role fires every 15 minutes, runs one focused research cycle through Trader Dev MCP, and writes a structured report.
# Greenfield strategy creation, every 15 minutes
/loop 15m read loop/01-quant-mathematician.md and execute it
# Risk audits the existing book, every 15 minutes
/loop 15m read loop/08-risk-manager.md and execute it
| Category | Roles |
|---|---|
| 🎯 Coordination | Hedge Fund Manager |
| 🧮 Strategy creation | Quant Mathematician · Mean Reversion Engineer · Trend Following Engineer · Volatility Strategist · Breakout Engineer |
| 🔧 Optimization | Strategy Optimizer · Position Optimizer |
| 🛡 Risk & robustness | Risk Manager · Drawdown Auditor · Overfitting Detector |
| 📐 Structural & pattern | Multi-Timeframe Strategist · Liquidity Sweep Hunter · Pattern Recognition Strategist |
| 🧪 Experimental | Calendar & Lunar Cycle Strategist |
Full guide: loop/README.md.
If your agent speaks MCP, AI Trader MCP works.