IDX30 Stock Portfolio Optimization Using Genetic Algorithm Based on Capital Asset Pricing Model
Abstract
The stock market plays a vital role in supporting economic growth by serving as a primary channel for companies to raise capital and for investors to gain profits through long-term investments. In practice, one of the biggest challenges for investors is identifying which stocks are worth purchasing and how to allocate their funds optimally. One commonly used approach to evaluate stock feasibility is the Capital Asset Pricing Model (CAPM), which helps identify undervalued and overvalued stocks based on the relationship between systematic risk and expected return. Additionally, it is necessary to determine the optimal investment weight allocation. Therefore, this study combines the CAPM method for stock selection and Genetic Algorithm, a metaheuristic approach capable of finding optimal solutions in complex problems, to determine the optimal portfolio weight composition. The object of this study includes stocks listed in the IDX30 index during the period from February 2021 to November 2023. The results show that five stocks—ADRO, BBCA, BBNI, KLBF, and TLKM—are classified as undervalued according to the CAPM method and are recommended for inclusion in the optimal portfolio. Portfolio optimization using the Genetic Algorithm results in the following stock weight composition: ADRO 26.55%, BBCA 36.20%, BBNI 9.09%, KLBF 12.20%, and TLKM 15.96%, with a Sharpe Ratio of 4.043906. The expected return and risk of the optimal portfolio are 0.00067373 and 0.00012407, respectively.
Keywords
Portfolio Optimization, IDX30, Genetic Algorithm, CAPM
Full Text:
PDFDOI: https://doi.org/10.46336/ijqrm.v6i2.981
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 Nayra Pavita Rahmadhisa, Dwi Susanti, Betty Subartini

This work is licensed under a Creative Commons Attribution 4.0 International License.
Published By:
IJQRM: Jalan Riung Ampuh No. 3, Riung Bandung, Kota Bandung 40295, Jawa Barat, Indonesia
IJQRM Indexed By:
Creation is distributed below Lisensi Creative Commons Atribusi 4.0 Internasional.