Machine learning applies statistical algorithms to financial market data to identify patterns, generate predictions, and optimise trading decisions without being explicitly programmed for each scenario. From simple linear regression to deep neural networks, machine learning models can process vast datasets, detect non-linear relationships, and adapt to changing market conditions — though they also carry significant risks of overfitting and data-snooping bias.
Supervised learning uses labelled historical data to train models that predict outcomes such as direction or volatility. Unsupervised learning discovers hidden patterns without predefined labels — used for regime detection and clustering. Feature engineering transforms raw market data into meaningful inputs such as returns, volatility measures, and sentiment scores. Cross-validation prevents overfitting by testing models on data not used during training. Ensemble methods combine multiple models to improve prediction robustness. Interpretability trade-off: more complex models may perform better but are harder to understand and trust.
Deploy models only after rigorous out-of-sample validation across multiple market regimes. Use model probability outputs as a filter for discretionary or systematic entries. Combine machine learning signals with traditional technical or fundamental analysis for robustness. Enter only when model confidence exceeds a pre-defined threshold calibrated during testing.
Exit when the model's rolling accuracy falls below the threshold established during validation. Halt trading if the model's live performance deviates significantly from backtested expectations. Use model-generated probability shifts to scale out of positions dynamically. Retrain or retire models when the underlying market regime changes detectably.
Model-dependent — from tick-level for high-frequency to daily and weekly for swing strategies
Machine learning in trading is extremely prone to overfitting because financial data is noisy and non-stationary. Start with simple models and only increase complexity when the simple approach is insufficient. The feature engineering and data pipeline stages are far more important than the choice of algorithm. Always maintain a healthy scepticism toward backtest results that seem too good to be true.
Algorithmic trading uses computer programs to execute trades based on predefined rules — from simple moving average crossovers to complex machine learning models. The key advantage is removing emotion, achieving consistent execution speed, and backtesting strategies across decades of data before risking real capital.
Statistical arbitrage (stat arb) exploits temporary mispricings between correlated assets using quantitative models. Pairs trading — the simplest form — goes long the underperformer and short the outperformer when their price ratio deviates beyond historical norms, profiting as the spread reverts to the mean.
Grid trading places buy and sell limit orders at regular price intervals above and below the current market price, creating a 'grid' that profits from range-bound oscillations. Each buy order has a corresponding sell order at a higher grid level, generating profit from each completed round trip. It works best in sideways markets and can be automated easily.
Trend-following systems identify and ride sustained directional moves using rules-based approaches — moving average crossovers, breakout channels (Donchian, Keltner), and momentum filters. The strategy accepts many small losses for occasional outsized winners, relying on fat-tailed distribution of returns in financial markets.