Blog · Analysis
AI in trading: what machine learning does well, and where it quietly fails
AI trading tools promise prediction. The evidence says their real strengths are elsewhere — and that the biggest risk is a model that learned the noise in your data.
Search interest in AI trading tools has exploded, and so have the promises. Some of it is real. But the published research is clear on one point: the most dangerous thing a machine-learning model can do in finance is look brilliant in a backtest.
Where machine learning genuinely helps
- Reading at scale. Language models can read every corporate announcement, filing and headline and surface the ones that matter. Structured news and corporate announcement APIs are the natural input.
- Classifying regimes. Is the session trending, rotating or range-bound? Classification is far more robust than point prediction.
- Detecting anomalies. Spotting bad ticks, gaps and outliers in data before they reach a strategy.
- Explaining complex indicators. Turning a market profile or an order-flow imbalance into a plain-language read of the session.
That last use is where AI trading tools are most practical today. The partner MirraCharts suite, for example, pairs AI Market Profile and AI Order Flow indicators with a guidance panel that describes the session in words — see the NinjaTrader indicators. The value is interpretation, not prophecy.
Where it quietly fails: overfitting
A flexible model given enough attempts will find patterns in pure noise. The more parameters you tune, the better the backtest looks — and the worse the live result tends to be.
This is not a theoretical worry. Researchers have shown that trying many strategy variations on the same history makes a high backtested Sharpe ratio almost meaningless without correcting for the number of trials, and that a large share of published return “factors” fail stricter statistical hurdles.
A checklist before you trust any AI model
- Hold out time, not rows. Train on the past, test on a later period you never looked at.
- Walk forward. Retrain and retest across several consecutive windows.
- Count your trials. Every variation you tried is a lottery ticket; correct for them.
- Hunt for leakage. Any feature computed with future information — including unadjusted corporate actions — invalidates the result.
- Demand enough trades. The arithmetic in our backtesting guide applies to models too.
- Start with clean data. A model trained on snapshot data learns the gaps; see why free data costs more.
What AI can do for each kind of trader
| Trader | Useful AI today | Be sceptical of |
|---|---|---|
| Discretionary intraday | Plain-language reads of market profile and order flow; regime labels | “Buy now” signals with no stated reasoning |
| Options trader | Summaries of OI buildup and IV shifts across strikes | Precise target prices for expiry |
| Positional investor | Summaries of results, filings and corporate actions | Price forecasts months ahead |
| Quant / developer | Feature discovery, anomaly detection, code assistance | Any model validated on shuffled rather than time-split data |
What trustworthy AI output looks like
Whether you build a model or buy a tool, good AI output in trading shares four traits. It shows its inputs — which data, which session, which timeframe. It explains rather than commands, so you can disagree with it. It is timestamped, because a read of the market goes stale in minutes. And it admits uncertainty: a tool that is never unsure is not measuring anything real.
The data an AI model actually needs
- Tick-accurate history so features like volume at price and order-flow imbalance mean what they say.
- Consistent adjustment across every resolution, or the model learns that bonus issues are crashes.
- Point-in-time context — index membership, lot sizes and expiries as they were, not as they are.
- Text with timestamps — announcements and news aligned to the tick they arrived, for any language-model work.
Those four are exactly what a recorded archive provides and a scraped one does not. The Pix API suite exposes realtime and historical ticks, Greeks, corporate data and announcements from the same source, which keeps features and labels in step.
- AI is strongest at reading, classifying, monitoring and explaining.
- Point prediction of prices is where most AI trading claims fail out of sample.
- Overfitting grows with every parameter and every trial; correct for both.
- Clean, adjusted, tick-accurate data is the precondition for any useful model.
Research referenced: White, H. (2000), “A Reality Check for Data Snooping”, Econometrica. Bailey, D., Borwein, J., López de Prado, M. and Zhu, Q. (2014), “Pseudo-Mathematics and Financial Charlatanism”, Notices of the AMS. Harvey, C., Liu, Y. and Zhu, H. (2016), “… and the Cross-Section of Expected Returns”, Review of Financial Studies.
Questions traders ask
Can AI predict stock prices?
Not reliably at the level most marketing implies. Prices are noisy and non-stationary, so models that predict well in a backtest usually degrade live. AI is more dependable at classification, summarisation and monitoring tasks.
What is overfitting in a trading model?
A model that has learned the random noise of its training data instead of a repeatable pattern. It looks excellent in the backtest and fails on new data.
Where is AI genuinely useful for traders?
Reading and summarising news and filings, classifying market regimes, detecting anomalies in data, and turning complex indicators into plain-language guidance a trader can act on.
Test it on your own symbols
Five days of full realtime and historical access, on your platform or through the API. No card, no auto-charge.
Start your 5-day free trial