MODELING PRICE REVERSALS IN THE INDONESIAN EQUITY MARKET USING SUPERVISED MACHINE LEARNING

Authors

  • Irawan Wingdes stmik pontianak
  • Ferdi

DOI:

https://doi.org/10.25134/digibe.v3i2.323

Keywords:

Mean Reversion, Random Forest, Technical Indicators, Stock Market

Abstract

This study aims to develop a classification model using the random forest approach to identify mean reversion events in stock prices within the Indonesian capital market, which applies a long-only trading system and prohibits short selling. A mean reversion event is defined as a condition in which the price deviates from the average—specifically, the 50-period Simple Moving Average (SMA)—and subsequently moves back toward the average within a certain timeframe. The model is trained on historical data from three of the most liquid stocks in the financial sector: BBCA, BMRI, and BBNI. The features used include technical indicators such as SMA, Relative Strength Index (RSI), oscillators, and price autocorrelation. Two models were developed with variations in parameters including the reversal window, number of estimators, maximum depth, class weight, threshold, and classification probability. Evaluation was conducted using the Receiver Operating Characteristic (ROC) curve and precision-recall metrics, and further tested on out-of-sample data from cross-sector stocks to assess the model’s generalization capability across various market conditions. In addition, the buy-sell strategy was tested through simulations and validated using Monte Carlo methods to evaluate the model’s robustness in actual trading conditions and under random data variations. The results indicate that mean reversion events can be effectively modeled, yielding high reliability—particularly in models that are more selective or less responsive to short-term price fluctuations. The model also demonstrated strong simulation performance, especially when implemented with appropriate filtering methods.

References

Almeida, L., & Vieira, E. (2023). Technical Analysis, Fundamental Analysis, and Ichimoku Dynamics: A Bibliometric Analysis. Risks, 11(8).

Antara. (2025). OJK tunda implementasi short selling dan kaji buyback saham tanpa RUPS. https://www.antaranews.com/berita/4685601/ojk-tunda-implementasi-short-selling-dan-kaji-buyback-saham-tanpa-rups

Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2016). Time Series Analysis: Forecasting and control (5th ed.). Wiley.

Breiman, L. (2001). Random Forests. Machine Learning, 45, 5–32.

Dixon, M. (2018). Sequence classification of the limit order book using recurrent neural networks. Journal of Computational Science, 24, 277–286.

He, C., Wang, T., Liu, X., & Huang, K. (2023). An Innovative High Frequency Statistical Artbitrage in Chinese Futures Market. Journal of Innovation & Knowledge, 8(3), 100369.

Jiang, W. (2021). Applications of deep learning in stock market prediction: Recent progress. Expert Systems with Applications, 184(July), 115537.

Khan, W., Ghazanfar, M. A., Azam, M. A., Karami, A., Alyoubi, K. H., & Alfakeeh, A. S. (2022). Stock market prediction using machine learning classifiers and social media, news. Journal of Ambient Intelligence and Humanized Computing, 13(7), 3433–3456.

Kolm, P. N., & Ritter, G. (2019). Dynamic Replication and Hedging: The Journal of Financial Data Science, 1, 159–171.

Krauss, C., Do, X. A., & Huck, N. (2017). Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500. European Journal of Operational Research, 259(2), 689–702.

Lim, B., & Zohren, S. (2021). Time-series forecasting with deep learning: A survey. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 379(2194).

Ma, L., Grant, A. J., & Sofronov, G. (2020). Multiple change point detection and validation in autoregressive time series data. Statistical Papers, 61(4), 1507–1528.

Rouf, N., Malik, M. B., Arif, T., Sharma, S., Singh, S., Aich, S., & Kim, H. C. (2021). Stock market prediction using machine learning techniques: A decade survey on methodologies, recent developments, and future directions. Electronics (Switzerland), 10(21).

Wang, J., Zhang, Y., Tang, K., Wu, J., & Xiong, Z. (2019). AlphaStock: A buying-winners-and-selling-losers investment strategy using interpretable deep reinforcement attention networks. Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 1900–1908.

Zhang, Z., Zohren, S., & Roberts, S. (2020). Deep Reinforcement Learning for Trading. Journal of Financial Data Science, 2(2), 25–40.

Downloads

Published

31-07-2025

How to Cite

Wingdes, I., & Ferdi. (2025). MODELING PRICE REVERSALS IN THE INDONESIAN EQUITY MARKET USING SUPERVISED MACHINE LEARNING. Digital Business and Entrepreneurship Journal, 3(2), 83–95. https://doi.org/10.25134/digibe.v3i2.323

Similar Articles

You may also start an advanced similarity search for this article.