IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i2p174-d1313917.html
   My bibliography  Save this article

Mechanisms of Stock Selection and Its Capital Weighing in the Portfolio Design Based on the MACD-K-Means-Mean-VaR Model

Author

Listed:
  • Sukono

    (Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Jatinangor, Sumedang 45363, Indonesia)

  • Dedi Rosadi

    (Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Gadjah Mada, North Sekip, Yogyakarta 55281, Indonesia)

  • Di Asih I Maruddani

    (Department of Statistics, Faculty of Sciences and Mathematics, Universitas Diponegoro, Tembalang, Semarang 50275, Indonesia)

  • Riza Andrian Ibrahim

    (Doctoral Program of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Jatinangor, Sumedang 45363, Indonesia)

  • Muhamad Deni Johansyah

    (Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Jatinangor, Sumedang 45363, Indonesia)

Abstract

When designing a stock portfolio, investors must select stocks with different characteristics and increasing price trends and weigh each capital. Both are fundamental to diversifying loss and profit. Therefore, the mechanisms that accommodate both are needed. Based on this, this research aims to design a stock selection and capital weighing mechanism using the MACD-K-means-Mean-VaR model. The moving average convergence–divergence (MACD) is used to analyze stock buying time, providing trend, momentum, and potential price reversal insights. Then, stocks with increasing price trends are clustered using K-means, a grouping simple pattern data method based on specific characteristics. The best stocks from each cluster are capital weighted using the mean value at risk (mean-VaR), a portfolio optimization model adjusting loss possibility to the investor’s acceptance tolerance. The mechanism is then applied to Indonesia’s 100 stock index data to analyze variable sensitivities and compare it with another model. The application reveals that all variables significantly impact portfolio return mean and VaR, suggesting the need for clustering and analyzing stock price movements in stock portfolio design. This research academically develops a portfolio design mechanism by clustering stocks and analyzing price movement trends. It enables investors to practically diversify and choose stocks with increasing price trends, reducing losses and increasing profit opportunities.

Suggested Citation

  • Sukono & Dedi Rosadi & Di Asih I Maruddani & Riza Andrian Ibrahim & Muhamad Deni Johansyah, 2024. "Mechanisms of Stock Selection and Its Capital Weighing in the Portfolio Design Based on the MACD-K-Means-Mean-VaR Model," Mathematics, MDPI, vol. 12(2), pages 1-22, January.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:2:p:174-:d:1313917
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/2/174/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/2/174/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jian Wang & Junseok Kim, 2018. "Predicting Stock Price Trend Using MACD Optimized by Historical Volatility," Mathematical Problems in Engineering, Hindawi, vol. 2018, pages 1-12, December.
    2. Riza Andrian Ibrahim & Sukono & Herlina Napitupulu & Rose Irnawaty Ibrahim, 2023. "How to Price Catastrophe Bonds for Sustainable Earthquake Funding? A Systematic Review of the Pricing Framework," Sustainability, MDPI, vol. 15(9), pages 1-19, May.
    3. Terence Tai-Leung Chong & Wing-Kam Ng, 2008. "Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30," Applied Economics Letters, Taylor & Francis Journals, vol. 15(14), pages 1111-1114.
    4. Martin R. Young, 1998. "A Minimax Portfolio Selection Rule with Linear Programming Solution," Management Science, INFORMS, vol. 44(5), pages 673-683, May.
    5. Tomas Björk & Agatha Murgoci & Xun Yu Zhou, 2014. "Mean–Variance Portfolio Optimization With State-Dependent Risk Aversion," Mathematical Finance, Wiley Blackwell, vol. 24(1), pages 1-24, January.
    6. Chan, Kalok & Hameed, Allaudeen, 2006. "Stock price synchronicity and analyst coverage in emerging markets," Journal of Financial Economics, Elsevier, vol. 80(1), pages 115-147, April.
    7. Nicolo Musmeci & Tomaso Aste & Tiziana Di Matteo, 2014. "Relation between Financial Market Structure and the Real Economy: Comparison between Clustering Methods," Papers 1406.0496, arXiv.org, revised Jan 2015.
    8. William F. Sharpe, 1963. "A Simplified Model for Portfolio Analysis," Management Science, INFORMS, vol. 9(2), pages 277-293, January.
    9. Robert Tibshirani & Guenther Walther & Trevor Hastie, 2001. "Estimating the number of clusters in a data set via the gap statistic," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 63(2), pages 411-423.
    10. Sharpe, William F., 1971. "A Linear Programming Approximation for the General Portfolio Analysis Problem," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 6(5), pages 1263-1275, December.
    11. Vladimir Rankovic & Mikica Drenovak & Branko Uroševic & Ranko Jelic, 2016. "Mean Univariate-GARCH VaR Portfolio Optimization: Actual Portfolio Approach," CESifo Working Paper Series 5731, CESifo.
    12. Golosnoy, Vasyl & Okhrin, Yarema, 2009. "Flexible shrinkage in portfolio selection," Journal of Economic Dynamics and Control, Elsevier, vol. 33(2), pages 317-328, February.
    13. Tola, Vincenzo & Lillo, Fabrizio & Gallegati, Mauro & Mantegna, Rosario N., 2008. "Cluster analysis for portfolio optimization," Journal of Economic Dynamics and Control, Elsevier, vol. 32(1), pages 235-258, January.
    14. Nicoló Musmeci & Tomaso Aste & T Di Matteo, 2015. "Relation between Financial Market Structure and the Real Economy: Comparison between Clustering Methods," PLOS ONE, Public Library of Science, vol. 10(3), pages 1-24, March.
    15. Li, Xiaoyue & Uysal, A. Sinem & Mulvey, John M., 2022. "Multi-period portfolio optimization using model predictive control with mean-variance and risk parity frameworks," European Journal of Operational Research, Elsevier, vol. 299(3), pages 1158-1176.
    16. Titi Purwandari & Riaman & Yuyun Hidayat & Sukono & Riza Andrian Ibrahim & Rizki Apriva Hidayana, 2023. "Selecting and Weighting Mechanisms in Stock Portfolio Design Based on Clustering Algorithm and Price Movement Analysis," Mathematics, MDPI, vol. 11(19), pages 1-22, October.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Titi Purwandari & Riaman & Yuyun Hidayat & Sukono & Riza Andrian Ibrahim & Rizki Apriva Hidayana, 2023. "Selecting and Weighting Mechanisms in Stock Portfolio Design Based on Clustering Algorithm and Price Movement Analysis," Mathematics, MDPI, vol. 11(19), pages 1-22, October.
    2. M. Raddant & T. Di Matteo, 2023. "A look at financial dependencies by means of econophysics and financial economics," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 18(4), pages 701-734, October.
    3. Bajeux-Besnainou, Isabelle & Bandara, Wachindra & Bura, Efstathia, 2012. "A Krylov subspace approach to large portfolio optimization," Journal of Economic Dynamics and Control, Elsevier, vol. 36(11), pages 1688-1699.
    4. Polak, George G. & Rogers, David F. & Sweeney, Dennis J., 2010. "Risk management strategies via minimax portfolio optimization," European Journal of Operational Research, Elsevier, vol. 207(1), pages 409-419, November.
    5. Nicol'o Musmeci & Tomaso Aste & Tiziana Di Matteo, 2016. "What does past correlation structure tell us about the future? An answer from network filtering," Papers 1605.08908, arXiv.org.
    6. Gautier Marti & Frank Nielsen & Miko{l}aj Bi'nkowski & Philippe Donnat, 2017. "A review of two decades of correlations, hierarchies, networks and clustering in financial markets," Papers 1703.00485, arXiv.org, revised Nov 2020.
    7. Esmalifalak, Hamidreza, 2022. "Euclidean (dis)similarity in financial network analysis," Global Finance Journal, Elsevier, vol. 53(C).
    8. Chen, James Ming & Rehman, Mobeen Ur & Vo, Xuan Vinh, 2021. "Clustering commodity markets in space and time: Clarifying returns, volatility, and trading regimes through unsupervised machine learning," Resources Policy, Elsevier, vol. 73(C).
    9. Bao, Te & Diks, Cees & Li, Hao, 2018. "A generalized CAPM model with asymmetric power distributed errors with an application to portfolio construction," Economic Modelling, Elsevier, vol. 68(C), pages 611-621.
    10. Nava, Noemi & Di Matteo, T. & Aste, Tomaso, 2018. "Dynamic correlations at different time-scales with empirical mode decomposition," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 502(C), pages 534-544.
    11. Tania Morris & Jules Comeau, 2020. "Portfolio creation using artificial neural networks and classification probabilities: a Canadian study," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 34(2), pages 133-163, June.
    12. Panos Xidonas & Christis Hassapis & George Mavrotas & Christos Staikouras & Constantin Zopounidis, 2018. "Multiobjective portfolio optimization: bridging mathematical theory with asset management practice," Annals of Operations Research, Springer, vol. 267(1), pages 585-606, August.
    13. Fang, Yong & Chen, Lihua & Fukushima, Masao, 2008. "A mixed R&D projects and securities portfolio selection model," European Journal of Operational Research, Elsevier, vol. 185(2), pages 700-715, March.
    14. Thi Thu Giang Nguyen & Robert Ślepaczuk, 2022. "The efficiency of various types of input layers of LSTM model in investment strategies on S&P500 index," Working Papers 2022-29, Faculty of Economic Sciences, University of Warsaw.
    15. Yong Tang & Jason Jie Xiong & Zi-Yang Jia & Yi-Cheng Zhang, 2018. "Complexities in Financial Network Topological Dynamics: Modeling of Emerging and Developed Stock Markets," Complexity, Hindawi, vol. 2018, pages 1-31, November.
    16. Nicol'o Musmeci & Tomaso Aste & Tiziana Di Matteo, 2014. "Risk diversification: a study of persistence with a filtered correlation-network approach," Papers 1410.5621, arXiv.org.
    17. Arenas Parra, M. & Bilbao Terol, A. & Rodriguez Uria, M. V., 2001. "A fuzzy goal programming approach to portfolio selection," European Journal of Operational Research, Elsevier, vol. 133(2), pages 287-297, January.
    18. Gloria Polinesi & Maria Cristina Recchioni, 2021. "Filtered clustering for exchange traded fund," RIEDS - Rivista Italiana di Economia, Demografia e Statistica - The Italian Journal of Economic, Demographic and Statistical Studies, SIEDS Societa' Italiana di Economia Demografia e Statistica, vol. 75(1), pages 125-135, January-M.
    19. Anshul Verma & Orazio Angelini & Tiziana Di Matteo, 2019. "A new set of cluster driven composite development indicators," Papers 1911.11226, arXiv.org, revised Mar 2020.
    20. Yuanyao Ding, 2006. "Portfolio Selection under Maximum Minimum Criterion," Quality & Quantity: International Journal of Methodology, Springer, vol. 40(3), pages 457-468, June.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:2:p:174-:d:1313917. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.