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

How to backtest a trading strategy with AI (free, no code)

Describe a trading strategy in plain words and your AI backtests it on 2 years of real 1-minute data: every trade, win rate, R and drawdown. No Pine Script, no Python, free to start.

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 AI (free, no code)

Most traders never backtest. Not because they think it's useless, but because the usual ways are slow or technical: scrolling back through charts and writing trades in a spreadsheet, or learning Pine Script, MQL5 or Python. So strategies get traded live on a hunch, and the real test is paid for with real money.

There is now a third way. You describe the strategy to your AI in plain words, the same way you'd explain it to another trader, and it runs the test on real 1-minute market data. In a few seconds you see every trade, the win rate, the result in R and the drawdown. This guide shows how, step by step, with prompts you can copy.

What a backtest tells you (and what it doesn't)

A backtest applies a fixed rule to past prices: which trades the rule would have taken, and how each one ended. It answers questions like:

  • Does this setup make money at all, or does it only look good on the chart?
  • How often does it win, and how big are the losing streaks?
  • Does it work better in London or New York, on gold or on EUR/USD, with or without a trend filter?

It doesn't tell you what will happen next. A rule that made money in the last 90 days can stop working. What a backtest does is remove the strategies that never worked, and show you what a normal bad run looks like before you live through one.

Three ways to backtest, compared

Manual (chart replay)Code (Pine Script, MQL5, Python)Your AI + TraderWAI
Skill neededPatienceProgrammingDescribing the rule clearly
Time per testHoursHours to daysSeconds
DataWhatever your chart showsDepends on your platform or data source2 years of 1-minute candles
Easy to try variationsNoEdit and re-run"Same, but only above the EMA 50"
CostFreeFree to expensiveFree plan available

The AI doesn't invent the result. On its own, a chat AI has no price history: if you ask ChatGPT or Claude for a backtest without real data, you get a plausible-looking table that isn't based on real prices. TraderWAI is a connector (an MCP server) that gives your AI a real backtest engine: the AI translates your words into a rule, TraderWAI replays it minute by minute, and the AI explains the numbers.

Step 1: connect TraderWAI to your AI

It works with the AI you already use, on the free plans too:

  • Claude: on claude.ai open Settings → Connectors → Add custom connector, paste https://mcp.traderwai.com and click Connect. Full walkthrough: how to backtest with Claude.
  • ChatGPT: open Plugins → Add → Add custom MCP server, URL https://mcp.traderwai.com, authentication OAuth. See can ChatGPT backtest a trading strategy?
  • Grok: how to backtest with Grok, or the ready-made Grok Bot template in Grok Bot for traders.
  • Cursor and other agents: backtest a strategy with Cursor.

You sign in with Google or Microsoft and your TraderWAI account is created at that moment. You don't need a broker account to backtest: the test runs on TraderWAI's data, even at the weekend.

Step 2: describe the strategy

A good description has five parts: market, entry, stop, target and period. Add a time window or a filter if your strategy has one. Here are prompts for six common styles; each one links to a page where the same rule is backtested every day:

Session breakout

"Backtest the London breakout on GBP/USD for the last 90 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."

Live results: London breakout on GBP/USD.

Opening range breakout

"Backtest a 15-minute opening range breakout on NAS100: mark the 9:30–9:45 New York range, buy when an M5 candle closes above its high before 12:00, stop at the range low, target 2R, close at 16:00 New York."

Live results: Nasdaq opening range breakout.

ICT / smart money concepts

"Backtest the ICT Silver Bullet on NAS100: between 10:00 and 11:00 New York time, buy the first retest of a bullish M5 fair value gap, stop below the gap, target 2R."

Live results: ICT Silver Bullet, order block + CHoCH on gold, Judas Swing.

Liquidity sweep

"Backtest on EUR/USD: sell when the price sweeps above yesterday's high and closes back below within 3 M15 candles, stop 2 pips above the wick, target 2R."

Live results: Turtle Soup on EUR/USD.

Indicators

"Backtest on BTC/USD: buy when the H1 RSI(14) crosses back above 30 while the price is above the daily EMA 200, stop 1.5 × ATR, target 2R."

Live results: RSI bounce on Bitcoin, EMA 9/21 cross on Ethereum, Bollinger Bands bounce.

Trend pullback

"Backtest on gold: when the H1 structure is bullish, buy the first touch of the 0.5–0.618 Fibonacci zone of the last M15 impulse, stop below the zone, target 2R."

Live results: Fibonacci golden zone on gold.

If something is missing from your description, the AI asks or tells you which assumption it used. Always read the assumptions: "stop at the Asian low" and "stop 10 pips below the entry" are two different strategies.

What you can test

  • Levels: session highs and lows (Asia, London, New York), the previous day's high, low or close, any custom time range in local market time, swing highs and lows, Fibonacci levels.
  • Entries: candle closes beyond a level, range breakouts, liquidity sweeps, break and retest, the first retest of a fair value gap, order blocks, break of structure (BOS) and change of character (CHoCH), candle patterns, at market or with a limit order.
  • Indicators and filters: SMA, EMA, WMA, RSI, ATR, ADX, Bollinger Bands, highest high and lowest low (Donchian), on any timeframe from M1 to D1; time of day, day of week, and skipping high-impact news.
  • Exits: stop in pips, at a level, beyond the wick, at the zone or by ATR; target in R, in pips or at a level; trailing stop, break-even, partial closes, a closing time, or an exit on a condition such as the opposite crossover.
  • Costs: spread, commission and slippage, so the result is closer to what your broker charges.
  • Markets: forex, gold, silver, oil, indices, 55 US stocks, Bitcoin and Ethereum, with 2 years of 1-minute history.

Not available yet: MACD, VWAP and indicators that only exist inside a custom script.

Step 3: read the result like a professional

You get every trade (date, entry, stop, target, exit, result in R and pips) and a summary. The numbers that matter most:

  • Total R and average R: R is the amount risked per trade. +12R over 40 trades means you made 12 times your risk. Average R tells you how much each trade is worth.
  • Win rate, together with the target: 35% wins can be profitable with a 2R target and losing with a 1R target. Never read it alone.
  • Maximum drawdown and worst losing streak: if the test had a run of 8 losses in a row, assume you'll live through one. Could you keep trading the rule after that?
  • Number of trades: with fewer than 20–30 trades, luck dominates. Extend the period or test the rule on a second market.

Then ask for a sensitivity check: "Run it again with nearby parameters." TraderWAI repeats the test with a slightly different target and structure settings. If the profit disappears when you move the target from 2R to 2.5R, the rule is probably fitted to the past.

Five mistakes that make a backtest lie

  1. Tuning until it looks good. Every change you keep because it improved the past makes the past look better and the future no more certain. Test a variation, then check it on a different period.
  2. Ignoring costs. On fast strategies the spread can turn a winner into a loser. Ask: "Same test with a 1.5 pip spread and 0.2 pips of slippage."
  3. Testing one direction in one regime. A buy-only rule in a strong uptrend will look brilliant. Look at the sell version too: every breakout and sweep page on TraderWAI links to its mirror.
  4. Too short a period. Two weeks can be a single market mood. On the free plan start with 14 days to explore, then test the winners over months.
  5. Rules you can't follow live. "Buy the bottom of the pullback" isn't a rule. If the AI needs to guess what you meant, you'll also improvise when trading.

Step 4: from backtest to live, with the same rule

When a version holds up, ask: "Create a conditional order with this rule on EUR/USD, risking 0.5% per trade." Conditional orders use the same engine as backtests: TraderWAI checks the rule every minute on closed candles, even with your AI closed. When it triggers, it sizes the trade from your risk, applies your risk limits and, unless you turned on auto-execution, the order waits for your approval before it reaches your broker.

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).

The strategy backtests page is free for everyone: 28 popular strategies recalculated every day, with every trade.

Common questions

Is backtesting with AI accurate? The calculation is done by TraderWAI's engine on real 1-minute candles, not by the AI. If the stop and the target are both hit within the same minute, the stop is counted (worst case). Data can differ slightly from your broker's, especially spreads.

Do I need to know how to code? No. If you want to compare with code, see backtesting without Pine Script or MQL5.

Can I backtest a strategy I saw on YouTube or TradingView? Yes, if you can write down its rules: entry, stop, target and filters. Paste the description and ask the AI to point out anything ambiguous before testing.

Which AI is best for backtesting? The engine is the same in all of them. Claude is good at long, structured analysis of the results, ChatGPT is the most common, and Grok Bot can run your checks on a schedule.

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 backtest a trading strategy with Claude (real 1-minute data)
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