IDEAS home Printed from https://ideas.repec.org/a/epw/ejece0/v3y2019i2id19065.html

Predicting Nigerian Stock Returns using Technical Analysis and Machine Learning

Author

Listed:
  • D. O. Oyewola
  • Emmanuel Gbenga Gbenga Dada
  • Omole Ezekiel Olaoluwa
  • K.A. Al-Mustapha

Abstract

Models of stock price prediction have customarily utilized technical indicators alone to produce trading signals. In this paper, we construct trading techniques by applying machine-learning methods to technical analysis indicators and stock market returns data. The resulting prediction models can be utilized as an artificial trader used to trade on any given stock trade. Here the issue of stock trading decision prediction is enunciated as a classification problem with two class values representing the buy and sell signals. The stacking technique utilized in this paper is to assist trader with applying the proposed algorithms in their trading using random forest which was staked with different algorithms which incorporates Logistic Regression (LR), Random Forest (RF), Support Vector Machine (SVM) and Neural Network (NN). The experimental results indicated that Top Layer of Random Forest (TRF) produced the best performance among all the algorithms compared. This is an indication that it is a promising strategy for forecasting Nigerian stock returns.

Suggested Citation

  • D. O. Oyewola & Emmanuel Gbenga Gbenga Dada & Omole Ezekiel Olaoluwa & K.A. Al-Mustapha, 2019. "Predicting Nigerian Stock Returns using Technical Analysis and Machine Learning," European Journal of Electrical Engineering and Computer Science, European Open Science, vol. 3(2), March.
  • Handle: RePEc:epw:ejece0:v:3:y:2019:i:2:id:19065
    DOI: 10.24018/ejece.2019.3.2.65
    as

    Download full text from publisher

    File URL: https://eu-opensci.org/index.php/ejece/article/view/19065
    File Function: Abstract page
    Download Restriction: no

    File URL: https://eu-opensci.org/index.php/ejece/article/download/19065/11028
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.24018/ejece.2019.3.2.65?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Amin Hedayati & Moein Hedayati & Morteza Esfandyari, 2016. "Stock market index prediction using artificial neural network," Journal of Economics, Finance and Administrative Science, Universidad ESAN, vol. 21(41), pages 89-93.
    2. Johnson, Neil F. & Jefferies, Paul & Hui, Pak Ming, 2003. "Financial Market Complexity," OUP Catalogue, Oxford University Press, number 9780198526650.
    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. Tobias Galla & David Sherrington, 2005. "Stationary states of a spherical Minority Game with ergodicity breaking," Papers cond-mat/0508413, arXiv.org, revised Aug 2005.
    2. Jessie Sun, 2019. "A Stock Selection Method Based on Earning Yield Forecast Using Sequence Prediction Models," Papers 1905.04842, arXiv.org.
    3. Caporale, Guglielmo Maria & Gil-Alana, Luis Alberiko & Poza, Carlos, 2022. "The COVID-19 pandemic and the degree of persistence of US stock prices and bond yields," The Quarterly Review of Economics and Finance, Elsevier, vol. 86(C), pages 118-123.
    4. Jeonghwa Cha & Kyungbo Park & Hangook Kim & Jongyi Hong, 2023. "Crisis Index Prediction Based on Momentum Theory and Earnings Downside Risk Theory: Focusing on South Korea’s Energy Industry," Energies, MDPI, vol. 16(5), pages 1-20, February.
    5. Lim, Gyuchang & Kim, SooYong & Kim, Junghwan & Kim, Pyungsoo & Kang, Yoonjong & Park, Sanghoon & Park, Inho & Park, Sang-Bum & Kim, Kyungsik, 2009. "Structure of a financial cross-correlation matrix under attack," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 388(18), pages 3851-3858.
    6. Göncü, Ahmet & Kuzubaş, Tolga U. & Saltoğlu, Burak, 2024. "Predicting oil prices: A comparative analysis of machine learning and image recognition algorithms for trend prediction," Finance Research Letters, Elsevier, vol. 67(PB).
    7. V. Alfi & L. Pietronero & A. Zaccaria, 2008. "Minimal Agent Based Model For The Origin And Self-Organization Of Stylized Facts In Financial Markets," Papers 0807.1888, arXiv.org.
    8. Campos, Daniel & Llebot, Josep E. & Méndez, Vicenç, 2008. "Limited resources and evolutionary learning may help to understand the mistimed reproduction in birds caused by climate change," Theoretical Population Biology, Elsevier, vol. 74(1), pages 16-21.
    9. Gou, Chengling & Guo, Xiaoqian & Chen, Fang, 2008. "Study on system dynamics of evolutionary mix-game models," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 387(25), pages 6353-6359.
    10. Janusz Gajda & Rafał Walasek, 2020. "Fractional differentiation and its use in machine learning," Working Papers 2020-32, Faculty of Economic Sciences, University of Warsaw.
    11. Mello, Bernardo A. & Cajueiro, Daniel O., 2008. "Minority games, diversity, cooperativity and the concept of intelligence," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 387(2), pages 557-566.
    12. Pištěk, Miroslav & Slanina, František, 2011. "Diversity of scales makes an advantage: The case of the Minority Game," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 390(13), pages 2549-2561.
    13. Li, Da-Ye & Nishimura, Yusaku & Men, Ming, 2014. "Fractal markets: Liquidity and investors on different time horizons," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 407(C), pages 144-151.
    14. Karpio, Krzysztof & Załuska–Kotur, Magdalena A. & Orłowski, Arkadiusz, 2007. "Gain–loss asymmetry for emerging stock markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 375(2), pages 599-604.
    15. Zeng, Qing & Lu, Xinjie & Xu, Jin & Lin, Yu, 2024. "Macro-Driven Stock Market Volatility Prediction: Insights from a New Hybrid Machine Learning Approach," International Review of Financial Analysis, Elsevier, vol. 96(PB).
    16. Moews, Ben & Ibikunle, Gbenga, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 547(C).
    17. Ferreira, Fernando F. & de Oliveira, Viviane M. & Crepaldi, Antônio F. & Campos, Paulo R.A., 2005. "Agent-based model with heterogeneous fundamental prices," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 357(3), pages 534-542.
    18. Priyank Sonkiya & Vikas Bajpai & Anukriti Bansal, 2021. "Stock price prediction using BERT and GAN," Papers 2107.09055, arXiv.org.
    19. Oldham, Matthew, 2020. "Quantifying the concerns of Dimon and Buffett with data and computation," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    20. Ted Theodosopoulos, 2004. "Uncertainty relations in models of market microstructure," Papers math/0409076, arXiv.org, revised Feb 2005.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    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:epw:ejece0:v:3:y:2019:i:2:id:19065. 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: support (email available below). General contact details of provider: https://eu-opensci.org/index.php/ejece .

    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.