IDEAS home Printed from https://ideas.repec.org/a/bjf/journl/v7y2022i1p16-23.html
   My bibliography  Save this article

Implementation of a Type-2 Fuzzy Logic Based Prediction System for the Nigerian Stock Exchange

Author

Listed:
  • Isobo Nelson Davies

    (Department of Computer Science, Rivers State University, Port Harcourt Nigeria)

  • Donald Ene

    (Department of Computer Science, Rivers State University, Port Harcourt Nigeria)

  • Ibiere Boma Cookey

    (Department of Computer Science, Rivers State University, Port Harcourt Nigeria)

  • Godwin Fred Lenu

    (Department of Computer Science, Rivers State University, Port Harcourt Nigeria)

Abstract

Stock Market can be easily seen as one of the most attractive places for investors, but it is also very complex in terms of making trading decisions. Predicting the market is a risky venture because of the uncertainties and non-linear nature of the market. Deciding on the right time to trade is key to every successful trader as it can lead to either a huge gain of money or totally a loss in investment that will be recorded as a careless trade. The aim of this research is to develop a prediction system for stock market using Fuzzy Logic Type-2 which will handle these uncertainties and complexities of human behaviour in general when it comes to buy/hold/sell decision making in stock trading. The proposed system was developed using VB.NET programming language as frontend (interfaces) and Microsoft SQL Server as backend (database).A total of four different technical indicators were selected for this research. The selected indicators are the Relative Strength Index (RSI), William Average (WA), Moving Average Convergence/Divergence (MACD), and Stochastic Oscillator (SO).These indicators serve as input variable to the Fuzzy System. The MACD and SO are deployed as primary indicators, while the RSI and WA are used as secondary indicators. Fibonacci retracement ratio (Tuning Factor) was adopted for the secondary indicators to determine their support and resistance level in terms of making trading decisions. The input variables to the Fuzzy System is fuzzified to “Low†, “Medium†, and “High†using the Triangular and Gaussian Membership Function. The Mamdani Type Fuzzy Inference rules were used for combining the trading rules for each input variable to the fuzzy system. The developed system was tested using sample data collected from ten different companies listed on the Nigerian Stock Exchange (NSE) for a total of fifty-two periods. The dataset collected are Opening, High, Low, and Closing prices of each security. These datasets were used for calculating the technical indicators and also for evaluating the performance of the system. The developed system outperformed other existing system and therefore the output can be used to draw inference in terms of making buy/hold/sell trading decisions.

Suggested Citation

  • Isobo Nelson Davies & Donald Ene & Ibiere Boma Cookey & Godwin Fred Lenu, 2022. "Implementation of a Type-2 Fuzzy Logic Based Prediction System for the Nigerian Stock Exchange," International Journal of Research and Innovation in Applied Science, International Journal of Research and Innovation in Applied Science (IJRIAS), vol. 7(1), pages 16-23, January.
  • Handle: RePEc:bjf:journl:v:7:y:2022:i:1:p:16-23
    as

    Download full text from publisher

    File URL: https://www.rsisinternational.org/journals/ijrias/digital-library/volume-7-issue-1/16-23.pdf
    Download Restriction: no

    File URL: https://www.rsisinternational.org/virtual-library/papers/implementation-of-a-type-2-fuzzy-logic-based-prediction-system-for-the-nigerian-stock-exchange/?utm_source=Netcore&utm_medium=Email&utm_content=sscollections25oct&utm_campaign=First&_gl=1*1qim6hr*_gcl_au*Nzg3MDc3MjYxLjE3MDIwMTAzMzE.*_ga*MTA1MTkzODcwMi4xNjk0MTkxNTI0*_ga_J3C1TKKSZ0*MTcwODA2MjgxMC4yNDguMS4xNzA4MDYzMTcyLjMwLjAuMA..&_ga=2.173266659.1939239374.1707887915-1051938702.1694191524
    Download Restriction: no
    ---><---

    More about this item

    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:bjf:journl:v:7:y:2022:i:1:p:16-23. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Dr. Renu Malsaria (email available below). General contact details of provider: https://rsisinternational.org/journals/ijrias/ .

    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.