IDEAS home Printed from https://ideas.repec.org/p/war/wpaper/2024-10.html
   My bibliography  Save this paper

Predictive modeling of foreign exchange trading signals using machine learning techniques

Author

Listed:
  • Sugarbayar Enkhbayar

    (University of Warsaw, Faculty of Economic Sciences, Quantitative Finance Research Group)

  • Robert Ślepaczuk

    (University of Warsaw, Faculty of Economic Sciences, Quantitative Finance Research Group, Department of Quantitative Finance and Machine Learning)

Abstract

This study aimed to apply the algorithmic trading strategy on major foreign exchange pairs and compare the performances of machine learning-based strategies and traditional trend-following strategies with benchmark strategies. It differs from other studies in that it considered a wide variety of cases including different foreign exchange pairs, return methods, data frequency, and individual and integrated trading strategies. Ridge regression, KNN, RF, XGBoost, GBDT, ANN, LSTM, and GRU models were used for the machine learning-based strategy, while the MA cross strategy was employed for the trend-following strategy. Backtests were performed on 6 major pairs in the period from January 1, 2000, to June 30, 2023, and daily, and intraday data were used. The Sharpe ratio was considered as a metric used to refer to economic significance, and the independent t-test was used to determine statistical significance. The general findings of the study suggested that the currency market has become more efficient. The rise in efficiency is probably caused by the fact that more algorithms are being used in this market, and information spreads much faster. Instead of finding one trading strategy that works well on all major foreign exchange pairs, our study showed it’s possible to find an effective algorithmic trading strategy that generates a more effective trading signal in each specific case.

Suggested Citation

  • Sugarbayar Enkhbayar & Robert Ślepaczuk, 2024. "Predictive modeling of foreign exchange trading signals using machine learning techniques," Working Papers 2024-10, Faculty of Economic Sciences, University of Warsaw.
  • Handle: RePEc:war:wpaper:2024-10
    as

    Download full text from publisher

    File URL: https://www.wne.uw.edu.pl/download_file/4308/0
    File Function: First version, 2024
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Deniz Can Yıldırım & Ismail Hakkı Toroslu & Ugo Fiore, 2021. "Forecasting directional movement of Forex data using LSTM with technical and macroeconomic indicators," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-36, December.
    2. Lukas Menkhoff & Mark P. Taylor, 2007. "The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis," Journal of Economic Literature, American Economic Association, vol. 45(4), pages 936-972, December.
    3. Jarque, Carlos M. & Bera, Anil K., 1980. "Efficient tests for normality, homoscedasticity and serial independence of regression residuals," Economics Letters, Elsevier, vol. 6(3), pages 255-259.
    4. Hsu, Po-Hsuan & Taylor, Mark P. & Wang, Zigan, 2016. "Technical trading: Is it still beating the foreign exchange market?," Journal of International Economics, Elsevier, vol. 102(C), pages 188-208.
    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. Hassanniakalager, Arman & Sermpinis, Georgios & Stasinakis, Charalampos, 2021. "Trading the foreign exchange market with technical analysis and Bayesian Statistics," Journal of Empirical Finance, Elsevier, vol. 63(C), pages 230-251.
    2. Fong, Tom Pak Wing & Wu, Shui Tang, 2020. "Predictability in sovereign bond returns using technical trading rules: Do developed and emerging markets differ?," The North American Journal of Economics and Finance, Elsevier, vol. 51(C).
    3. Raquel Almeida Ramos & Federico Bassi & Dany Lang, 2020. "Bet against the trend and cash in profits," DISCE - Working Papers del Dipartimento di Economia e Finanza def090, Università Cattolica del Sacro Cuore, Dipartimenti e Istituti di Scienze Economiche (DISCE).
    4. Federico Bassi & Raquel Ramos & Dany Lang, 2023. "Bet against the trend and cash in profits: An agent-based model of endogenous fluctuations of exchange rates," Journal of Evolutionary Economics, Springer, vol. 33(2), pages 429-472, April.
    5. Deprez, Niek & Frömmel, Michael, 2024. "Are simple technical trading rules profitable in bitcoin markets?," International Review of Economics & Finance, Elsevier, vol. 93(PB), pages 858-874.
    6. Souropanis, Ioannis & Vivian, Andrew, 2023. "Forecasting realized volatility with wavelet decomposition," Journal of Empirical Finance, Elsevier, vol. 74(C).
    7. Ivanova, Yuliya & Neely, Christopher J. & Weller, Paul & Famiglietti, Matthew T., 2021. "Can risk explain the profitability of technical trading in currency markets?," Journal of International Money and Finance, Elsevier, vol. 110(C).
    8. Urquhart, Andrew & Zhang, Hanxiong, 2019. "The performance of technical trading rules in Socially Responsible Investments," International Review of Economics & Finance, Elsevier, vol. 63(C), pages 397-411.
    9. Yamani, Ehab, 2019. "Diversification role of currency momentum for carry trade: Evidence from financial crises," Journal of Multinational Financial Management, Elsevier, vol. 49(C), pages 1-19.
    10. Smita Roy Trivedi, 2022. "Technical analysis using Heiken Ashi Stochastic: To catch a trend, use a HASTOC," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(2), pages 1836-1847, April.
    11. Yamani, Ehab, 2021. "Can technical trading beat the foreign exchange market in times of crisis?," Global Finance Journal, Elsevier, vol. 48(C).
    12. Yung-Ho Chang, 2019. "Cross-market information spillover and the performance of technical trading in the foreign exchange market," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 43(2), pages 211-227, April.
    13. Hsu, Po-Hsuan & Taylor, Mark P. & Wang, Zigan & Li, Yan, 2024. "The out-of-sample performance of carry trades," Journal of International Money and Finance, Elsevier, vol. 143(C).
    14. Hung, Chiayu & Lai, Hung-Neng, 2022. "Information asymmetry and the profitability of technical analysis," Journal of Banking & Finance, Elsevier, vol. 134(C).
    15. Yamani, Ehab, 2021. "Foreign exchange market efficiency and the global financial crisis: Fundamental versus technical information," The Quarterly Review of Economics and Finance, Elsevier, vol. 79(C), pages 74-89.
    16. V. Lanzetta, 2024. "Transfer learning for financial data predictions: a systematic review," Papers 2409.17183, arXiv.org.
    17. Jamali, Ibrahim & Yamani, Ehab, 2019. "Out-of-sample exchange rate predictability in emerging markets: Fundamentals versus technical analysis," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 61(C), pages 241-263.
    18. Robert Hudson & Andrew Urquhart, 2021. "Technical trading and cryptocurrencies," Annals of Operations Research, Springer, vol. 297(1), pages 191-220, February.
    19. Panopoulou, Ekaterini & Souropanis, Ioannis, 2019. "The role of technical indicators in exchange rate forecasting," Journal of Empirical Finance, Elsevier, vol. 53(C), pages 197-221.
    20. Dockery, Everton & Todorov, Ivan, 2023. "Further evidence on the returns to technical trading rules: Insights from fourteen currencies," Journal of Multinational Financial Management, Elsevier, vol. 69(C).

    More about this item

    Keywords

    machine learning; algorithmic trading; foreign exchange market; rolling walk-forward optimization; technical indicators;
    All these keywords.

    JEL classification:

    • C4 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics
    • C14 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Semiparametric and Nonparametric Methods: General
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C58 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Financial Econometrics
    • G13 - Financial Economics - - General Financial Markets - - - Contingent Pricing; Futures Pricing

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:war:wpaper:2024-10. 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: Marcin Bąba (email available below). General contact details of provider: https://edirc.repec.org/data/fesuwpl.html .

    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.