Implementasi Trading Strategy pada Saham Sektor Energi dengan Support Vector Machine dan Indikator Teknikal

Giovanka Steviano Harry Premono, Nugroho Agus Haryono, Yuan Lukito

Abstract


The energy sector in the Indonesian capital market is characterized by high volatility, which is sensitive to external factors. This sensitivity leads to complexity in investment decision-making and trader emotional bias. This study employs a Support Vector Machine (SVM)-based trading strategy that incorporates technical indicators, such as Bollinger Bands, the Stochastic Oscillator, On-Balance Volume, and the Average Directional Index, to generate objective transaction signals for 14 energy sector stocks. Historical data from 2015 to 2025 was used, and three kernel types (RBF, polynomial, and sigmoid) were optimized through grid search. The evaluation used classification metrics and backtesting with an initial capital of Rp 100 million. The results showed F1 scores ranging from 35.83% to 47.86%. DEWA achieved the best performance with an accuracy of 66.67% and an F1 score of 47.86%. Backtesting yielded positive returns for 71.4% of stocks, with an average return of 26.85%. RAJA achieved optimal performance, with a 158.97% return and a Sharpe ratio of 1.48, outperforming the buy-and-hold strategy by 37.47%. The main advantage lies in superior risk management, with an average drawdown of -10.64%, compared to the buy-and-hold strategy -48.91%. This results in a 76.1% reduction in risk. The SVM strategy proved effective for low-risk tolerance investors but underperforms during periods of extreme bullish momentum.

Keywords


Backtesting, Energy Sector, Support Vector Machine, Technical Indicator, Trading Strategy

Full Text:

References


D. Hakim and Y. Sudaryo, Manajemen Investasi dan Teori Portofolio. Yogyakarta: Penerbit Andi, 2022.

Anggita Wigiasti, Made Irma Lestari, and Hidayatullah, “The Impact of Oil-Gas and Agriculture Exports on Energy and Consumer Non-Cyclical Sector Stock Prices in Indonesia: A Case Study of the Russia-Ukraine War,” International Journal of Business, Humanities, Education and Social Sciences (IJBHES), vol. 7, no. 1, pp. 81–91, Jun. 2025, doi: 10.46923/ijbhes.v7i1.472.

E. Endri, M. Rinaldi, D. A. Ian, B. Saing, and A. Aminudin, “Oil price and stock return: Evidence of mining companies in Indonesia,” International Journal of Energy Economics and Policy, vol. 11, no. 2, pp. 110–114, 2021, doi: 10.32479/ijeep.10608.

F. Adhani and R. Nurazi, “Effects of Energy Price Fluctuations on Stock Return of Energy Companies in Indonesia: The Effect of Macroeconomic Variables and Subsidy Policy,” JASa (Jurnal Akuntansi, Audit dan Sistem Informasi Akuntansi), vol. 9, no. 2, pp. 436–447, Aug. 2025, doi: 10.36555/jasa.v9i2.2904.

T. Kusmini and B. Wibowo, “Analysis of The Volatility and Asymmetric Stocks Information in The Energy Sector on The Indonesia Stock Exchange 2021-2024,” Eduvest - Journal of Universal Studies, vol. 5, no. 10, pp. 12805–12818, Oct. 2025, doi: 10.59188/eduvest.v5i10.51300.

M. A. Pratama and K. Kamaludin, “Analysis Of The Use Of Technical Indicators And Trendlines In Maximizing Stock Investment Profits In The Capital Market Indonesia,” The Manager Review, vol. 7, no. 1, pp. 23–30, Mar. 2025, doi: 10.33369/tmr.v7i1.41291.

M. S. Hasibuan and A. Serdano, “Analisis Sentimen Kebijakan Pembelajaran Tatap Muka Menggunakan Support Vector Machine dan Naive Bayes,” JRST (Jurnal Riset Sains dan Teknologi), vol. 6, no. 2, p. 199, Nov. 2022, doi: 10.30595/jrst.v6i2.15145.

D. A. Chalid and V. R. Cokrodiharjo, “Peramalan Harga Saham Menggunakan Metode Support Vector Machine (SVM),” Jurnal Pasar Modal dan Bisnis, vol. 3, no. 1, pp. 61–74, Feb. 2021, doi: 10.37194/jpmb.v3i1.59.

D. E. Waluyo, H. W. Kinasih, C. Paramita, D. Pergiwati, R. Nohan, and F. A. Rafrastara, “Komparasi dan Implementasi Algoritma Regresi Machine Learning untuk Prediksi Indeks Harga Saham Gabungan,” Jurnal Informatika: Jurnal Pengembangan IT, vol. 9, no. 1, pp. 12–17, Feb. 2024, doi: 10.30591/jpit.v9i1.6105.

I. M. A. I. Agusta, A. Barakbah, and A. Fariza, “Technical Analysis Based Automatic Trading Prediction System for Stock Exchange using Support Vector Machine,” EMITTER International Journal of Engineering Technology, pp. 279–293, Dec. 2022, doi: 10.24003/emitter.v10i2.740.

D. A. Daniswara, H. Widjanarko, and K. Hikmah, “THE ACCURACY TEST OF TECHNICAL ANALYSIS OF MOVING AVERAGE, BOLLINGER BANDS, AND RELATIVE STRENGTH INDEX ON STOCK PRICES OF COMPANIES LISTED IN INDEX LQ45,” Indikator: Jurnal Ilmiah Manajemen dan Bisnis, vol. 6, no. 2, p. 16, Apr. 2022, doi: 10.22441/indikator.v6i2.14806.

A. A. P. Santos and H. S. Torrent, “Markowitz meets technical analysis: Building optimal portfolios by exploiting information in trend-following signals,” Financ. Res. Lett., vol. 49, p. 103063, Oct. 2022, doi: 10.1016/j.frl.2022.103063.

E. A. Nida, “Analisis Kinerja Algoritma Support Vector Machine (SVM) Guna Pengambilan Keputusan Beli/Jual Pada Saham PT Elnusa Tbk. (ELSA),” Jurnal Transformatika, vol. 17, no. 2, pp. 160–170, Jan. 2020, doi: 10.26623/transformatika.v17i2.1649.

B. D. Fadillah and N. Hendrastuty, “Prediksi Stok Barang di Toko Eko Helm Menggunakan Metode Time series Analysis,” Jurnal Informatika: Jurnal Pengembangan IT, vol. 10, no. 2, pp. 278–291, Apr. 2025, doi: 10.30591/jpit.v10i2.8584.

Stefan. Jansen, Machine learning for algorithmic trading : predictive models to extract signals from market and alternative data for systematic trading strategies with Python. Packt Publishing, 2020.

I. Gurrib, F. Kamalov, O. Starkova, A. Makki, A. Mirchandani, and N. Gupta, “Performance of Equity Investments in Sustainable Environmental Markets,” Sustainability, vol. 15, no. 9, p. 7453, May 2023, doi: 10.3390/su15097453.

M. F. Amin, “Confusion Matrix in Binary Classification Problems: A Step-by-Step Tutorial,” Journal of Engineering Research, vol. 6, no. 5, pp. 0–0, Dec. 2022, doi: 10.21608/erjeng.2022.274526.

H. Arian, D. Norouzi Mobarekeh, and L. Seco, “Backtest overfitting in the machine learning era: A comparison of out-of-sample testing methods in a synthetic controlled environment,” Knowl. Based. Syst., vol. 305, p. 112477, Dec. 2024, doi: 10.1016/j.knosys.2024.112477.

S. Sun, R. Wang, and B. An, “Reinforcement Learning for Quantitative Trading,” ACM Trans. Intell. Syst. Technol., vol. 14, no. 3, pp. 1–29, Jun. 2023, doi: 10.1145/3582560.




DOI: https://doi.org/10.30591/jpit.v11i2.10379

Refbacks

  • There are currently no refbacks.


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

JPIT INDEXED BY

  
  

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