VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
ACADEMY / Markets and trading sessions

AI futures trading: what it can and cannot do, and how to check it

AI is useful in futures trading as a writer and tester of rules, not as a price forecaster. Every rule it produces is a candidate that must be checked on data it never saw, with the rules frozen, before any money is at risk.

By · Published · updated · Editorial policy

Contents
  1. What can AI actually do in futures trading?
  2. Can AI predict futures prices?
  3. AI as idea generator vs AI as predictor: what is the difference?
  4. How does automated strategy search with AI work?
  5. Will an AI-built futures strategy overfit?
  6. How do you validate an AI strategy before trading it?
  7. Is AI futures trading profitable?
  8. Frequently asked questions
  9. References

What can AI actually do in futures trading?

AI futures trading works best when the AI writes and tests trading rules, not when it predicts prices. An AI can draft a rule, vary it into thousands of candidates and backtest each one with costs. Every output is still a candidate that must be checked on data it never saw before any money is at risk.

In this article, AI means a large language model: a program that reads and writes text, such as the assistant you can chat with. It has three possible jobs in futures trading. It can write a rule in plain words and vary it. It can run or read a search that backtests many variants with fees and slippage. And it can be asked to call tomorrow's direction. Think of it as a tireless junior analyst. It can draft a hundred rule ideas before lunch, and each draft can be tested on old bars. Its guess about tomorrow's close is worth no more than anyone else's guess, and no test can grade that guess until the day is over.

The rules it drafts are the ordinary ones: a moving-average cross, a breakout from a channel, a return to the average after a stretched move. The five types of futures algo trading strategies cover what an AI will usually propose, with the settings each type needs. AI does not invent a new kind of edge. It writes the known kinds faster and in more variations than a person would, which is useful only if the testing that follows is honest.

AI has three possible jobs in futures trading: writing and varying rules and backtesting them with costs can both be tested on past data, while forecasting tomorrow's price cannot be tested before money is at risk Only two jobs can be checked Three jobs you can give AI Write rules and vary Backtest with costs Forecast tomorrow Testable Testable Untestable Only rules can be tested early. So: treat forecasts as bets.
AI has three possible jobs in futures trading. Two of them produce something you can check on past data; the third cannot be checked until the money is already at risk.

Can AI predict futures prices?

No model, AI or otherwise, has shown reliable point forecasts of futures prices, and the reason is the data, not the model. A point forecast is a statement of where the price will be at a set time, for example "ES closes 30 points higher tomorrow". Most of the move from one bar to the next is noise: the sum of many orders placed for reasons the model cannot see. A slightly bent coin is a useful picture. Over thousands of flips you can measure the bend. You still cannot call the next flip.

What a model with enough freedom can do is fit the past. Overfitting is tuning a rule so closely to one stretch of history that it describes the noise in that stretch rather than a pattern that repeats. A curve that hugs every wiggle up to today looks like a forecast. When new bars arrive, it drifts away from the real path, because the wiggles it learned were random. Sullivan, Timmermann and White (1999) tested thousands of technical rules on one price history and showed that the best of them looks good largely because so many were tried; White (2000) gives the statistical test that corrects for this effect.

What AI can honestly find is weaker than a forecast: a rule that behaved a certain way on past bars, after costs. "Behaved this way in the past" and "will behave this way next month" are different claims. The first can be written down and checked. The second cannot. Many futures signals sold online are direction calls dressed as the second claim. The useful question to ask about any of them is which data they were checked on and whether the rules were frozen before that check.

Illustration of overfitting: before a today marker a fitted curve follows every wiggle of the actual price, after the marker the fitted curve drifts upward while the actual price falls The fit breaks on new data Illustration: price and fitted rule Fit to the past New data Today Fitted Actual Fitting noise is not forecasting. So: judge rules on unseen bars.
A rule that fits past noise looks like a forecast until new bars arrive. The drift to the right of the marker is what overfitting looks like in practice.

AI as idea generator vs AI as predictor: what is the difference?

An idea generator proposes rules you can test and reject; a predictor hands you a direction you must trust. The difference is not how clever the AI is. It is what comes out of it, how you can check it, and when you learn it was wrong.

AI as idea generatorAI as predictor
What it gives youA testable rule with exact entry and exit conditionsA direction: long, short or flat
How you check itBacktest with costs, then out-of-sample dataOnly by trading it live
When you learn it was wrongBefore trading, on past barsAfter the losses are in the account
Typical failureOverfitting to historyA confident wrong forecast
When each AI job is caught: a rule from the idea generator is tested and rejected on past bars before any money is in, with no loss, while a direction from the predictor has no test on past bars and is only caught live, after a loss Only one can be rejected early AI as idea generator vs predictor Past bars Live money Generator Rejected no loss Predictor no test Loss A rule can fail before you pay. So: run every output on old bars.
Generator and predictor differ in what they output, how you test them and how they fail. Only the generator's output can be rejected before money is at risk.

For futures trading beginners this distinction matters most, because a confident AI answer sounds the same whether it is a testable rule or an untestable call. The test is simple: ask whether the output can be run on old bars with costs. A rule can. A direction cannot. We put a language model through this exercise ourselves in a test of whether Claude AI is any good at creating trading strategies; the drafts were ordinary rules, and the backtest, not the AI, decided which ones survived.

How does automated strategy search with AI work?

Automated strategy search turns one idea into a rule family, backtests every member with the same costs and execution settings, ranks them and keeps a few for validation. A rule family is one rule with some settings left open, such as a breakout rule whose lookback can be any value from 10 to 60 bars. A parameter range is the list of values each open setting may take, and the family is every combination of those values. The AI's job sits at the start and at the reading of results, not at the choice of winner.

  1. Idea in plain words. The AI's first job. "Go long when the trend measure is rising and price breaks the recent high, exit when the trend measure turns down" is enough to start.
  2. Rule family and parameter ranges. The AI writes the idea as exact entry and exit conditions and gives each number a range. In AlphaPrime (Valynox) this is the work of strategy generation, where the rules and indicators, parameter ranges, entry and exit conditions and search constraints are fixed before a single evaluation runs.
  3. Backtest every variant with fees, slippage and next-bar execution. Next-bar execution is a setting that fills an order on the bar after the signal, because a rule that decides on the close cannot trade at that same close. To write slippage as a dollar figure you need the tick value of the contract you test; the free futures contract calculator shows tick size, tick value and point value and turns one tick of slippage into dollars per contract. How long this step takes depends on the processor or graphics card, the data length and the research settings.
  4. Rank by return against drawdown. The AI's second job: read the ranking and describe what the strong and weak candidates have in common, so the next idea is better informed.
  5. Validate the kept few. A person decides which gates apply and what passing means; the section on validation below covers them.
  6. Export source code to the trading platform where the strategy will run.

When an AI operates AlphaPrime, it works with your own Claude personal subscription and needs no API key. The AI never picks the winner by feel. It writes the idea, reads the ranking and proposes the next idea, and a person decides what passes after validation.

Six steps from idea to candidate: AI writes the idea and the rule family, the engine backtests every variant, AI reads the ranking, a person decides after validation, and the engine exports source code AI drafts, you decide Six steps from idea to candidate 1 2 3 4 5 6 AI AI Engine AI You Engine Idea Rule family Backtest Rank Validate Export AI never picks the winner. So: a person decides after tests.
The order of steps from an idea to a validated candidate. The AI writes the idea and reads the results; a person makes the decision after validation.

Will an AI-built futures strategy overfit?

Yes, an AI-built strategy overfits by default, because any search that keeps the best of many variants flatters the one it keeps. Picture a room of a thousand people each flipping a coin ten times. Someone gets nine heads. That person did not learn to flip coins. Bailey, Borwein, López de Prado and Zhu (2014) show the same effect in backtests: the more variants tried on one history, the higher the best in-sample result rises even when no variant has an edge, and their 2017 paper puts a probability on the best one being overfit.

The run below shows what a kept candidate looks like. It tested ES daily bars from 2019-01-02 to 2025-06-30, long and short, one contract, with $20 commission and $25 slippage per trade. The rule was an ADX rule, a trend-strength measure, used as the only entry and exit, with no stop, no target and no filter. It is a stand-in built from a standard indicator, not an AI-written strategy, so it shows the mechanics of a search rather than the subject itself. The candidate shown is the one the search kept out of about a thousand it tried, chosen for its return against its drawdown.

Source: AlphaPrime product engine (CPU), run 2026-10-31. ES daily bars, 2019-01-02 to 2025-06-30, long and short, 1 contract, $20 commission and $25 slippage per trade.

NumberResult
Net profit (closed trades)$99,702.5
Max drawdown$60,102.5
Trades43
Win rate53.49%
Profit factor1.643
Average trade$2,318.66
Time in market88.68%

Read the table as a record, not an expectation. Picking the kept candidate after the fact flatters it: among about a thousand variants, this one ranked best on this history, and part of its $99,702.5 net profit is the selection bonus that every best-of-many result carries. The 43 trades are few; an average trade of $2,318.66 built from 43 trades can move a long way if a handful of trades change. A time in market of 88.68% means the rule held a position almost all the time, so its path is tied to the path ES took over these years. None of this says the ADX rule earned that money for a trader, or that anyone can expect it. It says the search's past looked like this.

Look at the shape of the equity line, the depth of the drawdown below it, and where the marked out-of-sample stretch begins. The bars after the marker were not used to pick this candidate, so compare their slope with the part before it.
Look at the shape of the equity line, the depth of the drawdown below it, and where the marked out-of-sample stretch begins. The bars after the marker were not used to pick this candidate, so compare their slope with the part before it. ES · daily · 2019-01-02 to 2025-06-30 · CPU engine backtest
Illustration of selection bias: a spread of candidate results from worse to better, the kept candidate at the far right edge, and an arrow showing that on new data the same rule tends to fall back toward the middle of the spread The best of many falls back Each dot is one candidate rule Kept On new data Worse Better The top rank includes luck. So: expect a drop on new data.
Picking the best of many variants after the fact inflates its result. On new data, the kept rule tends to fall back toward the middle of the spread.

How do you validate an AI strategy before trading it?

Validate with a rule written before you look, run the checks in a fixed order, and stop at the first failure instead of tuning until the strategy passes. Each check is a gate. A gate you adjust after seeing the result is not a gate; it is another round of tuning, and the data behind it stops being unseen.

  1. Out-of-sample block, rules frozen. Out-of-sample data is the part of the history that no step of the search touched. Write the pass rule first, for example: the net average trade stays positive and keeps at least a set share of its in-sample level. Then run the candidate once, unchanged.
  2. Walk-forward windows. Walk-forward analysis is a test that tunes settings on one window, runs them unchanged on the window that follows, moves forward and repeats, then joins the untouched segments into one result. It produces more out-of-sample trades from the same history, which matters when a single block holds few trades, as 43 trades over six years does.
  3. Costs doubled. Rerun with twice the slippage. A rule that only works with cheap fills was depending on execution, not on a pattern.
  4. Neighbouring settings. Run the settings next to the chosen ones. A rule that works at a 14-bar length but not at 12 or 16 learned the noise around one value.
  5. Final untouched period, tested once. Keep the most recent block out of every run above. Test the survivor on it one time, read the result against the pre-written rule, and accept or reject.

Keep every setting the same across all five gates: the same sessions, the same costs, the same execution. For ES this includes whether the bars cover the day session only or the session that runs close to 24 hours; how futures sessions that run almost 24 hours affect a backtest explains that choice. Because the order of the gates and the habit of stopping at the first failure matter more than any single check, AlphaPrime runs its checks in this spirit as strategy validation: walk-forward analysis and the other validation steps run in a fixed order with thresholds you set before the search starts, and it stops the later checks when a strategy fails an earlier one. The cost-doubling and neighbouring-settings reruns above are tests you can set up yourself with the same backtest settings.

Five validation gates in a fixed order: unseen block with rules frozen, walk-forward windows, costs doubled, nearby settings, and a final period tested once; passing leads to the next gate, failing stops the strategy Stop at the first failure Five gates, in a fixed order Pass: next gate Fail: stop 1 2 3 4 5 Unseen block, frozen Walk-forward windows Costs doubled Nearby settings Final period, once
Validation is an ordered set of gates. Each gate can stop the strategy, and the last one is passed through exactly once.

Is AI futures trading profitable?

No tool makes futures trading profitable by itself, and AI is no exception. Three numbers decide the outcome: the net average trade after costs, the number of out-of-sample trades behind it, and whether the rule survived every gate unchanged. AI only shortens the time it takes to reach those three numbers. The free win rate and expectancy calculator gives you the first of them from win rate, average win and average loss.

The one formula worth keeping is: net average trade = gross average trade − round-trip cost. Here the gross average trade is the average profit per trade before fees and slippage, and the round-trip cost is what one entry plus one exit costs you in commission, fees and slippage. If the net average trade is small next to the round-trip cost, a modest rise in slippage removes it.

Hypothetical example

Suppose an AI-drafted rule shows a gross average trade of $90 on a micro index future, and the round-trip cost is $45. The net average trade is $45. If that figure rests on 40 out-of-sample trades, a few changed trades could push it to zero. If it rests on 400 out-of-sample trades and holds up with slippage doubled, it is evidence worth carrying to the final untouched period. Same rule, same $45; the trade count decides how much the number means.

What a backtest result isWhat it is not
NatureA record of one rule on past barsA promise about future bars
CostsNet of the costs you enteredNet of the costs you will actually pay
SelectionThe best of the candidates triedA typical candidate
UseAn input to a validation decisionA reason to trade
A backtest result is a record, not a promise: on the left, what it is, the backtest number on past bars; on the right, what it is not, because in this illustration the same height splits into a cost gap, a selection bonus and an unknown rest that only a test on unseen bars can show A record, not a promise Illustration: what separates the two It is: a record Not: a promise Backtest Cost gap Selection unknown The record sits above reality. So: test it on bars it never saw.
A backtest result and a forecast are different things. The left column is what the ES table above is; the right column is what it is not.

The next step is concrete. Take the one AI-drafted candidate you like most, write its pass rule for each of the five gates on paper before you run anything, and run the first gate once with the rules frozen. Then count the out-of-sample trades, compute the net average trade after doubled slippage, and compare both with the numbers you wrote down. Whatever the result, you will know more about that rule than any forecast could tell you.

Frequently asked questions

Can AI predict futures price movements?

No model has shown reliable point forecasts of futures prices, because most bar-to-bar movement is noise that no input can explain in advance. What an AI can do is write a trading rule and show how that rule behaved on past bars after costs. That is a record of the past, not a forecast, and it only means something once the rule has been checked on data the search never touched.

Does AI futures trading make money?

No tool decides that on its own. The outcome depends on the net average trade after commission and slippage, on how many out-of-sample trades stand behind it, and on whether the rule passed every validation gate unchanged. AI shortens the time to produce and test candidates; it does not change what those three numbers have to show.

How can I tell if an AI strategy is overfit?

Run it unchanged on data it never saw and compare the slope of the equity curve before and after the split. A steep, smooth in-sample climb followed by a flat or falling out-of-sample stretch is the clearest sign. Two more checks help: settings next to the chosen ones should behave alike, and the result should survive with slippage doubled. A candidate kept as the best of many is flattered by that selection, so expect some drop and judge it against a rule written in advance.

Do I need to program to use AI for futures trading?

You need to describe the idea in plain words and read a backtest report; the AI can write the exact entry and exit conditions and set the parameter ranges. What you cannot hand over is the decision. Writing the pass rules before the run, keeping a final block of data untouched, and stopping at the first failed check are the parts a person has to own.

References

  • Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5), 458–471.
  • Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2017). The Probability of Backtest Overfitting. Journal of Computational Finance, 20(4), 39–69.
  • Sullivan, R., Timmermann, A., & White, H. (1999). Data-Snooping, Technical Trading Rule Performance, and the Bootstrap. The Journal of Finance, 54(5), 1647–1691.
  • White, H. (2000). A Reality Check for Data Snooping. Econometrica, 68(5), 1097–1126.