استغلال التعلم العميق والمؤشرات الفنية لتحسين توقعات الأسهم للأسهم الكبرى في بورصة إندونيسيا (IDX) Harnessing Deep Learning and Technical Indicators for Enhanced Stock Predictions of Blue-Chip Stocks on the Indonesia Stock Exchange (IDX)

شارك:
المجلة: Engineering Technology & Applied Science Research، المجلد: 15، العدد: 1
DOI: https://doi.org/10.48084/etasr.9850
تاريخ النشر: 2025-02-02
المؤلف: Bernadectus Yudi Dwiandiyanta وآخرون
الموضوع الرئيسي: طرق التنبؤ بسوق الأسهم

نظرة عامة

تدرس هذه الدراسة فعالية نماذج التعلم العميق في التنبؤ بأسعار الأسهم في بورصة إندونيسيا (IDX)، مع التركيز بشكل خاص على الشركات الكبرى. تتناول الدراسة قيود النماذج الحالية من خلال دمج بيانات الأسهم التاريخية مع مؤشرات فنية متنوعة، مثل المتوسط المتحرك البسيط (SMA)، والمتوسط المتحرك الأسي (EMA)، والمتوسط المتحرك المرجح (WMA)، وحجم التداول المتوازن (OBV)، والتراكم/التوزيع (AD). تستخدم البحث مقاييس أداء قوية، بما في ذلك $R^2$، ومتوسط الخطأ التربيعي (MSE)، وجذر متوسط الخطأ التربيعي (RMSE)، لتقييم دقة النموذج. ومن الجدير بالذكر أن نموذج الذاكرة طويلة وقصيرة المدى (LSTM) أظهر تحسنًا بنسبة 14.59% في $R^2$ لأسهم ASII، بينما أظهر نموذج الوحدة المتكررة المغلقة (GRU) انخفاضًا بنسبة 45.16% في MSE لأسهم BBCA، مما يبرز التأثير الكبير لاختيار الميزات على دقة التنبؤ.

تؤكد النتائج على أهمية دمج المؤشرات الفنية مع البيانات التاريخية لتعزيز نماذج التنبؤ، مما يوفر أدوات قيمة للمستثمرين والمحللين في تطوير استراتيجيات التداول. تملأ هذه الدراسة فجوة حاسمة في الأدبيات من خلال تطبيق تقنيات التعلم العميق على أسواق الأسهم في البلدان النامية، وهي منطقة غالبًا ما يتم تجاهلها في الدراسات السابقة. على الرغم من أن النتائج واعدة، تحذر الدراسة من الاعتماد المفرط على هذه النماذج بسبب محدودية قابليتها للتعميم وتؤكد على الحاجة إلى دمجها مع التحليل الأساسي وفهم شامل لديناميات السوق. تشمل اتجاهات البحث المستقبلية توسيع تطبيقات النموذج عبر ظروف السوق وأنواع الأسهم المتنوعة، ودمج طرق التحقق المتبادل لتحسين الموثوقية، واستكشاف تقنيات التعلم الآلي البديلة لمحاكاة التداول في الوقت الحقيقي.

مقدمة

تسلط مقدمة ورقة البحث الضوء على الدور الحاسم لتنبؤ أسعار الأسهم في الاستثمار والتمويل، مع التأكيد على تعقيدها والآثار الكبيرة لدقة التنبؤ على المستثمرين. يمكن أن تؤدي التوقعات غير الدقيقة إلى خسائر مالية كبيرة، بينما تعتبر التنبؤات الدقيقة ضرورية لإدارة مخاطر الاستثمار. أدى تقدم التقنيات الحسابية إلى منهجيات مبتكرة تهدف إلى تعزيز دقة التنبؤات في سوق الأسهم، حيث تعتبر البيانات التاريخية مصدرًا محوريًا في هذا الجهد.

تصنف النص العوامل المؤثرة في تحركات أسعار الأسهم إلى عناصر داخلية وخارجية. تشمل العوامل الداخلية تقارير مالية للشركات، بينما تشمل العوامل الخارجية تأثيرات أوسع مثل الظروف الاقتصادية الكلية العالمية والأحداث السياسية. يعتمد الاعتماد على البيانات التاريخية في التنبؤ على الاعتقاد بأن الاتجاهات السابقة يمكن أن توفر رؤى قيمة حول سلوك الأسهم في المستقبل، مما يبرز أهمية هذه المناهج المعتمدة على البيانات في تحليل الأسهم.

طرق

في هذا القسم، يحدد المؤلفون المنهجيات المستخدمة في بحثهم، مع التأكيد على نهج منهجي في هيكل النموذج واختيار المعلمات الفائقة. استخدمت الدراسة نماذج الذاكرة طويلة وقصيرة المدى (LSTM)، والوحدة المتكررة المغلقة (GRU)، والشبكة العصبية المتكررة (RNN)، مع تكوينات مصممة لتحسين التعلم ومنع الإفراط في التكيف. تم إبلاغ المعلمات الفائقة الرئيسية، مثل عدد الطبقات، ومعدلات التعلم، وأحجام الدفعات، من خلال الأبحاث السابقة والاختبار التجريبي، مما يضمن توازنًا بين تعقيد النموذج واستقرار التدريب.

تقدم الجدول I الهيكل المحدد لكل نموذج، مشيرًا إلى أن كلا من نماذج LSTM وGRU تتكون من طبقتين مخفيتين مع 64 خلية عصبية لكل منهما، بينما يتبع نموذج RNN نفس الهيكل. كانت معدلات التعلم متفاوتة عبر النماذج، حيث استخدمت LSTM معدلات 0.01، 0.001، و0.0001، بينما استخدمت نماذج GRU وRNN معدلات 0.1، 0.01، 0.001، و0.0001. استخدمت جميع النماذج مُحسِّن آدم وحجم دفعة قدره 64، مما يسهل إطارًا متسقًا لتقييم فعاليتها في التنبؤ بأسعار الأسهم.

نتائج

في قسم النتائج، تم تقييم أداء ثلاثة نماذج تعلم آلي—GRU، LSTM، وRNN—لتنبؤ أسعار الأسهم باستخدام نوعين من المدخلات: بيانات الأسهم التاريخية وحدها ومزيج من البيانات التاريخية مع المؤشرات الفنية. كشفت التحليلات، التي شملت ستة أسهم كبرى، أن جميع النماذج أظهرت تحسينًا في قيم $R^2$ عند دمج المؤشرات الفنية، مما يشير إلى تعزيز القدرات التنبؤية. ومن الجدير بالذكر أن نموذج LSTM أظهر أكبر تحسن في $R^2$ عند استخدام المدخلات المجمعة، مما يشير إلى قدرته الفائقة على الاستفادة من البيانات الإضافية لتحقيق تنبؤات دقيقة.

علاوة على ذلك، حققت النماذج التي دمجت المؤشرات الفنية قيمًا أقل من متوسط الخطأ التربيعي (MSE) وجذر متوسط الخطأ التربيعي (RMSE)، مما يؤكد أن تضمين هذه المؤشرات يعزز دقة التنبؤ ويقلل من هوامش الخطأ. من بين النماذج التي تم تقييمها، أظهر نموذج LSTM مع المدخلات المجمعة باستمرار أكبر انخفاض في معدلات الخطأ مقارنة بنماذج GRU وRNN، مما يبرز فعاليته في استيعاب وتفسير المعلومات المعقدة لتوقع أسعار الأسهم.

مناقشة

في هذا القسم من المناقشة، يبرز المؤلفون تطور طرق التنبؤ بالأسهم، مع التركيز بشكل خاص على مزايا تقنيات التعلم العميق مقارنة بالنهج التقليدية. يشيرون إلى أن الهياكل مثل الذاكرة طويلة وقصيرة المدى (LSTM)، والوحدات المتكررة المغلقة (GRU)، والشبكات العصبية المتكررة (RNNs) فعالة بشكل خاص في التنبؤات الزمنية في تحليل سوق الأسهم. تم تحديد دمج المؤشرات الفنية—مثل المتوسطات المتحركة (MA)، ومؤشر القوة النسبية (RSI)، وحجم التداول المتوازن (OBV)—كتحسين حاسم للنماذج التنبؤية، حيث توفر رؤى حول زخم السوق والاتجاهات التي لا يمكن للبيانات التاريخية الخام وحدها التقاطها.

تركز الدراسة بشكل خاص على الأسهم الكبرى في بورصة إندونيسيا (IDX)، حيث تجادل بأن هذه الأسهم توفر استقرارًا أكبر وسيولة، مما يجعلها مناسبة لاختبار فعالية نماذج التعلم العميق. يقدم المؤلفون أدلة تجريبية تُظهر أن النماذج التي تدمج كل من البيانات التاريخية والمؤشرات الفنية تتفوق بشكل كبير على تلك التي تعتمد فقط على البيانات التاريخية، مع تحسينات ملحوظة في مقاييس مثل R²، ومتوسط الخطأ التربيعي (MSE)، وجذر متوسط الخطأ التربيعي (RMSE). على سبيل المثال، أظهر نموذج LSTM زيادة متوسطة في R² بنسبة 10.10% عبر ستة أسهم كبرى عند تضمين المؤشرات الفنية، مما يبرز قيمة هذه المؤشرات في تعزيز دقة التنبؤ. تشير النتائج إلى أن دمج المؤشرات الفنية لا يحسن فقط أداء النموذج ولكن أيضًا يوفر رؤى أساسية للمستثمرين والمحللين الذين يتنقلون في تعقيدات سوق الأسهم، خاصة في الأسواق الناشئة مثل إندونيسيا. يُشجع البحث المستقبلي على استكشاف تطبيقات أوسع لهذه النماذج عبر أسواق الأسهم وظروف مختلفة.

Journal: Engineering Technology & Applied Science Research, Volume: 15, Issue: 1
DOI: https://doi.org/10.48084/etasr.9850
Publication Date: 2025-02-02
Author(s): Bernadectus Yudi Dwiandiyanta et al.
Primary Topic: Stock Market Forecasting Methods

Overview

This study investigates the efficacy of deep learning models in predicting stock prices on the Indonesia Stock Exchange (IDX), particularly focusing on blue-chip companies. It addresses the limitations of existing models by integrating historical stock data with various technical indicators, such as Simple Moving Average (SMA), Exponential Moving Average (EMA), Weighted Moving Average (WMA), On-Balance Volume (OBV), and Accumulation/Distribution (AD). The research employs robust performance metrics, including $R^2$, Mean Squared Error (MSE), and Root Mean Squared Error (RMSE), to evaluate model accuracy. Notably, the Long Short-Term Memory (LSTM) model exhibited a 14.59% improvement in $R^2$ for ASII stock, while the Gated Recurrent Unit (GRU) model demonstrated a 45.16% reduction in MSE for BBCA shares, highlighting the significant impact of feature selection on prediction accuracy.

The findings underscore the importance of combining technical indicators with historical data to enhance prediction models, offering valuable tools for investors and analysts in developing trading strategies. This research fills a critical gap in the literature by applying deep learning techniques to stock markets in developing countries, an area often neglected in prior studies. While the results are promising, the study cautions against over-reliance on these models due to their limited generalizability and emphasizes the need for integration with fundamental analysis and a thorough understanding of market dynamics. Future research directions include expanding model applications across diverse market conditions and stock types, incorporating cross-validation methods for improved reliability, and exploring alternative machine learning techniques for real-time trading simulations.

Introduction

The introduction of the research paper highlights the critical role of stock price prediction in investment and finance, emphasizing its complexity and the significant implications of prediction accuracy for investors. Inaccurate forecasts can result in considerable financial losses, while precise predictions are essential for managing investment risks. The advancement of computational techniques has led to innovative methodologies aimed at enhancing the accuracy of stock market predictions, with historical data being a pivotal resource in this endeavor.

The text categorizes the factors influencing stock price movements into internal and external elements. Internal factors include company financial reports, whereas external factors encompass broader influences such as global macroeconomic conditions and political events. The reliance on historical data for forecasting is grounded in the belief that past trends can provide valuable insights into future stock behavior, underscoring the importance of these data-driven approaches in stock analysis.

Methods

In this section, the authors outline the methodologies employed in their research, emphasizing a systematic approach to model architecture and hyperparameter selection. The study utilized Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and Recurrent Neural Network (RNN) models, with configurations designed to optimize learning and prevent overfitting. Key hyperparameters, such as the number of layers, learning rates, and batch sizes, were informed by prior research and empirical testing, ensuring a balance between model complexity and training stability.

Table I presents the specific architecture for each model, indicating that both LSTM and GRU models consist of two hidden layers with 64 neurons each, while the RNN model follows the same structure. The learning rates varied across models, with LSTM using rates of 0.01, 0.001, and 0.0001, while GRU and RNN models employed rates of 0.1, 0.01, 0.001, and 0.0001. All models utilized the Adam optimizer and a batch size of 64, facilitating a consistent framework for evaluating their effectiveness in stock price prediction.

Results

In the results section, the performance of three machine learning models—GRU, LSTM, and RNN—was evaluated for stock price prediction using two types of inputs: historical stock data alone and a combination of historical data with technical indicators. The analysis, which included six blue-chip stocks, revealed that all models exhibited improved $R^2$ values when technical indicators were integrated, indicating enhanced predictive capabilities. Notably, the LSTM model demonstrated the most significant improvement in $R^2$ when utilizing combined inputs, suggesting its superior capacity to leverage additional data for accurate predictions.

Furthermore, the models that incorporated technical indicators achieved lower Mean Squared Error (MSE) and Root Mean Squared Error (RMSE) values, confirming that the inclusion of these indicators enhances prediction precision and reduces error margins. Among the models assessed, the LSTM with combined inputs consistently showed the greatest reduction in error rates compared to GRU and RNN models, highlighting its effectiveness in assimilating and interpreting complex information for stock price forecasting.

Discussion

In this discussion section, the authors highlight the evolution of stock prediction methods, particularly emphasizing the advantages of deep learning techniques over traditional approaches. They note that architectures such as Long Short-Term Memory (LSTM), Gated Recurrent Units (GRU), and Recurrent Neural Networks (RNNs) are particularly effective for time series predictions in stock market analysis. The integration of technical indicators—such as Moving Averages (MA), Relative Strength Index (RSI), and On-Balance Volume (OBV)—is identified as a critical enhancement to predictive models, providing insights into market momentum and trends that raw historical data alone cannot capture.

The study specifically focuses on blue-chip stocks on the Indonesia Stock Exchange (IDX), arguing that these stocks offer greater stability and liquidity, making them suitable for testing the efficacy of deep learning models. The authors present empirical evidence demonstrating that models incorporating both historical data and technical indicators significantly outperform those relying solely on historical data, with notable improvements in metrics such as R², Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). For instance, the LSTM model showed an average R² increase of 10.10% across six blue-chip stocks when technical indicators were included, underscoring the value of these indicators in enhancing predictive accuracy. The findings suggest that integrating technical indicators not only improves model performance but also provides essential insights for investors and analysts navigating the complexities of the stock market, particularly in emerging markets like Indonesia. Future research is encouraged to explore broader applications of these models across different stock markets and conditions.