10 ChatGPT prompts that get a real backtest
These prompts work in ChatGPT with the Trader.AI plugin installed. Each one starts with "Use Trader.AI to" so ChatGPT calls the plugin instead of answering from memory, and each is followed by what you should get back, so you know whether it worked.
Pick a symbol from EURUSD, GBPUSD, AUDUSD, XAUUSD, XAGUSD, NAS100, SP500, USOIL, BTCUSD or ETHUSD and a timeframe from 1 minute to 1 week. History runs from January 2025; a single run covers up to 60 days on 1-minute and up to a year on 5-minute bars, and the whole history on longer timeframes.
1. Trend following
Use Trader.AI to write a trend-following strategy for XAUUSD on the 1-hour chart and backtest it over the last 12 months.
You get: either two or three variations to choose from, or a first version built straight away (in our run, a 12/48 EMA crossover with a 2× ATR stop). ChatGPT shows you the rules and returns the headline numbers plus a report link.
2. Mean reversion
Use Trader.AI to backtest this on EURUSD, 15-minute chart: buy when RSI(14) is below 30 and price is above the 200 EMA, exit when RSI crosses 50, stop 1.5× ATR(14).
You get: the exact rules echoed back, then the result. Mean reversion usually shows a high win rate and a small average win; check that the average loss isn't several times the average win.
3. Breakout with a session filter
Use Trader.AI to backtest a London-open breakout on GBPUSD, 15-minute chart: buy a close above the 07:00–08:00 London range, sell a close below it, stop at the other side of the range, one trade a day, close everything at 16:00 London.
You get: Trader.AI confirms how it interprets the session hours before running. Expect fewer trades than the first two prompts; look at the breakdown by exit reason to see how many ended at the time stop.
4. Your own idea, incomplete
Use Trader.AI to turn this into a testable strategy: buy BTCUSD when it breaks yesterday's high. Ask me anything you need.
You get: questions about the stop, the target, position size and what to do with an open trade at day end. Answer them and it runs. This is the fastest way to find out what your idea was missing.
5. Change one thing
Move the stop to 1× ATR instead of a fixed 50 pips and backtest again.
You get: version 2 of the same strategy, run on the same dates, and a side-by-side comparison with version 1. Change one thing per run or you won't know what caused the difference.
6. Where did it lose?
Where did that backtest lose money? Break it down by exit reason and list the ten worst trades.
You get: a table of net P&L by exit (stop loss, take profit, time stop, exit rule) and the worst trades with dates and prices. If one or two trades account for most of the loss, that's a sizing or news-day problem, not a rule problem.
7. Different period, same rules
Backtest the same version on the first half of 2026 only and compare it with the full run.
You get: the same rules on a different window. A strategy that only works on the one period you first tested is fitted to the past.
8. Different market, same rules
Backtest the same strategy on XAGUSD and on AUDUSD with the same dates.
You get: two more runs. A rule that works on three uncorrelated markets is more interesting than one that works on one.
9. Parameter search (Pro)
Run a parameter search on the fast and slow EMA lengths, fast 10–30 and slow 40–100, and show me the best five by profit factor.
You get: a ranked table of combinations. Treat a single sharp peak surrounded by losing settings with suspicion; a robust setting has neighbours that also work.
10. Export it (Pro)
Export version 3 as an MT5 Expert Advisor.
You get: a download link to a zip with the EA source and install instructions. It's built from exactly the rules you tested. Run it on a demo account before real money.
Two prompts that won't work, by design
Buy 1 lot of gold now.
Trader.AI doesn't place trades or connect to brokers. ChatGPT will tell you so.
Give me a strategy that makes 10% a month.
No strategy can guarantee that, and Trader.AI won't pretend otherwise. It will offer a starter strategy to test instead.
Frequently Asked Questions
Why start every prompt with "Use Trader.AI to"?
So ChatGPT calls the plugin. Without it, ChatGPT may answer from memory and give you an estimate instead of a backtest.
How many backtests do I get?
Free includes 20 a month; Pro includes 200, plus parameter search and MT5 export.
Can I use these prompts in Claude or Gemini?
Yes, word for word. Trader.AI works as a connector in Claude, Gemini, Grok and other MCP clients; only the setup differs.
Related Resources