TL;DR
This paper introduces a novel approach to developing AI trading strategies by evolving deep neural networks within a simulated, heterogeneous financial market. These evolved "ab initio" strategies, trained solely on simulated data, demonstrate consistent profitability when backtested on real-world foreign exchange data, suggesting a promising alternative to traditional data-driven methods.
What Problem Does This Paper Address?
The paper tackles the challenge of creating effective automated trading strategies for complex, adaptive financial markets. Traditional approaches often rely on historical data to train models, which can be prone to overfitting and may not generalize well to changing market conditions. The authors propose an "ab initio" approach, aiming to develop strategies from a zero-knowledge baseline by simulating the underlying market dynamics and evolutionary pressures that shape real-world trading agents. This method seeks to create robust strategies that can adapt to diverse market environments without explicit reliance on past price data.
Methods
The core of the methodology involves an agent-based model (ABM) of a financial market. This ABM features a frequent batch auction (FBA) for price discovery and a population of heterogeneous agents, including several "static" agent types with predefined strategies and "evolvable" agents represented by deep neural networks (DNNs). These DNNs take market state as input and output trading orders.
The key innovation lies in the evolutionary process:
- Simulation: DNN agents compete within the ABM for a set number of generations.
- Fitness Evaluation: Agent fitness is determined by their total profit within the simulation.
- Evolutionary Pressure: Tournament selection is applied, favoring high-fitness agents.
- Mutation: Surviving agents' parameters are mutated to create new generations of DNNs.
After evolution, high-performing DNNs are converted into trading algorithms. A crucial step here is "marginalization," where the model approximates missing real-world orderbook data by using the simulated orderbook data generated by the ABM. This allows the evolved strategies to be applied to real market data.
Datasets
- Simulated Data: Generated by the agent-based model (ABM) throughout the evolutionary process. This simulated data includes orderbooks and price time series.
- Real Data: Foreign exchange (FX) spot rate data for EUR/USD and GBP/USD, sampled at a 10-second resolution, covering January 2015 to July 2019. This data was split into validation (2010-2015) and testing (2016-2019) sets.
Key Insights and Ideas
- Evolutionary Advantage: Deep neural networks, when subjected to evolutionary pressure within a simulated market, rapidly outperform static, rule-based trading agents. This suggests that learning through competition and adaptation is a powerful mechanism for strategy development.
- Emergent Superdiffusion: The evolutionary process in the ABM leads to the emergence of anomalous superdiffusion in asset price time series, a phenomenon also observed in real financial markets. This hints that endogenous evolutionary dynamics might be a significant driver of such market behavior.
- "Ab Initio" Viability: The research demonstrates that trading strategies can be successfully developed ab initio (from scratch) using simulation and evolution, without direct exposure to historical market data during training. This is a significant departure from traditional machine learning approaches in finance.
- Marginalization as a Bridge: The "marginalization" technique effectively bridges the gap between simulated and real-world data by approximating missing orderbook information, enabling the application of evolved strategies to live market data.
Key Results
- Evolved neural network agents quickly became the dominant trading species, achieving significantly higher wealth than static agents after approximately 10 generations.
- The Mean Squared Deviation (MSD) exponent of asset prices in the simulation stabilized around 1.8 after about 10 generations, indicating anomalous superdiffusion.
- "Elite" evolved trading algorithms (top 5 performers on validation data) demonstrated consistent profitability when backtested on real FX spot rate data, even though they had never seen this data during their evolution.
- The probability of a profitable trading episode for elite algorithms on test data was high (e.g., 0.9634 in one simulation), with a positive expected profit per episode.
Limitations and Future Work
- Backtesting vs. Live Trading: The authors acknowledge that the "elite" strategies were only backtested and not yet deployed in live trading. The true test of their efficacy would be their performance with real capital.
- Model Simplicity: The ABM and DNN architectures are described as proofs-of-concept. Future work could involve more sophisticated agent behaviors, recurrent neural network architectures for DNNs, and more advanced order types in the matching engine to better mirror real markets.
- Parameter Tuning: The paper suggests further analysis and tuning of the free parameters within the ABM and evolutionary mechanism, potentially exploring adaptive parameter selection.
- Selection Heuristics: The method for selecting high-performing individuals for backtesting (based on MSD exponent and log profit) is heuristic. More robust selection mechanisms could be developed.
- Risk Management: While basic risk management routines were implemented, they are noted as simple and could be enhanced to better align with professional algorithmic trading software.
Summary updated