Enhancing Currency, Commodity and Energy Price Forecasting Using the LSTM Model: A Case Study of EUR/NZD, GAS and SUGAR Prices
Year 2024,
, 1013 - 1022, 31.12.2024
Bashir Alwesh
,
Fuat Türk
,
Mahmut Kılıçaslan
Abstract
Forecasts from machine and deep learning models are vital for traders and investors in the global financial markets. Many different forecasting methods rely on technical patterns. In this study, the LSTM model based on candlesticks and financial variables was used to improve trading forecasts of different types. Japanese candlesticks are among the most widely used tools for evaluating financial markets. Therefore, these candlesticks, which show price patterns and differences between buying and selling, provide important data for predicting future price fluctuations. A 15-minute candlestick or 15-minute frame is used. The model showed excellent performance in predicting currency rates (EUR/NZDUSD), with an accuracy based on mean square error (MSE = 1.377e-07). The model also showed better accuracy in predicting sugar prices compared to other models, reaching (MSE = 1.419836). The same results were obtained with the GAS model, where the value was (MSE = 0.000173). This superior performance of the model indicates its ability to generate historical patterns and use them effectively in forecasting financial markets. These results provide promising opportunities for traders and investors to make more guided and intelligent investment decisions based on future trends based on these patterns. By using historical patterns and financial data, LSTM's deep learning model shows exceptional predictive performance. It outperforms traditional machine learning methods such as XGBoost. XGBoost achieved a score on the EUR/NZDUSD exchange rate (MSE = 9.537e-07). The error rate for the presented model is considered to be high. This confirms the success of the represented approach and its ability to enable traders and investors to make more informed and strategic decisions. This ultimately contributes to improving trading conditions and investment outcomes in global financial markets.
Ethical Statement
The study is complied with research and publication ethics.
References
- Y. Hu, J. Ni, ve L. Wen, "A hybrid deep learning approach by integrating LSTM-ANN networks with GARCH model for copper price volatility prediction," Physica A: Statistical Mechanics and its Applications, cilt. 557, s. 124907, 2020.
- M. S. Islam ve E. Hossain, "Foreign exchange currency rate prediction using a GRU-LSTM hybrid network," Soft Computing Letters, cilt. 3, s. 100009, 2021.
- M. J. Hamayel ve A. Y. Owda, "A novel cryptocurrency price prediction model using GRU, LSTM and bi-LSTM machine learning algorithms," AI, cilt. 2, sayı. 4, ss. 477-496, 2021.
- H. Ben Ameur ve diğerleri, "Forecasting commodity prices: empirical evidence using deep learning tools," Annals of Operations Research, 2023, ss. 1-19.
- F. Li ve diğerleri, "A medium to long-term multi-influencing factor copper price prediction method based on CNN-LSTM," IEEE Access, cilt. 11, ss. 69458-69473, 2023.
- C. Mari ve E. Mari, "Deep learning based regime-switching models of energy commodity prices," Energy Systems, cilt. 14, sayı. 4, ss. 913-934, 2023.
- T. Fischer ve C. Krauss, "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, cilt. 270, sayı. 2, ss. 654-669, 2018.
- E. Chong, C. Han, ve F. C. Park, "Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies," Expert Systems with Applications, cilt. 83, ss. 187-205, 2017.
- Z. Li ve V. Tam, "Combining the real-time wavelet denoising and long-short-term-memory neural network for predicting stock indexes," 2017 IEEE Symposium Series on Computational Intelligence (SSCI), IEEE, 2017.
- B. Cortez ve diğerleri, "An architecture for emergency event prediction using LSTM recurrent neural networks," Expert Systems with Applications, cilt. 97, ss. 315-324, 2018.
- J. Jurgovsky ve diğerleri, "Sequence classification for credit-card fraud detection," Expert Systems with Applications, cilt. 100, ss. 234-245, 2018.
- N. C. Petersen, F. Rodrigues, ve F. C. Pereira, "Multi-output bus travel time prediction with convolutional LSTM neural network," Expert Systems with Applications, cilt. 120, ss. 426-435, 2019.
- I. K. Nti, A. F. Adekoya, ve B. A. Weyori, "A systematic review of fundamental and technical analysis of stock market predictions," Artificial Intelligence Review, cilt. 53, sayı. 4, ss. 3007-3057, 2020.
- G. James ve diğerleri, An Introduction to Statistical Learning, cilt. 112, Springer, 2013.
- M. Kuhn ve K. Johnson, Applied Predictive Modeling, cilt. 26, Springer, 2013.
- W. Wang ve Y. Lu, "Analysis of the mean absolute error (MAE) and the root mean square error (RMSE) in assessing rounding model," IOP Conference Series: Materials Science and Engineering, IOP Publishing, 2018.
- R. J. Hyndman ve G. Athanasopoulos, Forecasting: Principles and Practice, OTexts, 2018.
- A. Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, O'Reilly Media, Inc., 2022.
- J. M. Klusowski, "Sharp analysis of a simple model for random forests," arXiv preprint arXiv:1805.02587, 2018.
- T. Chen ve C. Guestrin, "XGBoost: A scalable tree boosting system," Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016.
- Y. Freund, R. Schapire, ve N. Abe, "A short introduction to boosting," Journal-Japanese Society For Artificial Intelligence, cilt. 14, ss. 1612, 1999.
- J. Patterson ve A. Gibson, Deep Learning: A Practitioner's Approach, O'Reilly Media, Inc., 2017.
- K. Cho ve diğerleri, "Learning phrase representations using RNN encoder-decoder for statistical machine translation," arXiv preprint arXiv:1406.1078, 2014.
- J. H. Friedman, "Greedy function approximation: a gradient boosting machine," Annals of Statistics, ss. 1189-1232, 2001.
Year 2024,
, 1013 - 1022, 31.12.2024
Bashir Alwesh
,
Fuat Türk
,
Mahmut Kılıçaslan
References
- Y. Hu, J. Ni, ve L. Wen, "A hybrid deep learning approach by integrating LSTM-ANN networks with GARCH model for copper price volatility prediction," Physica A: Statistical Mechanics and its Applications, cilt. 557, s. 124907, 2020.
- M. S. Islam ve E. Hossain, "Foreign exchange currency rate prediction using a GRU-LSTM hybrid network," Soft Computing Letters, cilt. 3, s. 100009, 2021.
- M. J. Hamayel ve A. Y. Owda, "A novel cryptocurrency price prediction model using GRU, LSTM and bi-LSTM machine learning algorithms," AI, cilt. 2, sayı. 4, ss. 477-496, 2021.
- H. Ben Ameur ve diğerleri, "Forecasting commodity prices: empirical evidence using deep learning tools," Annals of Operations Research, 2023, ss. 1-19.
- F. Li ve diğerleri, "A medium to long-term multi-influencing factor copper price prediction method based on CNN-LSTM," IEEE Access, cilt. 11, ss. 69458-69473, 2023.
- C. Mari ve E. Mari, "Deep learning based regime-switching models of energy commodity prices," Energy Systems, cilt. 14, sayı. 4, ss. 913-934, 2023.
- T. Fischer ve C. Krauss, "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, cilt. 270, sayı. 2, ss. 654-669, 2018.
- E. Chong, C. Han, ve F. C. Park, "Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies," Expert Systems with Applications, cilt. 83, ss. 187-205, 2017.
- Z. Li ve V. Tam, "Combining the real-time wavelet denoising and long-short-term-memory neural network for predicting stock indexes," 2017 IEEE Symposium Series on Computational Intelligence (SSCI), IEEE, 2017.
- B. Cortez ve diğerleri, "An architecture for emergency event prediction using LSTM recurrent neural networks," Expert Systems with Applications, cilt. 97, ss. 315-324, 2018.
- J. Jurgovsky ve diğerleri, "Sequence classification for credit-card fraud detection," Expert Systems with Applications, cilt. 100, ss. 234-245, 2018.
- N. C. Petersen, F. Rodrigues, ve F. C. Pereira, "Multi-output bus travel time prediction with convolutional LSTM neural network," Expert Systems with Applications, cilt. 120, ss. 426-435, 2019.
- I. K. Nti, A. F. Adekoya, ve B. A. Weyori, "A systematic review of fundamental and technical analysis of stock market predictions," Artificial Intelligence Review, cilt. 53, sayı. 4, ss. 3007-3057, 2020.
- G. James ve diğerleri, An Introduction to Statistical Learning, cilt. 112, Springer, 2013.
- M. Kuhn ve K. Johnson, Applied Predictive Modeling, cilt. 26, Springer, 2013.
- W. Wang ve Y. Lu, "Analysis of the mean absolute error (MAE) and the root mean square error (RMSE) in assessing rounding model," IOP Conference Series: Materials Science and Engineering, IOP Publishing, 2018.
- R. J. Hyndman ve G. Athanasopoulos, Forecasting: Principles and Practice, OTexts, 2018.
- A. Géron, Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, O'Reilly Media, Inc., 2022.
- J. M. Klusowski, "Sharp analysis of a simple model for random forests," arXiv preprint arXiv:1805.02587, 2018.
- T. Chen ve C. Guestrin, "XGBoost: A scalable tree boosting system," Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016.
- Y. Freund, R. Schapire, ve N. Abe, "A short introduction to boosting," Journal-Japanese Society For Artificial Intelligence, cilt. 14, ss. 1612, 1999.
- J. Patterson ve A. Gibson, Deep Learning: A Practitioner's Approach, O'Reilly Media, Inc., 2017.
- K. Cho ve diğerleri, "Learning phrase representations using RNN encoder-decoder for statistical machine translation," arXiv preprint arXiv:1406.1078, 2014.
- J. H. Friedman, "Greedy function approximation: a gradient boosting machine," Annals of Statistics, ss. 1189-1232, 2001.