A Machine Learning–Based Long–Short Decision Framework for Hourly EUR/USD Forecasting under Strict Temporal Alignment
DOI:
https://doi.org/10.65069/jessd21202610Keywords:
Machine learning, Foreign exchange forecasting, Temporal alignment, Long-short trading strategy, Directional predictionAbstract
This study develops and evaluates a machine learning framework for hourly EUR/USD directional forecasting that emphasizes temporal alignment, economic interpretability, and out-of-sample validation. Despite extensive research on algorithmic trading strategies, a critical disconnect persists between reported classification accuracy and actual economic profitability, often arising from methodological issues related to temporal misalignment between predictions, positions, and realized returns. Employing hourly EUR/USD data spanning 2005 to 2020, this research implements a logistic regression classifier with simple price-based features evaluated through walk-forward validation. The model achieves approximately 58.5 percent mean out-of-sample directional accuracy across multiple validation folds, demonstrating statistically stable predictive performance. Translation of probabilistic forecasts into trading positions occurs through a confidence-based long-short strategy that exploits bidirectional price movements while remaining inactive during periods of low prediction certainty. Under strict temporal alignment ensuring causal consistency between information availability and return realization, the machine learning strategy generates positive cumulative returns and superior risk-adjusted performance compared to passive buy-and-hold benchmarks. The buy-and-hold strategy experiences severe drawdowns and terminal cumulative returns of approximately negative 19 percent, while the machine learning approach maintains positive terminal returns of approximately 12 percent with substantially improved downside protection across heterogeneous market regimes including the 2008 financial crisis and European sovereign debt crisis.
References
Galeshchuk, S., & Mukherjee, S. (2017). Deep networks for predicting direction of change in foreign exchange rates. Intelligent Systems in Accounting, Finance and Management, 24(4), 100–110. https://doi.org/10.1002/isaf.1404
Ibikunle, G., Gregoriou, A., Hoepner, A. G. F., & Rhodes, M. (2015). Liquidity and market efficiency in the world's largest carbon market. The British Accounting Review, 48(4), 431–447. https://doi.org/10.1016/j.bar.2015.11.001
Dal Bianco, M., Camacho, M., & Perez-Quiros, G. (2012). Short-run forecasting of the Euro-dollar exchange rate with economic fundamentals. SSRN Electronic Journal, 31(2). https://doi.org/10.2139/ssrn.2000677
Goulet Coulombe, P., Leroux, M., Stevanovic, D., & Surprenant, S. (2022). How is machine learning useful for macroeconomic forecasting? Journal of Applied Econometrics, 37(5), 920–964. https://doi.org/10.1002/jae.2910
Plakandaras, V., Papadimitriou, T., & Gogas, P. (2015). Forecasting daily and monthly exchange rates with machine learning techniques. Journal of Forecasting, 34(7), 560–573. https://doi.org/10.1002/for.2354
Lin, Y., Liu, S., Yang, H., & Wu, H. (2021). Stock trend prediction using candlestick charting and ensemble machine learning techniques with a novelty feature engineering scheme. IEEE Access, 9, 101433–101446. https://doi.org/10.1109/access.2021.3096825
Artene, A. E., & Domil, A. E. (2025). Neural Networks in Accounting: Bridging Financial Forecasting and Decision Support Systems. Electronics, 14(5), 993. https://doi.org/10.3390/electronics14050993
Pagliaro, A. (2025). Artificial intelligence vs. efficient markets: A critical reassessment of predictive models in the big data era. Electronics, 14(9), 1721. https://doi.org/10.3390/electronics14091721
Degiannakis, S., Delis, P., Filis, G., & Giannopoulos, G. (2025). Trading VIX on volatility forecasts: another volatility puzzle? Bank of Greece. https://doi.org/10.52903/wp2025336
Stratigakos, A., Camal, S., Michiorri, A., & Kariniotakis, G. (2022). Prescriptive trees for integrated forecasting and optimization applied in trading of renewable energy. IEEE Transactions on Power Systems, 37(6), 4696–4708. https://doi.org/10.1109/TPWRS.2022.3152667
Jarnecic, E., & Snape, M. (2014). The provision of liquidity by high‐frequency participants. Financial Review, 49(2), 371–394. https://doi.org/10.1111/fire.12040
Lindberg, O., Lingfors, D., Arnqvist, J., Van Der Meer, D., & Munkhammar, J. (2023). Day-ahead probabilistic forecasting at a co-located wind and solar power park in Sweden: Trading and forecast verification. Advances in Applied Energy, 9, 100120. https://doi.org/10.1016/j.adapen.2022.100120
Cosset, J.-C., & Suret, J.-M. (1995). Political risk and the benefits of international portfolio diversification. Journal of International Business Studies, 26(2), 301–318. https://doi.org/10.1057/palgrave.jibs.8490175
Rostamian, A., & O'Hara, J. G. (2022). Event prediction within directional change framework using a CNN-LSTM model. Neural Computing and Applications, 34(20), 17193–17205. https://doi.org/10.1007/s00521-022-07687-3
O'Hara, M. (2018). Market microstructure. In M. Vernengo, E. P. Caldentey, & B. J. Rosser Jr. (Eds.), The New Palgrave dictionary of economics. Palgrave Macmillan. https://doi.org/10.1057/978-1-349-95189-5_2807
Campbell, J. Y., Lo, A. W., MacKinlay, A. C., & Whitelaw, R. F. (1998). The econometrics of financial markets. Macroeconomic Dynamics, 2(4), 559–562. https://doi.org/10.1017/S1365100598009092
Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.). Springer. https://doi.org/10.1007/978-0-387-84858-7
Murphy, J. J. (1999). Technical analysis of the financial markets: A comprehensive guide to trading methods and applications. Penguin.
Bollerslev, T. (1986). Generalized autoregressive conditional heteroskedasticity. Journal of Econometrics, 31(3), 307–327. https://doi.org/10.1016/0304-4076(86)90063-1
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223–2273. https://doi.org/10.1093/rfs/hhaa009
Bergmeir, C., & Benítez, J. M. (2012). On the use of cross-validation for time series predictor evaluation. Information Sciences, 191, 192–213. https://doi.org/10.1016/j.ins.2011.12.028
Tashman, L. J. (2000). Out-of-sample tests of forecasting accuracy: An analysis and review. International Journal of Forecasting, 16(4), 437–450. https://doi.org/10.1016/S0169-2070(00)00065-0
López-Herrera, F., Jiménez, J. G. M., & Santiago, A. R. (2025). Directional forecasting for eight forex pairs against the US dollar using machine learning techniques. Discover Artificial Intelligence, 5(1), 224. https://doi.org/10.1007/s44163-025-00424-4
Fama, E. F. (1970). Efficient capital markets: A review of theory and empirical work. The Journal of Finance, 25(2), 383–417. https://doi.org/10.2307/2325486
Sokolovsky, A., Arnaboldi, L., Bacardit, J., & Gross, T. (2023). Interpretable trading pattern designed for machine learning applications. Machine Learning with Applications, 11, 100448. https://doi.org/10.1016/j.mlwa.2023.100448
Enkhbayar, S., & Ślepaczuk, R. (2025). Predictive modeling of foreign exchange trading signals using machine learning techniques. Expert Systems with Applications, 266, 127729. https://doi.org/10.1016/j.eswa.2025.127729
Beckmann, J., Kerkemeier, M., & Kruse-Becher, R. (2025). Regime-specific exchange rate predictability. Journal of Economic Dynamics and Control, 176, 105095. https://doi.org/10.1016/j.jedc.2025.105095












All site content, except where otherwise noted, is licensed under the