AI-Powered Energy Algorithmic Trading: Integrating Hidden Markov Models with Neural Networks

Tiago Monteiro
7/29/2024
1 citation
q-fin.PMcs.LGq-fin.GN

Official code: tiagomonteiro0715/AI-Powered-Energy-Algorithmic-Trading-Integrating-Hidden-Markov-Models-with-Neural-Networks (29 stars, Python, last commit 2024-08-13).

Abstract

In quantitative finance, machine learning methods are essential for alpha generation. This study introduces a new approach that combines Hidden Markov Models (HMM) and neural networks, integrated with Black-Litterman portfolio optimization.

Show full abstract

During the COVID period (2019-2022), this dual-model approach achieved a 83% return with a Sharpe ratio of 0.77. It incorporates two risk models to enhance risk management, showing efficiency during volatile periods. The methodology was implemented on the QuantConnect platform, which was chosen for its robust framework and experimental reproducibility. The system, which predicts future price movements, includes a three-year warm-up to ensure proper algorithm function. It targets highly liquid, large-cap energy stocks to ensure stable and predictable performance while also considering broker payments. The dual-model alpha system utilizes log returns to select the optimal state based on the historical performance. It combines state predictions with neural network outputs, which are based on historical data, to generate trading signals. This study examined the architecture of the trading system, data pre-processing, training, and performance. The full code and backtesting data are available under the QuantConnect terms: https://github.com/tiagomonteiro0715/AI-Powered-Energy-Algorithmic-Trading-Integrating-Hidden-Markov-Models-with-Neural-Networks

View on arXivView PDF

Code Implementations(1)

Full code of the article: AI-Powered Energy Algorithmic Trading: Integrating Hidden Markov Models with Neural Networks

293PythonAug 5, 20242 years ago

Similar Papers

Cite this paper

@article{monteiro2024aipowered,
  title  = {AI-Powered Energy Algorithmic Trading: Integrating Hidden Markov Models with Neural Networks},
  author = {Tiago Monteiro},
  year   = {2024},
  eprint = {2407.19858},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.19858v7}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.19858.svg)](https://codeofpaper.com/paper/2407.19858)

Discussion