A Hybrid Linear Regression Model with Mean Reversion and Alligator Indicators for Short-Term Forex Price Trend Prediction
DOI:
https://doi.org/10.52436/1.jutif.2026.7.5.5514Keywords:
Alligator Indicator, Forex Trading, Linear Regression, Machine Learning, Mean ReversionAbstract
The foreign exchange (forex) market is characterized by high liquidity and rapid price fluctuations, which pose significant challenges for short-term price trend prediction using conventional statistical models. This study aims to develop a more reliable forecasting approach by addressing the limitations of standalone linear regression under volatile market conditions. To achieve this objective, a hybrid modelling framework is proposed that integrates Linear Regression with Mean Reversion principles and the Alligator technical indicator. Historical data OHLC data for three major currency pairs (AUDUSD, EURUSD, GBPUSD) were acquired from the Metatrader 5 platform, covering period from January to May 2025 with a 5-minute timeframe. The model performance was evaluated using monthly and weekly forecasting scenarios, supported by standard regression error metrics and back testing validation. The results show that compared to a baseline model using linear regression only, the proposed hybrid approach provides substantially improved predictive reliability in weekly forecasting scenarios, achieving average R2 values above 0.85 across all evaluated currency pairs. In addition, the hybrid framework facilitates clearer and more reliable buy and sell decision making by combining quantitative trend estimation with deviation base correction signals and trend structure confirmation. From a Computer Science perspective, this study contributes to predictive time series modelling and algorithmic trading research by demonstrating that hybrid integration of machine learning and technical indicators enhances model stability, interpretability, and decision support capability for short-term forex forecasting.
Downloads
References
P. Wahyuningsih, P. D. Paramita, D. K. Adhi, L. Luhgiatno, and J. Prabowo, “Edukasi Trading Forex kepada Warga Kelurahan Kandri Kecamatan Gunungpati Kota Semarang,” Fokus ABDIMAS, vol. 3, no. 1, pp. 74–80, 2024, doi: 10.34152/abdimas.3.1.74-80.
D. S. Figueroa and D. Rajasekar, “Role of Foreign Exchange Management in Currency Trading,” Technoarete Journal on Accounting and Finance, vol. 2, no. 4, 2022, doi: 10.36647/tjaf/02.04.a005.
J. Ahmad, A. ul Hasan, T. Naqvi, and T. Mubeen, “A Review on Software Testing and Its Methodology,” Manag. J. Softw. Eng., vol. 13, no. 1, pp. 32–38, 2019, doi: 10.26634/jse.13.3.15515.
Y. I. Kurniawan, A. Rahmawati, N. Chasanah, and A. Hanifa, “Application for determining the modality preference of student learning,” J. Phys.: Conf. Ser., vol. 1367, no. 1, pp. 1–11, 2019, doi: 10.1088/1742-6596/1367/1/012011.
Y. Liu, M. Gao, Y. Guo, and Y. Qiao, “Designing Efficient Pair-Trading Strategies for the Technology Stock Market,” Advances in Economics, Management and Political Sciences, vol. 106, no. 1, pp. 359–369, 2024, doi: 10.54254/2754-1169/106/20241453.
B. P. Singh Sahni, “Introduction to Algorithmic Trading Strategies,” Journal of Mathematical & Computer Applications, pp. 1–4, 2023, doi: 10.47363/jmca/2023(2)163.
E. A. Shams and A. Rizaner, “A novel support vector machine based intrusion detection system for mobile ad hoc networks,” Wireless Networks, vol. 24, no. 5, pp. 1821–1829, 2018, doi: 10.1007/s11276-016-1439-0.
Y. Guo, S. Han, Y. Li, C. Zhang, and Y. Bai, “K-Nearest Neighbor combined with guided filter for hyperspectral image classification,” Procedia Computer Science, vol. 129, pp. 159–165, 2018, doi: 10.1016/j.procs.2018.03.066.
Y. I. Kurniawan, E. Soviana, and I. Yuliana, “Merging Pearson Correlation and TAN-ELR algorithm in recommender system,” AIP Conf. Proc., vol. 1977, 2018, doi: 10.1063/1.5042998.
Ș. Rusu, M. I. Boloș, and M. Leordeanu, “Comparative analysis of regression models for stock price prediction: Linear, support vector, polynomial, and lasso,” Journal of Financial Studies, vol. 9, no. 17, pp. 143–156, 2024, doi: 10.55654/jfs.2024.9.17.09.
N. Sukma and C. S. Namahoot, “An Algorithmic Trading Approach Merging Machine Learning with Multi-Indicator Strategies for Optimal Performance,” IEEE Access, p. 1, Jan. 2024, doi: 10.1109/access.2024.3516053.
H. Qu and M. He, “Predicting Volatility Based on Interval Regression Models,” Journal of risk and financial management, vol. 15, no. 12, p. 564, Nov. 2022, doi: 10.3390/jrfm15120564.
R. P. de Silva and H. A. Pathberiya, “Directional Forecast with Dynamic Volatility and Time Regime Classification: An Evaluation on EUR/USD,” pp. 1–6, Dec. 2022, doi: 10.1109/SLAAI-ICAI56923.2022.10002484.
H. Huang, “Theory and Application of Linear Regression Model in Financial Market Forecasting,” Highlights in business, economics and management, vol. 56, pp. 198–206, May 2025, doi: 10.54097/fj6vve67.
L. Buzzacchi and L. L. Ghezzi, “Mean Reversion Lessens Mean Blur: Evidence from the S&P Composite Index,” International Journal of Financial Studies, vol. 11, no. 1, p. 22, Jan. 2023, doi: 10.3390/ijfs11010022.
S. T. Enow, “Investigating mean reversion in financial markets using Hurst Model,” International Journal of Research In Business and Social Science, Sep. 2023, doi: 10.20525/ijrbs.v12i6.2664.
A. Ojha and V. Saxena, “Understanding Stock Market Trends Using Simple Moving Average (SMA) and Exponential Moving Average (EMA) Indicators,” vol. 6, pp. 1931–1935, Sep. 2023, doi: 10.1109/ic3i59117.2023.10398001.
M. Edi, E. Utami, and A. Yaqin, “Prediksi Harga pada Trading Forex Pair USDCHF Menggunakan Regresi Linier,” JAMIKA, vol. 13, no. 2, Oct. 2023, doi: 10.34010/jamika.v13i2.9826.
W. Jung and M. Kang, “The short-term mean reversion of stock price and the change in trading volume,” Journal of Derivatives and Quantitative Studies, vol. 29, no. 3, pp. 190–214, 2021, doi: 10.1108/JDQS-01-2021-0003.
S. Amini, R. Hudson, A. Urquhart, and J. Wang, “Nonlinearity everywhere: implications for empirical finance, technical analysis and value at risk,” European Journal of Finance, vol. 27, no. 13, pp. 1326–1349, Mar. 2021, doi: 10.1080/1351847X.2021.1900888.
S. I. Ansarullah, M. I. Islam, F. Ahmad, M. Danish, A. R. Dar, and S. Mufti, “Predicting Stock Markets Using Linear Regression and Cloud Computing,” Advances in computational intelligence and robotics book series, pp. 331–352, Apr. 2025, doi: 10.4018/979-8-3373-0781-7.ch015.
S. A. Safari and C. Schmidhuber, “Trends and Reversion in Financial Markets on Time Scales from Minutes to Decades,” Jan. 2025, doi: 10.48550/arxiv.2501.16772.
S. Behl, J. Jarsania, and S. Maitra, “A Machine Learning Framework for Stock Trading: Integrating Technical and Economic Indicators,” Journal of posthumanism, vol. 5, no. 8, Aug. 2025, doi: 10.63332/joph.v5i8.3133.
F. M. P. Fozap, “Hybrid Machine Learning Models for Long-Term Stock Market Forecasting: Integrating Technical Indicators,” Feb. 2025, doi: 10.20944/preprints202502.0676.v1.
A. Birzoim, “A Generalized Hybrid Machine Learning Framework for Time-Series Forecasting across Critical Infrastructure Domains,” May 2025, doi: 10.31219/osf.io/qgur8_v1.
T. Mahmud et al., “Predictive Modeling in Forex Trading: A Time Series Analysis Approach,” pp. 390–397, Jun. 2024, doi: 10.1109/icici62254.2024.00070.
M. M. Panda, S. N. Panda, and P. K. Pattnaik, “Forecasting Foreign Currency Exchange Rate using Convolutional Neural Network,” Int. J. Adv. Comput. Sci. Appl., vol. 13, no. 2, 2022, doi: 10.14569/ijacsa.2022.0130272.
J. Jacobs, “Linear regression analysis,” Elsevier eBooks, pp. 548–557, 2023, doi: 10.1016/b978-0-12-818630-5.10067-3.
R. Verma, “Modeling Momentum and Reversals,” Risks, vol. 10, no. 10, p. 190, 2022, doi: 10.3390/risks10100190.
B. Panwar et al., “Stock Market Prediction Using Linear Regression and SVM,” 2021 Int. Conf. Advance Computing and Innovative Technologies in Engineering (ICACITE), pp. 629–631, 2021, doi: 10.1109/ICACITE51222.2021.9404733.
N. Roustaei, “Application and interpretation of linear-regression analysis,” vol. 13, pp. 151–159, Oct. 2024, doi: 10.51329/mehdiophthal1506.
A. Lipton and M. Lopez de Prado, “A closed-form solution for optimal mean-reverting trading strategies,” Research Papers in Economics, Mar. 2020, doi: 10.48550/arXiv.2003.10502.
G. Airlangga, “Performance Evaluation of Machine Learning Models for Predicting Household Energy Consumption,” Indonesian Journal of Artificial Intelligence and Data Mining, vol. 8, no. 1, p. 76, 2024, doi: 10.24014/ijaidm.v8i1.32791.
Murugamani C et al. “Machine Learning for Robot Precision: Predicting End-of-Operation Errors Using Regression Techniques,” cset, vol. 3, no. 2 June 2025, pp. 211–224, July 2025, doi: 10.46632/cset/3/2/24.
N. Usman et al., “Comparison of the performance of regression-specific and multi-purpose algorithms,” Nusantara Hasana Journal, vol. 4, no. 8, pp. 32–39, Jan. 2025, doi: 10.59003/nhj.v4i8.1274.
A. Bandyopadhyay, “Statistical Tools for Model Validation and Back Testing,” Oxford University Press eBooks, pp. 233–254, 2022, doi: 10.1093/oso/9780192849014.003.0009.
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Irvan Lewenusa, Teny Handhayani

This work is licensed under a Creative Commons Attribution 4.0 International License.

</a



