IDEAS home Printed from https://ideas.repec.org/a/gam/jfinte/v1y2022i2p8-124d780873.html

An Ensembling Architecture Incorporating Machine Learning Models and Genetic Algorithm Optimization for Forex Trading

Author

Listed:
  • Leonard Kin Yung Loh

    (Institute of Systems Science, National University of Singapore, 25 Heng Mui Keng Terrace, Singapore 119516, Singapore
    These authors contributed equally to this work.)

  • Hee Kheng Kueh

    (Institute of Systems Science, National University of Singapore, 25 Heng Mui Keng Terrace, Singapore 119516, Singapore
    These authors contributed equally to this work.)

  • Nirav Janak Parikh

    (Institute of Systems Science, National University of Singapore, 25 Heng Mui Keng Terrace, Singapore 119516, Singapore
    These authors contributed equally to this work.)

  • Harry Chan

    (Institute of Systems Science, National University of Singapore, 25 Heng Mui Keng Terrace, Singapore 119516, Singapore
    These authors contributed equally to this work.)

  • Nicholas Jun Hui Ho

    (Institute of Systems Science, National University of Singapore, 25 Heng Mui Keng Terrace, Singapore 119516, Singapore)

  • Matthew Chin Heng Chua

    (Institute of Systems Science, National University of Singapore, 25 Heng Mui Keng Terrace, Singapore 119516, Singapore)

Abstract

Algorithmic trading has become the standard in the financial market. Traditionally, most algorithms have relied on rule-based expert systems which are a set of complex if/then rules that need to be updated manually to changing market conditions. Machine learning (ML) is the natural next step in algorithmic trading because it can directly learn market patterns and behaviors from historical trading data and factor this into trading decisions. In this paper, a complete end-to-end system is proposed for automated low-frequency quantitative trading in the foreign exchange (Forex) markets. The system utilizes several State of the Art (SOTA) machine learning strategies that are combined under an ensemble model to derive the market signal for trading. Genetic Algorithm (GA) is used to optimize the strategies for maximizing profits. The system also includes a money management strategy to mitigate risk and a back-testing framework to evaluate system performance. The models were trained on EUR–USD pair Forex data from Jan 2006 to Dec 2019, and subsequently evaluated on unseen samples from Jan 2020 to Dec 2020. The system performance is promising under ideal conditions. The ensemble model achieved about 10% nett P&L with −0.7% drawdown level based on 2020 trading data. Further work is required to calibrate trading costs & execution slippage in real market conditions. It is concluded that with the increased market volatility due to the global pandemic, the momentum behind machine learning algorithms that can adapt to a changing market environment will become even stronger.

Suggested Citation

  • Leonard Kin Yung Loh & Hee Kheng Kueh & Nirav Janak Parikh & Harry Chan & Nicholas Jun Hui Ho & Matthew Chin Heng Chua, 2022. "An Ensembling Architecture Incorporating Machine Learning Models and Genetic Algorithm Optimization for Forex Trading," FinTech, MDPI, vol. 1(2), pages 1-25, March.
  • Handle: RePEc:gam:jfinte:v:1:y:2022:i:2:p:8-124:d:780873
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2674-1032/1/2/8/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2674-1032/1/2/8/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Lean Yu & Shouyang Wang & Kin Keung Lai, 2007. "Foreign-Exchange-Rate Forecasting With Artificial Neural Networks," International Series in Operations Research and Management Science, Springer, number 978-0-387-71720-3, December.
    2. Wei Bao & Jun Yue & Yulei Rao, 2017. "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLOS ONE, Public Library of Science, vol. 12(7), pages 1-24, July.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yang Dexiang & Mu Shengdong & Yunjie Liu & Gu Jijian & Lien Chaolung, 2023. "An Improved Deep-Learning-Based Financial Market Forecasting Model in the Digital Economy," Mathematics, MDPI, vol. 11(6), pages 1-18, March.
    2. Bolin Lei & Zhengdi Liu & Yuping Song, 2021. "On stock volatility forecasting based on text mining and deep learning under high‐frequency data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 40(8), pages 1596-1610, December.
    3. Ortiz-Arango, Francisco & Cabrera-Llanos, Agustín I. & Venegas-Martínez, Francisco, 2014. "Euro Exchange Rate Forecasting with Differential Neural Networks with an Extended Tracking Procedure," MPRA Paper 57720, University Library of Munich, Germany.
    4. Andrea Bucci, 2020. "Realized Volatility Forecasting with Neural Networks," Journal of Financial Econometrics, Oxford University Press, vol. 18(3), pages 502-531.
    5. Jaydip Sen & Sidra Mehtab & Abhishek Dutta & Saikat Mondal, 2022. "Precise Stock Price Prediction for Optimized Portfolio Design Using an LSTM Model," Papers 2203.01326, arXiv.org.
    6. Hakan Pabuccu & Adrian Barbu, 2024. "Feature selection with annealing for forecasting financial time series," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-26, December.
    7. Sangwon Chae & Sungjun Kwon & Donghyun Lee, 2018. "Predicting Infectious Disease Using Deep Learning and Big Data," IJERPH, MDPI, vol. 15(8), pages 1-20, July.
    8. Nosratabadi, Saeed & Mosavi, Amir & Duan, Puhong & Ghamisi, Pedram & Filip, Ferdinand & Band, Shahab S. & Reuter, Uwe & Gama, Joao & Gandomi, Amir H., 2020. "Data science in economics: comprehensive review of advanced machine learning and deep learning methods," FrenXiv e75gc_v1, Center for Open Science.
    9. Jaydip Sen & Sidra Mehtab, 2021. "Design and Analysis of Robust Deep Learning Models for Stock Price Prediction," Papers 2106.09664, arXiv.org.
    10. Umut Ugurlu & Ilkay Oksuz & Oktay Tas, 2018. "Electricity Price Forecasting Using Recurrent Neural Networks," Energies, MDPI, vol. 11(5), pages 1-23, May.
    11. Sang Il Lee & Seong Joon Yoo, 2019. "Multimodal Deep Learning for Finance: Integrating and Forecasting International Stock Markets," Papers 1903.06478, arXiv.org, revised Sep 2019.
    12. Adebayo Oshingbesan & Eniola Ajiboye & Peruth Kamashazi & Timothy Mbaka, 2022. "Model-Free Reinforcement Learning for Asset Allocation," Papers 2209.10458, arXiv.org.
    13. repec:osf:thesis:auyvc_v1 is not listed on IDEAS
    14. Nosratabadi, Saeed & Mosavi, Amir & Duan, Puhong & Ghamisi, Pedram & Filip, Ferdinand & Band, Shahab S. & Reuter, Uwe & Gama, Joao & Gandomi, Amir H., 2020. "Data science in economics: comprehensive review of advanced machine learning and deep learning methods," MetaArXiv haf2v, Center for Open Science.
    15. Wentao Xu & Weiqing Liu & Lewen Wang & Yingce Xia & Jiang Bian & Jian Yin & Tie-Yan Liu, 2021. "HIST: A Graph-based Framework for Stock Trend Forecasting via Mining Concept-Oriented Shared Information," Papers 2110.13716, arXiv.org, revised Jan 2022.
    16. Ertam, Fatih, 2019. "An efficient hybrid deep learning approach for internet security," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 535(C).
    17. Hao Wang & Jingshu Peng & Yanyan Shen & Xujia Li & Quanqing Xu & Chuanhui Yang & Lei Chen, 2025. "Momentum-integrated Multi-task Stock Recommendation with Converge-based Optimization," Papers 2509.10461, arXiv.org, revised Jan 2026.
    18. Rian Dolphin & Barry Smyth & Ruihai Dong, 2024. "Contrastive Learning of Asset Embeddings from Financial Time Series," Papers 2407.18645, arXiv.org.
    19. Junjie Guo, 2024. "Deep Learning in Long-Short Stock Portfolio Allocation: An Empirical Study," Papers 2411.13555, arXiv.org, revised Nov 2024.
    20. Tomoshiro Ochiai & Jose C. Nacher, 2020. "Unveiling the directional network behind the financial statements data using volatility constraint correlation," Papers 2008.07836, arXiv.org, revised Jun 2023.
    21. Doğan, Murat & Sayılır, Özlem & Komath, Muhammed Aslam Chelery & Çimen, Emre, 2025. "Prediction of market value of firms with corporate sustainability performance data using machine learning models," Finance Research Letters, Elsevier, vol. 77(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jfinte:v:1:y:2022:i:2:p:8-124:d:780873. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.