TraderWAI
PlatformsAIsDocsBlogPricing
Sign inStart free
All posts
GuidesNovember 27, 2026· 4 min read

How to backtest a trading strategy with Claude (real 1-minute data)

Connect TraderWAI to Claude and backtest any trading strategy by describing it: every trade, win rate, R and drawdown on 2 years of 1-minute data. Works on Claude's free plan, in Claude Desktop and in Claude Code.

Gold chart marked up by the AIYour AI analyses, draws on the chart and trades on your broker. Free, no card.Connect your AI freeNo broker yet? Try it free with a simulated account: your AI trades with virtual money and real prices. How to backtest a trading strategy with Claude (real 1-minute data)

Claude is very good at the thinking part of trading: turning a vague idea into precise rules, spotting what's ambiguous, comparing results and writing them up clearly. What it doesn't have on its own is market data. Ask it for a backtest without data and the best it can do is write code for you to run somewhere else; the worst is a table of trades that looks real and isn't.

TraderWAI fills that gap. It's a connector (an MCP server) you add to Claude once. After that, Claude sends the rule you describe to TraderWAI's backtest engine, which replays it on real 1-minute candles, and Claude explains the result: every trade, win rate, result in R, drawdown and losing streaks.

Step 1: add TraderWAI to Claude

Claude on the web or in the desktop app (every plan, Free included):

  1. Open Settings → Connectors → Add custom connector.
  2. Name it TraderWAI and paste https://mcp.traderwai.com.
  3. Click Connect and sign in with Google or Microsoft. Your TraderWAI account is created at that moment.

Claude Code (in your terminal):

claude mcp add --transport http traderwai https://mcp.traderwai.com

Then type /mcp, choose traderwai and Authenticate.

You don't need a broker account to backtest. Everything runs on TraderWAI's data, even at the weekend.

Step 2: let Claude sharpen the rule first

Most bad backtests come from vague rules. Claude is good at catching that, so use it before you test:

"I want to trade the London breakout on GBP/USD. Before running anything, ask me whatever you need to turn it into exact rules: entry, stop, target, time window, and what happens if both the stop and the target are near."

Claude will ask, for example, whether you enter on the first touch of the Asian high or on a candle close, and which timeframe that candle is. Once the rule is clear:

"Now backtest it with TraderWAI for the last 14 days: buy when an M15 candle closes above the Asian session high between 07:00 and 10:00 UTC, stop at the Asian low, target 2R, close at 16:00 UTC."

The result arrives in seconds: every trade with entry, stop, target, exit and result, plus the summary.

Step 3: compare variations in one conversation

Claude keeps the context of the whole conversation, so iterating is natural:

  • "Same rule, but only if the price is above the H4 EMA 50."
  • "Now the sell version: close below the Asian low."
  • "Run it with nearby parameters to check it isn't fitted to the past."
  • "Add a 1.2 pip spread and 0.2 pips of slippage."
  • "Put the four versions in one table: trades, win rate, total R, max drawdown, worst losing streak. Which one would you discard, and why?"

That last prompt is where Claude shines: a clear comparison with the reasons, not just numbers. Ask it to be strict. A version with 9 trades and +6R is not better than one with 40 trades and +8R.

Step 4: test it on more than one market

A rule that only works on one symbol in one period is fragile. Ask Claude to repeat the test elsewhere:

"Run the same London breakout on EUR/USD and on gold, same period. Does the result hold?"

Or test several strategies together as a portfolio: TraderWAI combines them on the same account and returns the joint equity curve, the month-by-month result and how correlated the strategies are.

Ideas to try (with daily results)

These strategies are backtested every day on TraderWAI, with every trade visible. Open one, copy its prompt and ask Claude to change something:

  • ICT Silver Bullet on the Nasdaq 100
  • 15-minute opening range breakout
  • Judas Swing on gold at the London open
  • Order block + CHoCH on gold
  • Turtle Soup on EUR/USD
  • Larry Connors' RSI(2) on the S&P 500

All 28 are on the strategy backtests page.

Step 5: from backtest to a live rule

When a version holds up, ask Claude: "Create a conditional order with this rule on my demo account, risking 0.5% per trade." Conditional orders use the same engine as backtests: TraderWAI checks the rule every minute, even with Claude closed. When it fires, it sizes the trade from your risk, applies your limits and, unless you turned on auto-execution, waits for your approval before anything reaches your broker. For this step you need a broker account, for example Claude + cTrader or Claude + MetaTrader 5.

How much history each plan includes

  • Free: 5 backtests a day over the last 14 days.
  • Plus: 20 backtests a day over the last 6 months.
  • Trader: 50 backtests a day over the last year.
  • Max: unlimited backtests with all the history (2 years of 1-minute data).

Common questions

Does Claude calculate the backtest? No. TraderWAI's engine does the calculation on real data; Claude writes the rule and explains the result. That's why it doesn't make up trades.

Which markets can I test? Forex, gold, silver, oil, indices, 55 US stocks, Bitcoin and Ethereum.

Can Claude write the strategy in Pine Script too? Yes, Claude writes good code. But you don't need it to test the idea: see backtesting without Pine Script or MQL5.

Is it the same in ChatGPT or Grok? The engine is the same. See the general guide: how to backtest a trading strategy with AI.

Trading CFDs and forex involves a high risk of losing money. TraderWAI is a technology tool: it does not provide investment advice, AI analysis is not a recommendation and past backtest results don't guarantee future results. You decide every order.

Try it with your own AI

Connect Claude or ChatGPT to your broker in a few minutes. Free plan, no card.

Start free

Questions or ideas? Talk with us in our Telegram community

Trading leveraged products carries a high risk of loss. TraderWAI is a technology tool: it is not investment advice and it is not a broker.

Keep reading

Guides
Backtest a strategy without Pine Script or MQL5: just describe it
Guides
How to connect Claude Code to MetaTrader 5 (MT5)
TraderWAI

Connect any AI to your broker, with you in control.

Product
  • Platforms
  • AIs
  • Pricing
  • Docs
  • Status
  • Sign in
Resources
  • Connection guides
  • Broker guides
  • Best MCP servers for trading
  • Strategy backtests
  • Markets today
  • FAQ
  • Blog
  • News
  • Telegram community: questions & ideas
Company
  • Investors
  • Contact
  • Brokers and prop firms
Legal
  • Privacy
  • Terms

Trading leveraged products such as CFDs, forex and futures carries a high risk of losing money. TraderWAI is a technology tool: it does not provide investment advice and does not manage funds. The AI's analyses and proposals are not recommendations; you decide every order.

© 2026 TraderWAI · FLEXIN AGILE LTD