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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Reinforcement learning meets technical analysis: combining moving average rules for optimal alpha

Ana Milena Padilla Ospina, Javier Humberto Ospina-Holguín
2 citations
Cogent Economics & Finance
Stock Market Forecasting Methods
4.21
article

Reinforcement learning meets technical analysis: combining moving average rules for optimal alpha

Ana Milena Padilla Ospina, Javier Humberto Ospina-Holguín
article en
2 citations

Abstract

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.

Cogent Economics & FinanceVol. 13(1)
Universidad del Valle (CO)
Universidad del Valle
Openalex Percentile: Top 6%
Stock Market Forecasting Methods
4.21
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.