AI Backtesting: Which Tools Really Test Your Strategy

Which AI can backtest a trading strategy: the tools with a price engine run your rules, chat assistants invent results, and what none of them test.

An AI can backtest your strategy when the product behind the chat box owns historical price data and an engine to run your rules against it. A general assistant with neither runs nothing at all.

ChartLabs is a manual backtesting platform. You replay the chart bar by bar and place each trade yourself, on cleaned data with costs counted, which tests your own execution, the part an AI backtest leaves out.

Can an AI backtest my trading strategy?

Yes, when "AI" is the front end of a testing engine. No, when it is a chat window with nothing behind it.

In the products that do it, the AI reads your sentence and turns it into rules, an ordinary engine runs those rules over historical data, and the AI reads the results back to you. The language model writes and explains. The engine, working over data, does the testing.

Which AI tools actually run a backtest, and which only talk about one?

Tools with their own engine and price data run a backtest. A chat assistant on its own only talks about one, unless you hand it data or run the code it writes somewhere else.

SetupWhat runs the testWhat you get back
A plain-English front end on a testing engineThe product's own engine, over its own historical dataTrades, metrics and a summary the AI writes for you
ChatGPT writing backtest codeThe platform you run the code on, such as TradingView or MetaTraderCode you still have to check
ChatGPT with price data you uploadChatGPT itself, on the file you give itNumbers you have to verify by hand

Some products in this space also run strategies live, which is a different job from testing one. A bot places orders. A backtest asks whether the rules had an edge before anything trades them.

Can I use ChatGPT to backtest a trading strategy?

Only with data you supply, and the result still needs checking.

A chat assistant has no historical price data of its own and no engine to fill trades against it. Ask it for a backtest without giving it either, and the numbers it returns can sound plausible and still be made up.

DailyForex answers the question with a qualified yes: "It can backtest a strategy in some circumstances, though the trader must upload data for the backtest." The condition says the same thing: the model has no price data of its own. DailyForex then recommends the other route anyway: "I recommend that instead, traders use ChatGPT to generate code for a backtest to run on platforms such as TradingView or MetaTrader."

The code route has its own failure mode, and the pages that teach it say so. DailyForex: "AI is far from 100% accurate, and there is a reasonable possibility of errors in the code, which can lead to incorrect conclusions", and "Do not blindly trust the results without verification." QuantInsti shows the Python that ChatGPT produced for a mean reversion test, then says of it: "It's not a fully functional or optimised backtesting script. Backtesting requires expertise in financial data analysis and programming."

What does "describe your strategy in plain English" actually test?

It tests the engine's reading of your sentence, so look at the trades before the summary.

Open a handful of individual trades before you read any total. Check that the entries sit where you would have taken them, and that none fall in hours you would never trade.

What does not survive the translation is judgement. Rules like waiting for a level to hold, or taking an entry only if structure agrees, are the ones traders struggle to write down, and a test that quietly drops them is testing a different strategy from yours. That is the argument in our own manual vs automated backtesting article, and it applies to the plain-English route exactly as it applies to code.

What can an AI backtest not test?

Your execution. The engine follows the rules perfectly every time, which is the one thing you will not do.

Our own article puts it plainly: "Automated does not survive contact with you."

Costs are the second gap, and it is a fixable one. A test that leaves out commission, spread and slippage makes returns look better than they were. That matches what we see in backtesting accuracy: thin-edge strategies are the ones whose edge disappears once commission, spread and slippage are counted. In ChartLabs you set commission and slippage per symbol, and the Trading Costs card shows Total Costs, Cost Drag and Avg Cost / Trade, so you can see how much of the result the costs took.

Data is the third. A test is only as good as the prices it runs on, and an untouched feed carries spikes nobody could have traded. We source from Dukascopy, tick-level where it is available, and clean it to remove anomalies before building 1-minute candles.

Does running 10 or 15 AI variations find an edge or a curve fit?

The run cannot tell you. What settles it is testing the winner on data you did not pick it on.

An engine can run many versions of a strategy in the time it takes to test one by hand, and hand you the one with the best numbers. That best version is also the one most likely to be fitted to the stretch of history it was picked on.

Speed does nothing about curve fitting. The answer is to retest the winner on data it has not seen, and For Traders and DailyForex both say so in their own terms.

For Traders, a prop firm reviewing twelve tools, puts it directly: "Backtests are trivially easy to overfit, and vendor performance claims are rarely out-of-sample". It refused vendor numbers on the same grounds, saying "Every backtest curve a vendor shows you is cherry-picked by definition", and crediting only results "we could reproduce ourselves on out-of-sample data". Its rule for an AI-written strategy: "Any AI-generated strategy needs walk-forward testing on unseen data before it touches simulated capital".

DailyForex gives the practical version: "Avoid over-optimization. If a backtest is successful, rerun it on a different period to ensure it has similar results", and more bluntly, "Essentially, never rely on a single backtest!"

Where ChartLabs fits

ChartLabs is manual, so the engine question does not arise. The curve-fitting question does, in its hand-testing form: run a strategy over the same stretch of chart until it looks good and you have fitted yourself to that stretch.

Sessions come in two types for that reason, training and verification, and the analytics split by session type so you can read them separately. The changelog describes that split as a way "to see how you really do on data you haven't traded before".

The Sessions panel of a strategy in ChartLabs, with a Training tab and a Verification tab side by side and a button to start a new training session, on the demo account

How many trades should an AI backtest include?

Enough that a few lucky trades cannot carry the result, and then more on data the test never saw.

The more trades in the backtest, the steadier the read. For Traders sets a floor for the step after it, forward testing on a demo account, where it asks for "30+ trades minimum" before any capital is involved.

An engine builds a large sample in minutes, and by hand the same sample takes hours. The engine buys you the sample, and the hours buy you the screen time. In ChartLabs, Closed Trades sits in Quick Stats beside Win Rate and Profit Factor, so the sample size is always in view next to the numbers it produced.

Where does manual, bar-by-bar testing still belong?

In the two jobs the AI route leaves open: checking that the engine traded what you meant, and practising the trade yourself.

The first is recommended by the AI pages themselves. DailyForex, on validating ChatGPT's code: "I recommend comparing the trades in the backtest with manual spot checks, i.e., manually test sample periods of the strategy and compare the results to the backtest results, and ensure the two sets of results are identical." For Traders ends its own workflow the same way: "Manual sanity-check every rule against price action you understand."

The second is practice. An engine takes every signal the same way, and the hesitation, the skipped trade and the early exit only show up when you place the trades yourself.

ChartLabs does not run coded strategies, so both jobs happen by hand there. You step through historical candles one at a time, place the trade by hand with its stop and target, and every trade is logged with the chart state you had when you took it. Tag the trades as you go and the analytics filter by tag, so a spot check of one period sits next to the rest. Commission and slippage are set per symbol, so the P&L carries what the trade actually cost. Paper trading in live conditions is the step after that.

A backtest tells you how a strategy behaved on data. Markets stay uncertain, and no test changes that.

One plan at $20 a month or $200 a year, with a 7-day free trial and no credit card required to start. Start the free trial.

Tags

ai-backtestingchatgpt-tradingbacktesting-softwaremanual-backtestingstrategy-testing