Reinforcement learning meets technical analysis: combining moving average rules for optimal alpha
A common issue faced by investors who use technical analysis is the reconciliation of conflicting trading signals, especially when these signals are highly correlated, such as those generated by multiple moving averages. This study expands on a model-free algorithm inspired by reinforcement learning to address the challenge of reconciling trading signals while taking transaction costs into account. The algorithm is trained to optimize alpha, a widely used measure of risk-adjusted return. Principal component analysis is utilized to reduce the dimensionality of a modified version of moving average signals, which are then used to define the input state. A policy network, represented by a feedforward neural network, is trained using historical data to convert states into trading actions. An evaluation network calculates and optimizes alpha by adjusting the policy network’s parameters. The algorithm utilizes a zero-arbitrage portfolio to accurately isolate alpha from the underlying asset’s return. By combining 199 simple moving average signals in a systematic manner, the algorithm was able to maximize the [Formula: see text] asset pricing model alpha using a high-volatility United States stock portfolio as a risky asset. The algorithm demonstrates superior performance compared to both individual moving average signals and existing combination algorithms.
Authors
- Ana Milena Padilla Ospina (ORCID: https://orcid.org/0000-0003-3859-8741)
- Javier Humberto Ospina-Holguín (ORCID: https://orcid.org/0000-0002-0103-3280)
Institutions
- Universidad del Valle (CO)
Publication Details
- Journal
- Cogent Economics & Finance
- Published
- 2025-05-25
- DOI
- https://doi.org/10.1080/23322039.2025.2490818
- Citations
- 2
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 4.21
Funders
- Universidad del Valle