IDEAS home Printed from https://ideas.repec.org/a/spr/fininn/v7y2021i1d10.1186_s40854-020-00220-2.html
   My bibliography  Save this article

Forecasting directional movement of Forex data using LSTM with technical and macroeconomic indicators

Author

Listed:
  • Deniz Can Yıldırım

    (Middle East Technical University)

  • Ismail Hakkı Toroslu

    (Middle East Technical University)

  • Ugo Fiore

    (Parthenope University)

Abstract

Forex (foreign exchange) is a special financial market that entails both high risks and high profit opportunities for traders. It is also a very simple market since traders can profit by just predicting the direction of the exchange rate between two currencies. However, incorrect predictions in Forex may cause much higher losses than in other typical financial markets. The direction prediction requirement makes the problem quite different from other typical time-series forecasting problems. In this work, we used a popular deep learning tool called “long short-term memory” (LSTM), which has been shown to be very effective in many time-series forecasting problems, to make direction predictions in Forex. We utilized two different data sets—namely, macroeconomic data and technical indicator data—since in the financial world, fundamental and technical analysis are two main techniques, and they use those two data sets, respectively. Our proposed hybrid model, which combines two separate LSTMs corresponding to these two data sets, was found to be quite successful in experiments using real data.

Suggested Citation

  • 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.
  • Handle: RePEc:spr:fininn:v:7:y:2021:i:1:d:10.1186_s40854-020-00220-2
    DOI: 10.1186/s40854-020-00220-2
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1186/s40854-020-00220-2
    File Function: Abstract
    Download Restriction: no

    File URL: https://libkey.io/10.1186/s40854-020-00220-2?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Dharmaraja Selvamuthu & Vineet Kumar & Abhishek Mishra, 2019. "Indian stock market prediction using artificial neural networks on tick data," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 5(1), pages 1-12, December.
    2. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    3. Adam Kritzer, 2012. "Forex for Beginners," Springer Books, Springer, number 978-1-4302-4051-8, June.
    4. Wen, Fenghua & Xu, Longhao & Ouyang, Guangda & Kou, Gang, 2019. "Retail investor attention and stock price crash risk: Evidence from China," International Review of Financial Analysis, Elsevier, vol. 65(C).
    5. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    6. Xiao Zhong & David Enke, 2019. "Predicting the daily return direction of the stock market using hybrid machine learning algorithms," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 5(1), pages 1-20, December.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Li, Dan & Li, Yijun & Wang, Chaoqun & Chen, Min & Wu, Qi, 2023. "Forecasting carbon prices based on real-time decomposition and causal temporal convolutional networks," Applied Energy, Elsevier, vol. 331(C).
    2. Hakan Pabuccu & Adrian Barbu, 2023. "Feature Selection with Annealing for Forecasting Financial Time Series," Papers 2303.02223, arXiv.org, revised Feb 2024.
    3. Cristescu Marian Pompiliu & Nerişanu Raluca Andreea & Mara Dumitru Alexandru, 2022. "Using Data Mining in the Sentiment Analysis Process on the Financial Market," Journal of Social and Economic Statistics, Sciendo, vol. 11(1-2), pages 36-58, December.
    4. David Liu & An Wei, 2022. "Regulated LSTM Artificial Neural Networks for Option Risks," FinTech, MDPI, vol. 1(2), pages 1-11, June.
    5. Yunze Li & Yanan Xie & Chen Yu & Fangxing Yu & Bo Jiang & Matloob Khushi, 2021. "Feature importance recap and stacking models for forex price prediction," Papers 2107.14092, arXiv.org.
    6. Branka Hadji Misheva & Joerg Osterrieder, 2023. "A Hypothesis on Good Practices for AI-based Systems for Financial Time Series Forecasting: Towards Domain-Driven XAI Methods," Papers 2311.07513, arXiv.org.
    7. Li, Dan & Jiang, Fuxin & Chen, Min & Qian, Tao, 2022. "Multi-step-ahead wind speed forecasting based on a hybrid decomposition method and temporal convolutional networks," Energy, Elsevier, vol. 238(PC).
    8. J. C. Garza Sepúlveda & F. Lopez-Irarragorri & S. E. Schaeffer, 2023. "Forecasting Forex Trend Indicators with Fuzzy Rough Sets," Computational Economics, Springer;Society for Computational Economics, vol. 62(1), pages 229-287, June.
    9. Marc Wildi & Branka Hadji Misheva, 2022. "A Time Series Approach to Explainability for Neural Nets with Applications to Risk-Management and Fraud Detection," Papers 2212.02906, arXiv.org.
    10. Mimansa Rana & Nanxiang Mao & Ming Ao & Xiaohui Wu & Poning Liang & Matloob Khushi, 2021. "Clustering and attention model based for intelligent trading," Papers 2107.06782, arXiv.org, revised Aug 2021.
    11. Marian Pompiliu Cristescu & Raluca Andreea Nerisanu & Dumitru Alexandru Mara & Simona-Vasilica Oprea, 2022. "Using Market News Sentiment Analysis for Stock Market Prediction," Mathematics, MDPI, vol. 10(22), pages 1-12, November.
    12. Yao, Haixiang & Xia, Shenghao & Liu, Hao, 2022. "Six-factor asset pricing and portfolio investment via deep learning: Evidence from Chinese stock market," Pacific-Basin Finance Journal, Elsevier, vol. 76(C).

    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. Hakan Gunduz, 2021. "An efficient stock market prediction model using hybrid feature reduction method based on variational autoencoders and recursive feature elimination," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-24, December.
    2. Ghada A. Altarawneh & Ahmad B. Hassanat & Ahmad S. Tarawneh & Ahmad Abadleh & Malek Alrashidi & Mansoor Alghamdi, 2022. "Stock Price Forecasting for Jordan Insurance Companies Amid the COVID-19 Pandemic Utilizing Off-the-Shelf Technical Analysis Methods," Economies, MDPI, vol. 10(2), pages 1-18, February.
    3. Muhammad Ateeq ur REHMAN & Furman ALI & Shang XIE, 2022. "Impact of Foreign Investment News on the Return, Cost of Equity and Cash Flow Activities," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 112-127, December.
    4. Goel Himanshu & Agarwal Monika & Chhabra Meghna & Som Bhupender Kumar, 2023. "The Predictive Power of Macroeconomic Variables on the Indian Stock Market Utilizing an Ann Model Approach: An Empirical Investigation Based on BSE Sensex," Folia Oeconomica Stetinensia, Sciendo, vol. 23(2), pages 116-131, December.
    5. Amin Aminimehr & Ali Raoofi & Akbar Aminimehr & Amirhossein Aminimehr, 2022. "A Comprehensive Study of Market Prediction from Efficient Market Hypothesis up to Late Intelligent Market Prediction Approaches," Computational Economics, Springer;Society for Computational Economics, vol. 60(2), pages 781-815, August.
    6. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    7. Dhruhi Sheth & Manan Shah, 2023. "Predicting stock market using machine learning: best and accurate way to know future stock prices," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(1), pages 1-18, February.
    8. Li-Chen Cheng & Wei-Ting Lu & Benjamin Yeo, 2023. "Predicting abnormal trading behavior from internet rumor propagation: a machine learning approach," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-23, December.
    9. Ehsan Hoseinzade & Saman Haratizadeh, 2018. "CNNPred: CNN-based stock market prediction using several data sources," Papers 1810.08923, arXiv.org.
    10. Xie, Wen-Jie & Li, Mu-Yao & Zhou, Wei-Xing, 2021. "Learning representation of stock traders and immediate price impacts," Emerging Markets Review, Elsevier, vol. 48(C).
    11. Sarat Chandra Nayak & Bijan Bihari Misra, 2020. "Extreme learning with chemical reaction optimization for stock volatility prediction," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 6(1), pages 1-23, December.
    12. Firuz Kamalov & Linda Smail & Ikhlaas Gurrib, 2021. "Forecasting with Deep Learning: S&P 500 index," Papers 2103.14080, arXiv.org.
    13. Yao, Haixiang & Xia, Shenghao & Liu, Hao, 2022. "Six-factor asset pricing and portfolio investment via deep learning: Evidence from Chinese stock market," Pacific-Basin Finance Journal, Elsevier, vol. 76(C).
    14. Tai-Liang Chen & Ching-Hsue Cheng & Jing-Wei Liu, 2019. "A Causal Time-Series Model Based on Multilayer Perceptron Regression for Forecasting Taiwan Stock Index," International Journal of Information Technology & Decision Making (IJITDM), World Scientific Publishing Co. Pte. Ltd., vol. 18(06), pages 1967-1987, November.
    15. Haibin Xie & Yuying Sun & Pengying Fan, 2023. "Return direction forecasting: a conditional autoregressive shape model with beta density," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-16, December.
    16. Suppawong Tuarob & Poom Wettayakorn & Ponpat Phetchai & Siripong Traivijitkhun & Sunghoon Lim & Thanapon Noraset & Tipajin Thaipisutikul, 2021. "DAViS: a unified solution for data collection, analyzation, and visualization in real-time stock market prediction," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-32, December.
    17. Wei Dai & Yuan An & Wen Long, 2021. "Price change prediction of ultra high frequency financial data based on temporal convolutional network," Papers 2107.00261, arXiv.org.
    18. Aaryan Gupta & Vinya Dengre & Hamza Abubakar Kheruwala & Manan Shah, 2020. "Comprehensive review of text-mining applications in finance," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 6(1), pages 1-25, December.
    19. Shao, Zhen & Zheng, Qingru & Yang, Shanlin & Gao, Fei & Cheng, Manli & Zhang, Qiang & Liu, Chen, 2020. "Modeling and forecasting the electricity clearing price: A novel BELM based pattern classification framework and a comparative analytic study on multi-layer BELM and LSTM," Energy Economics, Elsevier, vol. 86(C).
    20. Kamaladdin Fataliyev & Aneesh Chivukula & Mukesh Prasad & Wei Liu, 2021. "Stock Market Analysis with Text Data: A Review," Papers 2106.12985, arXiv.org, revised Jul 2021.

    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:spr:fininn:v:7:y:2021:i:1:d:10.1186_s40854-020-00220-2. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.