^{1}

^{*}

^{2}

^{3}

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.

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.

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.

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 [

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 [

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 [

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. ( [

[

Neural network used by [

Many methods can be used to predict stock exchange index or prices, [

[

[

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 [

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. V_{up}: the trading volume when stock index closes up. V_{Downimp}: 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 [

Below diagram shows how the forecasting processes through fuzzy dual time series,

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), L_{VR}(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.

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.

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:,

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

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.

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 .

X_{i} = represent ith data point, R_{a} 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.

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: V_{t}: represents the future trading volume, Ii is the future index of the stock market.

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.

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.

➢ 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.

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 ( [

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

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:

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 R^{2} 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.

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

We have used MAT lab software to analyze the data set during this period (

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.

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.

As results of

Measure | 2010 | 2012 | 2015 | 2016 |
---|---|---|---|---|

MACD | Below the trigger line | Below the trigger line | Below the trigger line | Below the trigger line |

RSI | 17 | 16 | 19 | 17 |

SO | ||||

OBV | ||||

St/dev | 0.10754 | 0.09347 | 0.921 | 0.08341 |

R2 | 0.9136 | |||

Recommendation | sell | sell | sell | sell |

Source: Author calculation.

Measure | 2010 | 2012 | 2015 | 2016 |
---|---|---|---|---|

MACD | 10 above trigger line | 10 above trigger line | 10 above trigger line | 10 above trigger line |

RSI | 95 | 97 | 102 | 115 |

SO | 98 | 101 | 106 | 123 |

OBV | 9 upward | 10 upward | 8 upward | 10 upward |

St/dev | 0.08741 | 0.09544 | 1.0327 | 1.2438 |

R2 | 0.8656 | |||

Observation No | 265 | |||

Recommendation | buy | buy | buy | buy |

Source: Author calculation.

Model | MAPE | MSE | RMSE |
---|---|---|---|

ANN | 0.0687 | 0.00575 | 0.0614 |

ANF1S | 0.0086 | 0.0894 | 0.0098 |

ANF1S with wavelet | 0.0096 | 0.0064 | 0.0721 |

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

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

Models | One: a head | 360 days: a head | |
---|---|---|---|

Fuzzy logic | MSE | 2705.43 | 6328.16 |

MAD | 18.56 | 216.23 | |

R^{2} | 0.9134 | 0.6874 | |

ANFIS | MSE | 1367 | 1784 |

MAD | 15.42 | 86.73 | |

R2 | 0.9475 | 0.8764 |

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: y_{t} and I_{t} 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)

We have used the simulating method to analysis the stock indexes of the financial sector by using three models

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

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.

Fuzzy models | RMSE |
---|---|

Huang and Yu’s (model, 2000 | 102 |

Chen’s model, (2005) | 96 |

Proposed model | 81 |

Source: Author calculation by using Mat Lab.

Testing | 1/2010 7/2010 | 7/2010 1/2012 | 1/2012 6/2012 | 7/2012 12/2012 | 1/2013 6/2013 | 7/2013 12/2013 | 1/2016 6/2016 | 7/2016 12/2016 |
---|---|---|---|---|---|---|---|---|

Huang model (2005) | 236 | 348 | 217 | 156 | 144 | 118 | 102 | 87 |

Chen’s model (2000) | 118 | 97 | 85 | 88 | 76 | 71 | 83 | 92 |

Proposed model | 85 | 89 | 81 | 74 | 79 | 103 | 86 | 92 |

Source: Author calculation.

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.

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. https://doi.org/10.4236/ojbm.2018.63048