Open Journal of Business and Management
Vol.06 No.03(2018), Article ID:85435,19 pages

Combination Method between Fuzzy Logic and Neural Network Models to Predict Amman Stock Exchange

Mohammad M. Alalaya1, Hani A. Al Rawashdeh2, Ahmad Alkhateb3

1Economics and Quantitative Methods, College of Administrative and Economics, Al-Hussein Bin Talal University, Ma’an, Jordan

2Mechanical Engineering Department, Engineering Faculty, College of Administrative and Economics, Al-Hussein Bin Talal University, Ma’an, Jordan

3Accounting Department, College of Administrative and Economics, Al-Hussein Bin Talal University, Ma’an, Jordan

Copyright © 2018 by authors and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).

Received: January 26, 2018; Accepted: June 19, 2018; Published: June 22, 2018


The purpose of this paper is to consider the potential in the projection of Fuzzy logic and Neural networks, also to make some combination between models to address implementation issues in the prediction of index and prices for Amman stock exchange in different models, where the previous researchers have to demonstrate the differences between these measures. We have used in this research Amman stock Exchange index prices data as a sample set to compare the different application models, where predicting the stock market was very difficult since it depends on nonstationary financial data, in addition to the most of the models are nonlinear systems. These papers draw an existing academic and practitioner in literature review as a combination of these models and compare them, the facilities of the development of conceptual methods and the research proposition are the basis for serving this combination. Hence, the present and recent papers can serve the further researchers into addressing contemporary barriers in the direction of these researchers. The authors show in this paper the Fuzzy logic and Neural networks, in addition to time series analysis through these models, utilized of RSI, OS, MACD, and OBV, then using MSE, MAPE, and RMSE. The research implication represents of too much data for the period of study, also this paper is conceptual in its nature, the paper highlights in finding that the implementation challenges, and how these challenges can facilitate the trader decision in the stock market. The results of the analysis show that the ANFIS is the better model to achieve prediction of stock market more than others. When are MAPE and RMSE the best more than simulating the errors in other methods? Also the fuzzy-neural models as the results of table show that more prominent in fuzzy-neural models ,while it appears that in MSE as medium, MAD posses less amount than other models in all table testing fuzzy-neural models, therefore, it becomes superior in stock prediction.


MAPE, MACD, Fuzzy Logic, Neural Network, Time Series, ASE, Wavelet ANFIS

1. Introduction

1.1. Objectives of the Study

The purpose of this study has been proposed to find the extent which is the hybrids of the different technologies, which have been used to develop market forecast and trading rule, and implement these technologies in prediction of stock markets, in our paper we combine methods to have the accuracy prediction, and we have utilized from this method to predict Amman Stock Exchange index and trading volume, based on these methods and compare the outputs of these different models results in order to leverage the best result model, to be used in forecasting in future, as important tools, hence, to learn capabilities of Fuzzy modeling which has required big computational effort, to improve the prediction process efficiency, where subtractive clustering algorithm is used to have the computational advantages, but in this paper, we are searching this method, the Fuzzy rules are formally using, and stamp the work.

1.2. Problem Statement and Limitations

The stock market is important for trader and companies in both long-term and short-run investments due to its attractiveness for profit making. For the trader, it provides a good place for profit-making, but it is very risky, therefore, their decision is critical, and must be taken correctly and at the right time, hence, the experience shows that high profits are in other hand which is very risky implication, which should be filtered in order to have good financial decision, thus this process needs to develop models where traders can identify and state one of these in use. So far, this paper proposes to have simple inference indicator models, to simplify the complicity to the stock market environment, therefore, the paper takes account of this field Fuzzy Logic and dual time series to perform among the compression good decisions in trading the stock assets.

In this paper, Section one includes the objectives of this research, and introduction to the subject of study, while Section two discusses the literature review concepts related to Fuzzy, such as Fuzzy time series, and dual time series, causality in the stock market and the equivalent ANFIs structure as a brief notes. Section three introduced the data and methodology. Section IV includes the models of the study, while Section five represents the implementation results of the combination techniques which used in this paper, and the empirical results. Section six is concluded the results of the study and gives a brief conclusion in order to simplify the computations of fuzzy time series.

2. Literature Review

2.1. Recent Studies

According to its high profits, stock market expected returns, where the trading process in this field is very risky, due to the decision which related to process in stock trading, it is an important process and very critical, because it must be a decision should be in a correct and on the right time. Therefore from the recent investment experience showed that the higher risk accompanied with higher expected returns [1].

Many models have been used in recent studies, and some of them have been developed over the years, in order to understand, also to have the accurate prediction of the stock market, some of them belong to the stochastic models; such as Garch, Arch, and volatility models [2]. Also many various artificial intelligence techniques as the models which used by [3], another researcher as [4], have environment, their study based on inputs from technical analysis [5], employed in his research an exchange rate forecasting model, depends on wavelet transform time series analysis to predict the stock market, it seems that Chan. T on his study based on multi scale wavelet decomposition to provide the application of Fuzzy models [6]compare in this study the results of his analysis by the application of the Neural network, Garch-m model, E-Garch model.

Fuzzy logic model is derived from Fuzzy set theory and the main purpose aims of how to deal with imprecise information which provides a mechanism for the decision system, and this model manipulating imprecise concepts for the analyzed process. The network will produce three cases of outputs; buy, or sell a stock or keep. This based on the information which serves the indicator. The Fuzzy set theory was introduced by [7][8], when the questions cannot be solved by the two-valued logic of traditional set theory, therefore it differs from the traditional theory. The solution can be reached by using membership function in Fuzzy logic, the Fuzzy set theory has been used in many fields as a control theory, decision analysis, artificial intelligence, management, and economics.

The Fuzzy set used to capture uncertainty and vagueness work in our day to day ventures, Where time-series models have utilized the Fuzzy set theory to solve various domain forecasting problems, therefore in this study we utilized of the Fuzzy dual-factor time series to forecasting ASE index returns as a part of this paper, also the future trading volume as a determinant of prices in different momentum phases.

Again, back to a Fuzzy logic system which is subjective and depends on heuristic processes .and the choices of membership functions, which have to be developed heuristically, and the results of this process is fixed and still depends on trial and error. In addition to that, the process cannot be yield the best forecast. ( [9][10]), saw that much Fuzzy logic and genetic algorithms significantly improve the analysis methods; they built their opinion according to these technologies are for the most part complementary and synergistic, in the same time that they are complementary, follows from the observations and use neural networks for market forecasting, and used for curve fitting. Were Fuzzy-logic deals with imprecision and uncertainty, and genetic algorithms are used to reach the optimization, many numerous facts about Fuzzy logic and market forecasting and trading rules with applications, and merging the technologies which allow for exploitation for tolerance for imprecision , the partial truth is to achieve tractability, low solution cost, and robustness.

[11]applied the neuro-Fuzzy model to predict future values of the largest government-owned bank, he used the profitability ratios (R.O.A. R.O.E, and P. E, with the closing prices for the current prior three months. then he compared the output of the model of Fuzzy logic with basic back propagation algorithm. He concluded that the neuro-Fuzzy model was able to recognize the general characteristics of the stock market better than the back propagation algorithm [12], utilized of neural network modified to predict the stock price index, the method used aimed to use globally searched future dieselization to reduce the dimensionally of future space, mitigate the limitations gradient descent, and illuminates irrelevant factors.

Neural network used by [13], their paper aimed to predict Istanbul stock exchange market index value, in their method they have investigated the index by different methods of neural network, in their study they have shown that preference of neural network, and finally that this model can let one ahead in forecasting stock prices. Stock market prediction models usually belong to two categories. Fundamentals annual analysis involves global economic conditions, such as budget, company information, conditions as environments around the stock market, where technical analysis involves technical indicators like William-R%, MACD, RSI, The stock status can be classified by fuzzy logic, neural network, and SVM.

Many methods can be used to predict stock exchange index or prices, [14]decided that neural network has emerged as one of these tools to predict the market, the aim of this is critical to analyze the alternative tools which are based on the neural network. This can be fluctuation to the investor belief, where the stock indices are chaotic in its nature. The stock market index represents the directional movement of the economy, and to predict stock indices, this process requires ample information about the nitty-gritty of the market happing.

[15]has decided on his research that many findings are of an on-going project, he used neural network modeling and learning techniques to search for and decode non-linear regularities in asset price movements. Where [16], Used Markov models approach to forecast the financial market; these models are used to recognize the pattern of a dynamic financial system.

[17]has in their research a new methodology with moving average autoregressive exogenous (ARX) to create an automatic stock market forecasting and portfolio selection mechanism.

2.2. Fuzzy Times Series and Fuzzy Logic

In fuzzy time series models, one factor to forecast enrollment is simplified the complex problem, but not give good and accuracy time series forecasting, multiple factors can be used to derive better performance. In this research to have more accuracy performance of forecasting for Amman stock exchange, we follow the [18], which proposed by using two factors which influence the future stock index, instead of trading volume [19], used the following equation:

V R ( t ) = i = 1 n V u p i = 1 n V ( t ) V D o w n i m p i = 1 n V ( t ) (1)

where: VR(t): Stock trading volume. Vup: the trading volume when stock index closes up. VDownimp: the trading volume when stock index closes down. In this model, we have two factors separately integrated the process by a dual factor linear forecasting equation. The dual factor is:

V R ( t + 1 ) = a + M ( L v r ( t ) I ( t ) + b f o r e c a s t ( t + 1 ) I ( t ) + I ( t + 1 ) ) (2)

In main summarized for this model by [20], this leads to detailed by the algorithm. The dual factor forecast in proposed by [20].

Below diagram shows how the forecasting processes through fuzzy dual time series, Figure 1. According to Song and Chisoms model which consist of six steps, first step is to define the partition of universe of discourse, second step is to define the fuzzy set for the observation, where the fifth step is forecast and sixth step is defuzzify forecast result. This fuzzy time series model employ one factor to forecast enrolment, to improve the forecasting process as shown in Figure 1, the two forecasting factors which proposed by [21], instead of stock trading volume ,we use technical analysis indicator of stock trading volume ,in this figure two forecasting approach to deal with the two forecast factor separately linear forecasting. In general we crystallize the proposed model in to detailed algorithm.

In this paper, the application we have used financial date set from Amman stock exchange forecast where (t) represent the stock index; forecast (t + 1), LVR(t) is the value of the indicator. Where: (b) is an adjustment parameter represents the initial forecast based on the stock index. a is the initial forecast based on technical analysis indicator, and M is a signal transferring function.

2.3. Network Architecture

The network includes layers of a network, is a type of the membership functions, and a number of the outputs, these networks generally includes 5 layers where the linear operation of the network is ambiguous, also not clear which trial and error, and depends on experience for identification of architecture. Researchers have investigated many topologies of the network model for attaining the optimum model they have decided that the best model is with minimal error indexes and which maximize R-Squared of the model.

Figure 1. Forecasting processes through fuzzy duality time series. Source: Application of Fuzzy-neural networks in multi-ahead forecast of stock price, Gholamreza Jandaghi. African Journal of Business Management Vol. 4(6), pp. 903-914.

In fuzzy-neural network there is no specific limitation pattern for the estimation parameters, model can be specified by learning and form the new membership functions formation of non-linear model can be caused by modification, which carried out in input membership function:, Figure 2 shows the member function input.

When using technical analysis for prediction of stock values some assumption should be considered:

➢ Some say that history repeats itself.

➢ Price move and able to have the tendency to go with trend not against.

➢ It supposes that market moves in trends.

➢ The movement of the prices depends on the momentum of the trend movement.

Therefore the momentum reflects the changes experienced by the stock market price over the previous period. The Neuro-fuzzy inference systems which introduced by (d-S. R. Jang) depends on the trend momentum movement of stock prices composed of four functional blocks first is the knowledge base which contains rule base and database where rule base contains fuzzy where a dataset defines the membership function. The fuzzy inference system can be drawn out as Figure 3:

Figure 2. Membership function input of ASE. Source: Author calculation and drown, using Mat Lab.

Figure 3. Fuzzy inference systems. Source: Ashwini. A. Mate. I. P. Keswani. Journal of Engineering Research and Applications,Vol4, issue 7, pp.105,2014.

There was limitation of neural network on forecasting; such as:

1) With a large amount of data, there is back propagation of neural networks which can take a long time to train this data.

2) Arima model cannot support stationary of time series data.

3) The archiving data mining technique achieving the highest confidence up to 70%.

4) Neural network functions are block box function and results are unstable.

5) Operation rules of the neural network are unknown.

2.4. Measurements

Enhance; the model should be proposed the methodology with a hidden Markov model or fuzzy logic to improve the accuracy and effectiveness of the stock market price movement where the problem of the fuzzy system is of eliciting IF then rules from a raw input and output data. Two steps are proceeds for this:

A: Specification of output relations IF.

B: Clustering algorithm which used to recognized and categorized data also model construction and used for data comparison.

The subtractive clustering is a good technique for generating fuzzy inference systems which drawn up, by detecting clusters in input-output trading data. In cluster, the data point is estimated depends on the distance of this data point potential which can be measured as:

P i = i n t e a [ X i X j ] 2 (3)

where a = 4 r 2 .

Xi = represent ith data point, Ra is the vector consists of positive constant, and it is the types sphere cluster radius in data space.

C: Stochastic oscillator (SO):

This indicator indicates to the relation between the stock last closing price and to the stocks trading, it plotted with a range of 0 to 100, the overbought condition decided by this indicator about 80 and oversold analysis this indicator contains two variable as follows:

% D ( m o t ) = n 3 n % K ( n o t ) 3 , n 3 (4)

% K ( i n t ) = R ( e n t ) R ( n o t ) R max ( n o t ) R min t 100 (5)

where: %D is the moving average of %K used to formulate the idea of the momentum, Rmax(not) represented the momentum down the trading period, and Rmin(nt) is the momentum down the trading period. When Stochastic oscillator increases above 80, then sell should be, if (SO) lied between 20 - 80 Which implies normal state then should and when 80 below 20 implied oversold then by.

D: On-Balance Volume (OBV):

This measurement tool reflects the movement in the volume of stocks. It is calculated by total volume for the trading period and assigning it whether positive or negative there are 4 cases of measurement as:

➢ When prices today’s close is greater Than yesterday close then:

OB V = yesterday - Today’s volume.

➢ When today close is equal to yesterday then:

OB V = yesterday’s OB V results of this indicator of trading rules can be determined as following:

- If the line is down warded then sell.

- And when the line is upward then bay finally the MACD indicators use in long-term 26 weeks data and in short-run 12 weeks.

The fuzzy rules are a combination of the rules the 4 indicators combination also extracted from the expert from the trading expert; as:

➢ When MACD is high and Rsi low and so is low and O B V is high then buy if MACD is low RSI is high and so is high and O B V is low then buy. When MACD is low, RSI is med so is high and O B V is low then sells.

2.5. Causality in Stock Markets

Recent researchers are focused on the volume of trading stock to make price movement, therefore they focused on the contemporaneous relationship between trading volume and stock returns and they have decided that its dynamic relationship, the regressive of the dual time series known as a functional form which contains a mutual influencing factors. The functional form of causality:

T = t V t 1 + j t b j t j + u i (6)

v t = l i v t 1 + k j t 1 + u t (7)

where: Vt: represents the future trading volume, Ii is the future index of the stock market.

3. Methodology and Data

The data collection from previous record of Amman stock exchange of financial and banking sector for the period under investigation, the major variable of this study used as a time series of prices of stock exchange, from reports of ASE and central bank of Jordan, for exogenous variables in the study both previous records and stock market indexes which from 1/2010 to 12/2016 with record data 265.

The purpose of this study is to predict Amman stock exchange stock price through index and trading volume, which has the most influential factor in (A S E), enhance; we use the classical statistical methods the artificial intelligence model to simulate the results of interaction s through those influential variables. We use the fuzzy neural network to simulate the complex interactions in stock’s environment. Figure 4 illustrates this idea.

The external Factors and the internal factors are determined beyond the management process of the stock market the efficiency of the stock market, also are can call these influential factors, and the stock market environment which affected the efficiency of the stock market. We can obtain the information of stock market from records of this market which comes from relevant data. Also in this paper, we have categorized the data into four major categories. The first type is the technical data which included data which refers to the stock market:

➢ The volume of shares traded per day.

➢ The closing prices at the end of the day.

➢ The highest and lowest prices of the trading day.

Figure 4. The conceptual framework of the research. Source: Gholamreza Jandaghi, et al., 2010 African Journal of Business Management Vol. 4(6), pp. 907.

➢ The second type is the derived data which comes from combining and transforming technical, or the third type of data is the fundamental data, such as returns which can be expressed as:

R t = v t y t i y 1 t (8)

The third type of data is fundamental which related to the interstice value of category the fundamental data category included:

➢ Trade balance.

➢ Indexes of industries and companies.

➢ Interest rates.

➢ Net profit margin.

4. The Models of the Study

4.1. The Time Series Model

When we matched the time Series and the pattern templates, we can through this method identifying the existing of Elliott waves, this method proposed by ( [18]). In their method, the amplitude-distance between two points can be performed as:

A D ( S p A , C p ) = 1 n 1 n M k 1 ( S A n + E A ) 2 (9)

where: (A, C) are listed in the point in the time series and templates, SpA, CPA are considered as (P1PS) in P.

This proffered to be considered as horizontal distortions of pattern against templates, and the temporal distance can be performed us (TD):

T D ( S p A , C p ) = 1 n 1 n k = 21 ( S p A + L A ) 2 (10)

The SPTA and CTA: represents the time coordinate of the sequence points.

Other models such as; Black-Litter man studied the active portfolios with views.

The Black-Letterman optimized portfolios, resembling portfolios of real market participants. Type four is the volatility and stability and government policies which measure the risk of an investment and described the variability of a stock market.

The two models which are used in his research are categorized as a fuzzy neural network which depends or based on fuzzy loge model and time series, and the equivalent ANFIE model. And wavelet with their modifications; first step we normalized the data. The forecasting model comes from different categories of information data as below in Figure 5.

In normalization of data according to the primary needs of the fuzzy system, which implies should cover the domain of variables. Thus upper limits and lower limits of the variables input data should be modified of stock price and index of the market to avoid the problem of sensitivity of Gaussian member function, the normalized data can be written as the following:

Figure 5. The forecasting model of the study. Source: Adapted by author from: Gholamreza Jandaghi, et al., 2010 African Journal of Business Management Vol. 4(6), pp. 907.

Normalized data = X max X t ( X min 10.2 X min ) t ( 0.2 X min ) ( X min 0.2 ) (11)

We can notice in the equation that increases to the maximum of twenty percent, and. Decline minimum to twenty percent this can be considered to cover the domain changes in prediction period.

The data of each index or trading volume included 570 data which are formed in daily periods. 570 data input variable sets are tested with the selected model ANFIS.

We use the following formula:

Input variables = cash flow efficiency t 1 + E s ( t 1 ) (12)

We applied the formula of ANFIS:

Input 1 cash flow efficiniecy t 1 and previous daily stock (13)

Input 2 = ts (t − 1) was able to forecast with R2 equal in ASE (0.893) by 342 primary modeling data for the whole data 570 data, then we have applied the mean absolute percentage error (MAPE) which can be expressed as:

M A P E = i = 1 k p = C 1 [ P m i ] 2 (14)

where: N: is the total number of data records, P: represents forecasted output, m is actual output.

4.2. Design of Fuzzy Logic-Based Stock Prediction

The technical indices’ are used along domain expertise with the definition of the rule of the fuzzy system.

I: The Moving Average Convergence (MACD) divergence.

This indicator uses to comprises of two exponential moving Averages which help to measure momentum in the security .when the MACD is the positive signal this can suggest upward momentum when it is negative it is down warded momentum. This can be calculated as:

1) A/2 day EMA of closing Prices.

2) A/26 day EMA of closing prices.

3) Subtract the longer EMA in (2).

4) Ag day of the MACD line gotten as the following equation:

E M A = p r i c e ( t ) k + E M A ( t ) ( 1 K )

where: y denoted to yesterday, n: is the number of day in EMA, l equal to = 2/(N + 1).

And t represents today. The trading rule of MACD to be used in the fuzzy inference system as results signal;

・ If MACD above the line than buying. If MACD below the line, then sell,

2: RSI (Relative strength, index):

It is considered whether the set is overbought or oversold.

R S I = 100 100 1 + R S I (16)

where n = number of days, most analysis; Used a-15 days RSI, RSI is an average of N-days up closes/average of N days down closes. If RSI increases to above 70 then sell. .If RSI is between 30 and 70 then hold, If RSI decreased below 30 then buy.

3: Stochastic oscillator (SO): Indicates overbought/oversold conditions on a scale of 0% - 100%. Oscillator readings below 20% are considered oversold. Oscillator readings above 80% are considered overbought. Based on observation that in a b up trend, closing prices for periods tend to concentrate in the higher part of the period’s range. As prices fall in a b down trend, closing prices tend to be near the extreme low of the period range. The calculations produce two lines, %K and %D which indicate overbought/oversold areas of a chart. Divergence between the stochastic lines and the price action of the underlying instrument gives a powerful trading signal. I had used this one before, but I was not familiar with it so it did not help me. I feel like this one along with the RSI could be a good combination. (9) %D is a 3-day simple moving average of %K If both lines have topped in the upper zone (above 80% mark) and then the indicator. The following diagram Figure 6 indicates to design of Fuzzy logic-Based stock prediction summarized all measurement.

5. Empirical Results of the Study

5.1. Analyses of ASE Data Using Indicators

We have used MAT lab software to analyze the data set during this period (Table 1), the MACD during the whole of study period below the trigger line, and the other results of other indicators RSI and stochastic oscillator, and OBV, the numerical value indicates that all of them hold drown downtrend, therefore, the values which appear in Table 2 are the value results from the inference system which reveals a sell, hence, low with numerical value. When we have a look during the study period to the price movements, it shows that the price increased in the summer season and slipped down in autumn and winter season.

The results during the winter season and at the end of the year indicate that buying would have been profitable, while price movements in this period indicate to buy. The MACD was above the trigger line value of 10. And RSI was about 101, with the stochastic oscillator of 101, with OBV which up word trend, hence, these results of fuzzy inference system reveling to buy.

5.2. MPE, MSE, RMSE with Different Models Results of ASE during (2010-2016)

MPE, MSE, RMSE are with different models results of ASE during (2010-2016).

We have applied the mean absolute percentage error (MAPE), mean squared Error (MSE) and the root of the mean squared error as three measures to evaluate the different models which performance in our paper and detailed above in the text. Table 3 shows the result of the financial sector of ASE during the study period.

As results of Table 3, it shows the combination of combining the fuzzy logic, neural network, then wavelet for the ASE stock market prices of financial sector, and simulates the errors between proposed models. The result of comparison shows that the model of ANFIS and wavelet in MSE, RMSE measures out, perform the other model.

Figure 6. The design of Fuzzy logic-based stock prediction measurements. Source: Acheme, O, Ijegwa. Vinecent, Rebeca. Folorunce, o Olusola, issac. Computer and information science, vol. 7, No. 3, pp. 4, 2014.

Table 1. MACD results and other indicators In summer season and January month.

Source: Author calculation.

Table 2. ASE input/output variables in the winter season and at the end of the year.

Source: Author calculation.

Table 3. Results of different application models for financial sector ASE during study (2010-2016).

Source: Calculation by author.

The previous day stock price input was able to predict the future stock price, with determinant coefficient 0.9134, the whole range of data 265, the prediction can be accounted as equal to on-head forecast. After denormalizating operation, the predicted results are stated in Table 4. The results of table show more prominent in fuzzy-neural models, while it appears that in MSE as medium, and MAD posses less amount than other models in all table testing fuzzy-neural models, therefore, it becomes superior in stock prediction.

RSI: this indicator compares the magnitude of recent gains to recent losses, as attempts have oversold conditions of assets.

Table 4. Prediction indexes in linear and fuzzy-neural models applied to ASE financial sector.

Source: Author calculation from ASE data.

MACD: this indicator gives us a sign of fast and moving average of closing prices, this measure reflects the buying and selling conditions volume which provides clues as intensity of given price movement in market timing strategy an over bough volume and over. The evaluation basis in this paper which applied as a measure is (MAPE) the absolute percentage error, which appears as the following formula:

M A P E = i = 1 k p = C 1 [ P m i ] 2 (17)

Also, we can use the actual predict value s and the mean value, we can use the following formula:

M A P E = 1 N i = 1 N ( I t y t ) 2 y t (18)

where: yt and It represent the actual and predicted values the .smaller value of the error is the closer of predicted values to the actual values, the other measure is MSE (mean Squared error which follows the below formula:

M S E = 1 N ( I t y t ) 2 (19)

where it and yt are the actual and predicted values. The third measure used in this paper is RMSE (root mean squared error) which can be formed as:

R M S E = ( I t y t ) 2 (20)

5.3. The Simulating Method Results

We have used the simulating method to analysis the stock indexes of the financial sector by using three models Table 5 shows the results.

More experiments to improve the proposed model which used, but the period is used long with reduplicated Algorithms, the results of the simulated method are in Table 6 with half your moving windows of data.

In Figures 7-9, the input functions of training error after trained 360 days with 265 data chosen in testing, with 4 input variables, and two fuzzification variables, give us sign that after a very iteration model training, that fuzzy neural models are superior at the end of 360 days training domain and error amount of the model is too small or sometimes medium.

Table 5. Fuzzy Models.

Source: Author calculation by using Mat Lab.

Table 6. Comparison of the three models for the times series of financial sectors of ASE.

Source: Author calculation.

Figure 7. Comparison of different measures from ASE data 2015. Source: author calculation from ASE data using different models.

Figure 8. RMSE for ASE (financial sector) 2015 by train data error. Source: author analyses results using Mat LAB software.

Figure 9. RMSE for ASE (financial sector) 2015 by check data error. Source: author results drown by check data error for ASE data.

Section six: Concluded remarks:

Much recent paper applying a linear combination of the significant technical index, as a consequent to predict the stock market index and prices. our paper is under the same consideration , is an attempt work to predict the ASE index and price movement , but after give an explanation about the fuzzy logic and neural network theory, and literature survey to predict the long-term goals of the trend index and price variation , without searching the details of influential factors, such as political disorder ,micro and macroeconomic variables.

The fuzzy system used as input information of our results are derived from technical indicators analysis results and sometimes from charts the inputs generated by the experiments of indicators to have an efficient predicting future price movements in the stock market ,therefore we have chosen in our paper the moving average convergence/divergence (MACD) on Balance volume (OBV) stochastic oscillator (SO) and relative strength index (RSI), these indicators beyond other measures can mimics the behavior of technical trades, and the strategic decision in stock market trader decision. In our viewpoint combination of more measures such as MSE and MAPE beyond other in fuzzy logic, and the neural network is more reliable to predict the index and price movement stock market.

The paper mapped these indicators to keep the fuzzy inference as simple as we could, to give easy method for trader prediction as a results two variables to predict the actual stock market data, due to the satisfactory results through the analysis of ASE .recommendation over bough and over soled are combined with other information indicators to give good decision.

Where this paper demonstrate the immense capabilities of fuzzy logic and neural network architecture such as ANFIS in implementing time series prediction as task to predict the stock prices direction for ASE, in order to give high performance decision which optimizing profits for the investor in other hands not only linear combination have been used in this paper also the non-linear system modeling with a combination a conventional method used such as ANFIS.

These combinations of the quantitative method are utilized in this paper in order to give a suitable and successful method to predict the price movements in the stock Market and minimize the risk of investment. The future researcher can fly high in this filled by using other quantitative methods, and developed new index more reliable to predict the Prince moment in stock markets.

Cite this paper

Alalaya, M.M., Al Rawashdeh, H.A. and Alkhateb, A. (2018) Combination Method between Fuzzy Logic and Neural Network Models to Predict Amman Stock Exchange. Open Journal of Business and Management, 6, 632-650.


  1. 1. Partha, R., Sanjay, S. and Kowar, M.K. (2012) Fuzzy Candlestick Approach to Trade S & P CNX, NIFTY 50 Index Using Engulfing Patterns. International Journal of Hybrid Information Technology, 5, 57-66.

  2. 2. Hiemstra, Y. (1994) A Stock Market Forecasting Support System Based on Fuzzy Logic. Proceedings of the IEEE 27th Annual Hawaii International Conference on System, Sciences, Wailea, HI, 4-7 January 1994, 281-287.

  3. 3. Nicholis, S.C. and Sumpter, D.J.T. (2011) A Dynamical Approach to Stock Market Fluctuation. International Journal of Bifurcation and Chaos, 21, 3557-564.

  4. 4. Preethi, G. and Santhi, B. (2012) Stock Market Forecasting Techniques: A Survey. Journal of Theoretical and Applied Information Technology, 46, 24-30.

  5. 5. Chong, T. (2009) Financial Time Series Forecasting Using Improved Wavelet ANN. Master Thesis Report. (Not Published)

  6. 6. Dhamija, A.K. (2010) Financial Time Series Forecasting: Comparison of ANN and ARCH Model. International Research Journal of Finance, No. 49, 194-212.

  7. 7. Zadeh, L.A. (1965) Fuzzy Sets. Information and Control, 8, 338-353.

  8. 8. Zadeh, L.A. (1975). The Concept of a Linguistic Variable and Its Application to Approximate Reasoning I. Information Science, 8, 199-249.

  9. 9. Abraham, A. and Nath, B. (2001) Hybrid Intelligent Systems Design—A Review of a Decade of Research. Technical Report (5/2000), Gippsland School of Computing and Information Technology, Monash University, Australia.

  10. 10. Abraham, A. (2001) Neuro-Fuzzy Systems: State-Of-The-Art Modeling Techniques, In: Mira, J. and Prieto, A., Eds., Connectionist Models of Neurons, Learning Processes, and Artificial Intelligence, Springer-Verlag Germany, Granada, Spain, 269-276.

  11. 11. Thammano, A. (1999) Neuro-Fuzzy Model for Stock Market Prediction. In: Dagli, C.H., Buczak, A.L., Ghosh, J., Embrechts, M.J. and Ersoy, O., Eds., Smart Engineering System Design: Neural Networks, Fuzzy Logic, Evolutionary Programming, Data Mining, and Complex Systems, Proceedings of the Artificial Neural Networks in Engineering Conference (ANNIE ‘99). ASME Press, New York, 587-591.

  12. 12. Kim, K.-J. and Han, I. (2000) Genetic Algorithms Approach to Feature Discretization in Artificial Neural Networks for the Prediction of Stock Price Index. Expert Systems with Applications, 19, 125-132.

  13. 13. Egeli, B., Ozturan, M. and Badur, B. (2003) Stock Market Prediction Using Artificial Neural Networks. Proceedings of the 3rd International Conference on Business, Hawaii, 18-21 June 2003, 1-8.

  14. 14. Singh, K.K., Dimri, P. and Singh, J.N. (2014) Green Data Base Management System for Intermediaries of the Indian Stock Market. IEEE Xplore Digital Library, 1-5.

  15. 15. White, H. (2010) Economic Prediction Using Neural Networks: The Case of IBM Daily Stock Returns. Department of Economics University of California, San Diego.

  16. 16. Dashore, P. and Jain, S. (2010) Fuzzy Rule Based Expert System to Represent Uncertain Knowledge of E-Commerce. International Journal of Computer Theory and Engineering, 2, 882-886.

  17. 17. Huang, K.Y. and Jane, C.-J. (2009) A Hybrid Model for Stock Market Forecasting and Portfolio Selection Based on ARX, Grey System and RS Theories. Expert Systems with Applications, 36, 5387-5392.

  18. 18. Feng, L., Baowen, L., Boris, P., Tobias, P. and Eugene, H. (2012) Linking Agent-Based Models and Stochastic Models of a Financial Market. Proceeding of the National Academy of Sciences of the United State of America, 109, 8388-8393.

  19. 19. Kim, M.J., Min, S.H. and Han, I.G. (2006) An Evolutionary Approach to the Combination of Multiple Classifiers to Predict a Stock Price Index. Expert Systems with Applications, 31, 241-247.

  20. 20. Mate, A.A. (2014) Scheduling By Using Fuzzy Logic in Manufacturing. International Journal of Engineering Research and Applications, 4, 104-111.

  21. 21. Alejandro, E., Juliano, M. and Sebastian, M. (2013) A Technical Analysis Indicator Based on Fuzzy Logic. Electronic Notes on Theoretical Computer Science, 292, 27-37.