848
Views
3
CrossRef citations to date
0
Altmetric
Articles

Intelligent Stock Portfolio Management Using a Long-Term Fuzzy System

&

ABSTRACT

The complexity of financial markets is driving researchers to multiply their efforts in order to improve their forecasting methods. This paper inoculates an old trading strategy with fuzzy subjective elements. The aim is to investigate whether the careful synthesis of a few long-term technical indicators, which have a different predictive philosophy, with an appropriately designed stock trading Mamdani fuzzy system, can produce satisfactory returns. More specifically, its purpose is to investigate whether the combination of moving averages, directional movement technical indicators and a fuzzified trading strategy can surpass the performance of buy and hold strategy (B&H). The proposed model has been tested in various (bull and bear) market environments for a period of more than 15 years, using the general index of ASE (Athens Stock Exchange). After taking into consideration transaction costs, it is found that the proposed model can produce better results (higher earnings) than the B&H strategy.

Introduction

Over the previous years, the complexity of financial markets has been well documented by researchers (Lan, Zhang, and Xiong Citation2011) who also provided empirical evidences that a large number of interrelated economic, political and psychological factors, cause many uncertainties and positively or negatively affect stock values.

Various techniques have been used for time series analysis price forecasting (Chen and Chen Citation2014), such as the autoregressive moving average model, the factor analysis, the linear multiple discriminant approaches (MDA), and the univariate approaches, while, relatively recently, a variety of artificial intelligence techniques have also been proposed. This is due to the fact that appropriate nonparametric machine-learning approaches may be capable of identifying the dynamic nonlinear relationships that exist between market information and stock values (Chenoweth, Obradovic, and Lee Citation1996). According to Chang, Fan, and Lin (Citation2011), since stock price data are affected by deterministic and random factors, price forecasting can be successful only with the use of tools and techniques that can overcome the problem of noise and nonlinearity of prices.

Soft computing techniques are nonlinear in nature (Melin et al. Citation2007) and, therefore, they can capture the nonlinear behavior of stock markets (Atsalakis and Valavanis Citation2009), emphasizing their usefulness for solving complex problems (Soto Citation2007). Fuzzy logic is one of the soft computing techniques (Kumar and Ravi Citation2007) that uses creatively the imprecision and uncertainty of human judgment (Beka Be Nguema et al. Citation2000). This is actually one of the reasons why it has been used with success in many applications of the real world (Garcia-Crespo et al. Citation2012).

Technical analysis uses historical prices and volumes in order to forecast future stock prices. The continuous flow of information from the complex “environment” mentioned earlier, and the changing attitudes of investors reacting to this information create opposing forces of supply and demand, which move stock prices in short, medium or long trends. According to technical analysis, all this information is reflected in stock prices. Technical indicators are created using various mathematical formulas and they continually evaluate the strength of the current trend, identifying any change that may occur (Apostolou and Apostolou Citation2004; Bao and Yang Citation2008; Cheng, Chen, and Wei Citation2010). However, the appropriate combination of various technical analysis techniques is a difficult task (Pring Citation2014) and, as a result, investors usually make decisions using subjective assessments (Dymova, Sevastianov, and Kaczmarek Citation2012; Kahn Citation2010). Moreover, technical analysis techniques can provide contradictory results, the evaluation of which demands specific human expertise and appropriate justification (Majhi, Panda, and Sahoo Citation2009). Thus, the development of novel fuzzy models that can address such issues of human subjectivity in a satisfactory manner is a promising challenge.

Various fuzzy logic techniques, which combine specific methods of technical analysis have been recently tested with rather promising results (Araque et al. Citation2008; Atsalakis, Dimitrakakis, and Zopounidis Citation2011; Bekiros and Georgoutsos Citation2007; Dymova, Sevastianov, and Bartosiewicz Citation2010; Esfahanipour and Aghamiri Citation2010; Pereira and Tettamanzi Citation2008; Sevastianov and Dymova Citation2009; Svalina et al. Citation2013). Most of the above researchers use common technical indicators (e.g. moving averages), which are calculated using only the closing daily prices. As a result, important information, such as high and low is missed. However, other technical indicators, like the Directional Movement, exploit these data and it is, therefore, reasonable to assume that the combination of the appropriate technical analysis indicators can improve the predictive power of the models.

This paper proposes an intelligent stock trading fuzzy system, aiming to assist long-term investors in their portfolio management. The purpose of this research is to investigate whether the combination of moving averages, directional movement technical indicators and a fuzzified trading strategy, implemented in an appropriately designed fuzzy system, can surpass the performance of buy and hold strategy (B&H) or the interest earned by the portfolio’s initial capital invested on a safe deposit account. Furthermore, it attempts to the extent the boundaries of previous research in short (Chourmouziadis and Chatzoglou Citation2016) and medium-term prediction, and to investigate whether even more satisfactory results can be achieved.

This paper contributes to the literature in a number of ways. First, it investigates whether the use of only a few, very common, carefully selected technical indicators, can be combined with an appropriately designed fuzzy system, in order to create a generic model for forecasting the long-term trading proposals of a portfolio. Contrary to the common practice of using as many as possible, and sometimes with contradictory characteristics technical indicators (Fadlalla and Amani Citation2014; Patel et al. Citation2015; Pokropinska and Scherer Citation2008; Zarandi et al. 2009), this research proposes the use of four only technical indicators, which are all trend following. The selected technical indicators are three moving averages with different parameters and the directional movement. The profitability of moving averages is supported by some researchers, but it is questioned by some others (Brock, Lakonishok, and LeBaron Citation1992; Levich and Poti Citation2015; Taylor Citation2014; Yu et al. Citation2013), while the directional movement indicator has many alternative interpretations (Metastock Professional Citation2002). During the research, moving averages’ signals are combined with the signals of the directional movement indicator, in an effort to improve their predictive power, since they are all trend following technical indicators, but with a different constructive philosophy. Further, the predictive power of the model was increased by optimizing the parameters of the above indicators for long-term periods, and from the fact that directional movement, except from the closing price uses the high and low of the daily price as well.

Second, it uses a strategy (proposed by the same authors) in order to transform a rigid trading strategy to a more fuzzy form, enabling thus subjectivity, which is inherent in the real world decisions, to be part of the trading strategy. This is succeeded by inoculating an old trading strategy, with an observation of a researcher and the notion of certainty, as part of the developed system. According to the classic trading strategy, a buy (sell) signal is issued when the moving average is crossing from above (below) the closing price or when the -di is crossing from above (below) the +di of the directional movement indicator. This was extended with an idea of Papoulias (Citation1990), according to which when a stenosis of the space between price and technical indicator appears, the current move of the market is ending, while when the distance between them broadens, the current move continues to be valid. Thus, this notion of the degree of stenosis was fuzzyfied and combined with the classic trading strategy of the cross between price and technical indicator, in order to be implemented through the membership functions and the rules of the fuzzy system, embodying the notion of the degree of certainty and subjectivity.

The proposed model was tested in various market environments (which include bull and bear markets) for a period of more than 15 years, using the general index of ASE (Athens Stock Exchange) in Greece. Two additional tools were created, one to help in correcting errors of historic data and the other to provide information for the daily investments of the portfolio.

Literature Review

Some of the most cited conventional numeric forecasting models are (Wei Citation2013) ARCH, GARCH, ARMA, and ARIMA.

However, since stock market is a complex and dynamic system with noisy and chaotic data series (Evans, Pappas, and Xhafa Citation2013; Peters Citation1994), soft computing systems (Bao and Yang Citation2008), such as fuzzy logic, neural networks, and neuro-fuzzy systems have been used in an attempt to predict stock market prices. Various models which combine soft computing techniques and technical analysis have also appeared. These include stock price prediction (Chang and Liu Citation2008), prediction of the direction of the market (Doeksen et al. Citation2005), prediction of the actual buy/sell signals (Tilakaratne, Mammadov, and Morris Citation2007), prediction of future prices (Wang and Chan Citation2009) and stock selection (Quah Citation2008).

More specifically, some researchers have attempted to develop models for predicting the direction of a market. Vaidehi et al. (Citation2008), for example, proposed a fuzzy system to predict the possibility market prices (for six Indian stocks) to rise or fall with almost 80% accuracy. Similarly, Bekiros (Citation2010) proposed a hybrid neuro-fuzzy system for predicting the direction of the market on the next trading day. The total profits of the system are shown to be superior to a recurrent neural network and a B&H strategy for all indices. Atsalakis and Valavanis (Citation2009) also propose a neuro-fuzzy system, which is composed of an ANFIS controller and a stock market process model to identify the best stock trend prediction.

Further, Chavarnakul and Enke (Citation2008) proposed two generalized regression neural networks (GRNN) for predicting future stock prices with the use of the technical indicators developed from equivolume charting. These networks incorporate the volume-adjusted MA and EMV (Ease of Movement) as predictors, and they outperformed the results of two simple technical indicators, namely the moving average and the volume-adjusted moving average, as well as the B&H strategy. Similarly, Baba and Nomura (Citation2005) proposed an effective decision support system, which uses the artificial neural network in order to predict the intersection of two MA several weeks in advance. Moreover, Chang and Liu (Citation2008) developed a TSK fuzzy system for price predictions using various technical indicators as input. They grouped these indicators in various clusters according to the k-means algorithm. Their predictions were proved to be more accurate than other approaches, such as multiple regression analysis or the Back Propagation Neural network (BPN). Finally, Tan, Quek, and Yow (Citation2008) attempted to identify reversal points through an intelligent Rough Set-based Pseudo Outer-Product (RSPOP) fuzzy neural network and the use of various technical indicators, producing far more accurate predictions (>95%) than that achieved adopting the B&H strategy.

Technical Analysis

In the area of stock market forecasting, technical analysis (TA) is one of the primary analytic approaches used by many investors to make investment decisions and increase their investment returns (Cheng, Chen, and Wei Citation2010). However, although a series of recent surveys has confirmed the extensive use of TA among investors, practitioners and professional traders (Gehrig and Menkhoff Citation2006; Menkhoff Citation2010; Oberlechner Citation2001), technical analysis’s claims have also found support within the academic community (Neely and Weller Citation1999; Vanstone and Finnie Citation2009). As Jasemi, Kimiagari, and Memariani (Citation2011) comment, academics have simply paid more attention to this investment strategy rather recently.

This research uses two types of trend following indicators, (i) Moving Average (MA) and (ii) Directional Movement.

MA is a method for calculating the average value of a stock for a specific time period and it can be characterized as short term (e.g. 15 days), mid-term (e.g. 50 days) and long term (e.g. 200 days). MAs are used to smooth the noise of shorter-term fluctuations in order to more easily identify the significant underlying trends (Appel, Citation2005). According to Katz and McCormick (Citation2000), the three most important types of MA are the simple MA, exponential MA and weighted MA. The main difference between the various types of MAs is the weight they place on recent data.

A number of in-depth tests were carried out on the various types of MA before the exponential MA was chosen as the most appropriate for the purposes of the present research. This is in line with, Dzikevicius and Saranda’s (Citation2010) claim that exponential MA is more suitable for predicting prices compared to a simple MA. The formula used to calculate the exponential moving average is the one proposed by Wang and Wang (Citation2010).

Milionis and Papanagiotou (Citation2008) examined the predictive ability of MA in the general index of the Athens stock exchange (ASE) and they found that the performance of MA for time lengths 5–100 days surpassed the performance of the B&H strategy. Further, Kuang, Schoder, and Wang (Citation2014) examined the profitability of 10 emerging foreign exchange markets for various technical trading rules (including moving averages rules), and they concluded that nearly all of the apparent success of these rules is simply the result of data mining bias.

The directional movement is also a trend following system which has been developed by Welles Wilder (Wilder Citation1978), who also suggests the use of five indicators, csi, +di, -di, adx, and adxr with various interpretations. In the present paper, only +di and – di are used. The basic directional movement trading system is to buy when +di rises above the – di and sell when the -di falls below the +di. This rule is followed in the present paper. Chang Chien and Chen (Citation2010) are among the relatively few researchers who have also used this technical indicator.

Collection of Historical Data

Daily data with open, high, low, close and volume were used in this research. However, it is well known that real market data “often suffer from various deficiencies” (Bishop Citation2004, p.295 raising many doubts about their reliability. Furthermore, fuzzy data are often content-dependent, uncertain, imprecise, vague, inconsistent and ambiguous (Galindo, Urrutia, and Piattini Citation2006). Therefore, some degree of preparation and pre-processing is required and this procedure must be considered to be an integral part of the modeling process (Garibaldi Citation2005).

Data pre-processing was consisted of error checking, correction of the historic data and the calculation of various technical indicators. Α methodology to search for and correct errors from data on any market was developed. Then, an appropriate tool was also developed for this purpose. This methodology has helped authors discover and correct four kinds of errors (arithmetic errors, logic errors, date errors and prices out of set limits).

Choosing the Parameters of Technical Indicators

The performance of the various technical indicators depends on the criteria set to create the environment they operate in. In this research, once the environment had been set, extensive back-testing and optimization tasks were carried out in order to select the best parameters for every indicator. The automated system used for back-testing the technical indicators was the Metastock Enhanced System Tester. The criteria (technical strategy) of the testing environment were the following (Chourmouziadis and Chatzoglou Citation2016): a) each buy or sell order was set at the close of the same day, b) no stops were used, c) the total available cash was used every time a buy signal was given, d) all possessed assets were sold every time a sell signal was given, e) no slippage or margin were used, f) there was no interest received for the cash left in the portfolio.

The index that was used was the ASE (Athens Stock Exchange) general index, while the testing period was from 1987 until 1992, while the period of the research was between 15/11/1996 and 5/6/2012.

Empirical Results, Analysis and Discussion

A new value for each technical indicator is calculated every day which is, then, compared with the daily price of the particular stock or the ASE general index, in order to create the relevant linguistic variable. Linguistic variables (Zadeh Citation1975) fluctuate between the minimum and the maximum of the historical prices on a scale of 0 to 1. A bell-shaped membership function was chosen because the curve of this function is smooth and nonzero at all points (Dourra and Siy Citation2002).

The output of the developed fuzzy system is a number ranging from 0 to 1 which expresses the percentage of the portfolio that should be invested on a daily basis in the ASE. Every day, complementary trades should be carried out in order to ensure that the invested proportion of the portfolio is exactly the same as the suggested percentage by the system. A working prototype was developed in order to calculate all these changes, along with the relevant daily transaction costs, which are subtracted from the respective gains or added to the losses.

shows that for the first day (15/11/1996), the general index of the ASE was 890,39 units and the output of the fuzzy system was 0,074339303, suggesting an investment of 7,4339% (743,39€) of the initial amount of the portfolio (assumed to be 10.000€) in the ASE. The next day, the output of the fuzzy system was 0,084423054, indicating that a bigger part (8,4423% or 844,23€) of the portfolio should be invested. Of course, the shares bought the previous day would already worth more since the general index of the ASE was higher (914,82). The assumptions made for the portfolio management are the following:

  • The initial capital is 10.000€.

  • The portfolio would be invested solely in the general index of ASE in the Greek stock market.

  • The value of the portfolio is calculated on a daily basis, taking into consideration the closing price of the general index.

  • All transactions are made ATC, i.e. “at the close” of the same day.

  • The amount of the portfolio which should be invested on a daily basis depends on the output of the fuzzy system.

  • For every transaction made, there are two measurements, with and without subtracting the transaction costs. The transaction costs adopted for this study are those which were valid in the ASE on 31/12/2012.

  • No interest is calculated for the remaining cash in the portfolio, nor are they invested in any “safe” asset, although this is particularly common (Brock, Lakonishok, and LeBaron Citation1992) since it strongly increases the portfolio’s performance. The reason for choosing not to invest the portfolio’s remaining cash is that the goal of this research is to determine the performance of the proposed model and not try to maximize it with any of the available methods.

Table 1. An extract of the first and last few days of the portfolio management.

For the process of the fuzzy inference, the Mamdani method was chosen, because it is widely accepted for capturing expert knowledge (Negnevitsky Citation2005), a very important aspect for the present study since fuzzy inference rules were based on the expert knowledge of a technical analyst.

Long-Term Fuzzy System

The performance of the fuzzy system has been explored using the following four long-term technical indicators: the exponential moving average of 105 days, the exponential moving average of 145 days, the Directional Movement of 73 days and, finally, the “classic” simple moving average of 200 days (). According to technical analysis, for the first, second and fourth indicator, a buy signal is given when their value becomes less than the daily close, while for the third indicator, a buy signal is given when the -di crosses underneath (becomes less than) the +di. Therefore, a buy signal is issued when the values CL-MA(105), CL-MA(145), +di(73)-(-di(73)) and CL-MA(200) become positive, while a sell signal is issued when their value becomes negative. These values are calculated daily and they constitute the inputs of the fuzzy system.

Table 2. Inputs of the long-term fuzzy system.

According to Papoulias (Citation1990), the stenosis (narrowing) of the space between the MA line and stock prices is an indication that the market’s movement will shortly end. Extending this observation, an improved technical trading strategy was explored: when the positive (negative) values of CL-MA(105), CL-MA(145), +di(73)-(-di(73)) and CL-MA(200) become smaller and smaller, there is an indication that progressively the degree of certainty of the present order for buying (selling) decreases. However, at the same time, this increases the possibility that these values will reach zero or even turn negative (positive) and, consequently, the opposite order for selling (buying) will be issued. Similarly, when the space between the MA (or any of the above technical indicators) and stock prices increases, the positive (negative) values of CL-MA(105), CL-MA(145), +di(73)-(-di(73)) and CL-MA(200) become larger and larger, indicating that the degree of certainty of the present order of buy (sell) increases.

The curves of the two membership functions (e.g. MA105overCL and MA105underCL) are plotted in a specific way. When one of them (e.g. MA105underCL) has very high values on the x axis, it expresses the almost absolute certainty that the current buy order is correct. When MA105overCL has very low prices on the x axis, it expresses the almost absolute certainty that the current sell order is correct. These two curves are plotted in the opposite manner. In a specific moment t, when both curves have a specific value on the x axis, one of them expresses the almost certainty that the buy order is correct, while the other expresses the minimum certainty that the sell order is correct. When both membership functions are in the area of zero (i.e. when MA approaches the price of the ASE general index), they denote uncertainty about the strength of the order they represent and that it is entirely possible that the opposite order will be given.

In this case, the x axis ranges from the minimum value of the linguistic variable (which for the more than 15-year testing period is −1427,8 for CL-MA(105)) to the maximum (which for CL-MA(105) is 1835,6). Thus, it becomes apparent that the minimum and maximum values are not symmetrical to zero. The two membership functions intersect at the value 0 on the horizontal x axis and each one of them is bell-shaped. One of them is MA105underCL, which represents the case where MA is under the close price (so a buy signal is issued), while the other is MA105overCL, which represents the case where MA is over the close price (so a sell signal is issued).

The area around zero is where each curve moves from absolute certainty to absolute uncertainty. The slope of the curve in this area determines the width of the values between which this transfer occurs. The steeper the slope, the smaller is the range of values on the x axis within which this transfer occurs and the smaller is the elasticity of the curve. Similarly, the more gentle the slope, the more progressive is the transfer from one stage to another and wider is the range of values on the x axis between absolute certainty and absolute uncertainty.

Differentiation of the Slope of the Curve

Every day, the minimum and maximum of each linguistic variable (e.g. MA105overCL) are calculated in order to define the x axis range. Therefore, if a unique value of b was used for all linguistic variables (i.e. the input variables of the fuzzy system), the slope of the curve would be different for every curve. To avoid this and to have curves with similar slopes, the value of b should be altered according to the minimum and maximum boundaries of the input variable (x). Hence, the value of b would be different for every input variable, but the slope would have the same characteristics in order to ensure that the relative x axis boundaries, where the differentiation of the degree of certainty for the specific order takes place, will remain the same. Moreover, since the minimum and maximum values of each input variable on the x axis are not symmetrical to zero, it should be noted that in order to have analogically the same slope of the curve in the negative and positive values, a different slope of the curve on the left and right sides of zero is necessary.

Taking into consideration all these characteristics, research for a wide range of b values needs to be conducted. However, in order to do this, the fuzzy system has to be completed by creating fuzzy rules. Initially, all fuzzy rules created have the same maximum weight, which is equal to one. Thereafter, for each b value, the output of the long-term fuzzy system is firstly calculated, followed by the calculation of the return of the portfolio and, finally, the rate of growth of this return.

It must be stressed, though, that, there is a potential weakness with these fuzzy rules, emerging from the fact that the profitability of the initial four technical indicators (from which the four input variables of the fuzzy system were created) is very uneven. Therefore, new fuzzy rules had to be created, where each rule was strengthened or weakened, according to the performance of the relevant technical indicator. After the completion of the new fuzzy system, the new fuzzy rules for each b value, the output of the long-term fuzzy system were again calculated. The return of the portfolio and the rate of growth for each return were also calculated. The combined results of all these tests are shown in .

Table 3. Returns of the long-term fuzzy system when the b parameter varies.

The results in imply that in both cases, i.e. with or without transaction costs, the best value of b equals to 2/1 of the relevant width on the x axis of each input variable. This value is chosen because after this point, the increasing rhythm of the return changes dramatically and it continuously decreases. This value of b will be used in the next stages of the current analysis since it is the value which achieves high returns of the fuzzy system, while simultaneously maintains the highest possible elasticity (so that the degree of certainty expressed by the slope of the curve does not change very abruptly).

As it is shown in , in total 16 fuzzy rules were created. The weights of the rules were given in a way to enhance those rules which contain the most profitable technical indicators giving a signal (Buy or Sell) in the same direction of the outcome of the rule.

Table 4. The rules which have been created for the long-term system.

The Performance of the Proposed Long-Term System in the ASE General Index

Markets change character over time (Kirkpatrick and Dahlquist Citation2011) and this is why a long study period is needed in order to extract useful and valid results. The time period for the performance tests was from 15/11/1996 to 5/6/2012, which includes all the changes made in the institutional framework of the ASE (1995), the entry of Greece into the European Exchange Rates Mechanism II (1998), the final entrance of the country into the Economic Monetary Union (2001), the characterisation of the ASE as a developed market and the Olympic Games of 2004 (Kenourgios and Samitas Citation2008; Liroudi et al. Citation2004). It also includes the Asian crisis (1997), the world financial crisis (2008) and the Greek fiscal crisis (2010). Overall, it includes three major bull markets and three major bear markets. On 5th June 2012, the ASE general index made the lowest low in the past 19 years.

The ASE general index during the 15-year period chosen had a negative return of −46,50% and this is also the exact return for the B&H strategy. On the other hand, the return of the proposed long-term system was 612,81% without taking into consideration the transaction costs, and 400,36% when transaction costs were considered (). Moreover, if the initial amount of 10.000€ was deposited in a safe account for the same period, taking into consideration the interest rates of every period, the total interest gained would have been 45,62%. It is obvious, therefore, that the return of the proposed system is quite positive, especially when this performance is compared with such a big loss of the ASE General Index, over the tested period. It should also be underlined that no interest gains were calculated for the part of the portfolio which is maintained in cash, which would have increased significantly the overall value of the portfolio.

Table 5. The return of the proposed system compared with the interest gained from a safe deposit account and the B&H strategy.

During the examined period (15/11/1996 to 5/6/2012), there were periods of bull and bear markets. In order to further explore the performance of the system during these distinctive periods, they were examined separately ().

It is found that for the first bull market (15/11/1996 to 17/9/1999), the performance for the B&H strategy was 613,74%, while the return of the proposed system was 437,89% if transaction costs were not subtracted, and 411,37% if they were subtracted (). For the second bull market (01/04/2003 to 31/10/2007), the performance for the B&H strategy was 261,75%, while the return of the proposed system was 108,98% (without transaction costs) and 97,83% (with transaction costs). Finally, for the third and smallest bull period (between 09/03/2009 and 14/10/2009), the performance for the B&H strategy was 97,15%, while the return of the proposed system was 39,54% without taking into consideration transaction costs and 38,25% with transaction costs considered.

Table 6. The major bull and bear markets of ASE between 15/11/1996 and 5/6/2012.

Table 7. The return of the proposed system during the three ASE bull market periods.

The results in also show that transaction costs have little effect on the results achieved by the proposed long-term fuzzy system and that they unevenly affect the return of the system. Thus, while for the first bull period the return of the system with transaction costs was roughly 6% lower than the return of the proposed system without transaction costs (411,37% compared with 437,89%), for the second bull market period it was 10% lower (97,83% compared with 108,98%), while for the third bull market it was roughly 3% lower than the return without transaction costs (38,25% compared with 39,54%). Probably, this is related to the number of transactions in each period, which is an indication of the frequency of the buy or sell signals produced by the proposed system (sensitivity of the long-term indices used). Since the bull market periods have different lengths (34, 54 and 7 months, respectively), transaction costs reduce the monthly performance of the system only by 0,78%, 0,76% and 0,18% (during the first, second and third bull market periods, respectively).

As far as bear markets are concerned, shows that in the first bear market the ASE general index had a negative return of −76,83% which equals to the performance of the B&H strategy, while the return of the proposed system was −32,56% in the absence of transaction costs and −37,54% when transaction costs were considered. During the second bear market, the B&H strategy return was again negative (−72,09%), while the proposed system had a return of −15,36% without transaction costs and −17,70% when transaction costs were considered. Finally, the B&H strategy for the third and largest ASE bear market again produced negative results (−83,54%), while the proposed system had a negative performance of −31,57% without transaction costs and −35,48% with transaction costs considered. Transaction costs reduce the monthly performance of the system by 0,12%, 0,15% and 0,12% (during the first, second and third bear market periods, respectively). The main conclusion that can be drawn by looking at these results is that the proposed system outperforms by far the B&H strategy in all three ASE bear market periods, even when transaction costs are considered.

Table 8. The return of the proposed system during the three ASE bear markets periods.

In general, the returns of the B&H strategy are higher than the returns of the proposed system in bull markets, while the opposite is observed during bear markets. This conclusion is valid even when transaction costs are considered. Transaction costs are higher during the three bull market periods (0,78%, 0,76% and 0,18% of the monthly cost, respectively) than during the three bear market periods (0,12%, 0,15% and 0,12% of the monthly cost, respectively). These results indicate that, with the exception of the third bull market period, transaction costs can be considered to be much higher, namely 5–7 times, in bull market periods compared with bear market periods. This finding can be attributed to the frequency of the transactions (signals), which is usually higher during bull market periods.

Conclusions

The proposed long-term fuzzy system was tested for the ASE general index for a long period (over 15 years, between 15/11/1996 and 5/6/2012) producing a 612,81% return. After taking into consideration transaction costs, the total return was 400,36%, which is exceptionally higher than the −46.50% of the B&H strategy in the ASE general index for the same 15-year period and the 45,62% interest gain, which might have been earned during the same period, if the total amount of the initial portfolio (cash) were deposited in a safe account. It should be noted here that no interest gains were added to the amount of the portfolio remained in cash, which would have increased considerably the final performance.

The system has achieved this performance mostly by avoiding big losses during bear markets since during bull markets the gains made were significantly lower than those under the B&H strategy. Therefore, it can be considered as a conservative system, which manages to achieve very satisfactory returns, even though the testing period was over 15 years, a rather long period. The noticeable high performance of the proposed system when compared with the buy and hold strategy suggests that it can be used as a valuable investment tool in the real world of stock trading.

The significance of the paper is two-fold. First, it examines whether the use of a few only, carefully selected common technical indicators, combined with a well-structured fuzzy system, can create a generic model for long-term forecasting investment proposals for portfolio management. Contrary to the usual practice of using as many as possible various technical indicators, the model was designed from the beginning to use a set of only four, very common, but with different constructive philosophy, trend following indicators. Although the research conducted in a preliminary stage has shown that if only the three indicators with the highest initial performances (i.e. not the classic simple moving average of 200 days) had been used, the returns would have been much higher. However, it was decided to develop the model as it was initially designed, in order to investigate the possibility of creating such a generic robust model. Second, it implements the inoculation of an old and rigid trading strategy of technical analysis, with the fuzzy subjective elements inherent in the real world of trading. This is achieved through the transformation of the classic trading strategy with appropriately designed membership functions and fuzzy rules of the fuzzy system.

Further research could focus on the identification of the right combination of the optimum number of the appropriate indicators. Also, the construction of three complementary fuzzy systems with different time frames, e.g. short, medium and long-term and the combination of them in a platform of fuzzy systems, which would constitute a new fuzzy system, could be the target of future research. Finally, according to the investor’s profile, it should be interesting to place different weights to the fuzzy systems, which will act as inputs of the platform.

References

  • Apostolou, Β., and N. G. Apostolou. 2004. Keys to investing in common stocks. 4th. Barrons Educational Series Inc: Hauppauge, NY.
  • Appel, G. 2005. Technical analysis: Power tools for active investors. Upper Saddle River, NJ: Financial Times Prentice Hall.
  • Araque, F., A. Salguero, R. Carrasco, and L. Martinez. 2008. Using fuzzy multi-attribute data mining in stock market analysis for supporting investment decisions. In Fuzzy engineering economics with applications, STUDFUZZ 233, ed. C. Kahraman, 289–306. Berlin, Heidelberg: Springer-Verlag.
  • Atsalakis, G. S., E. M. Dimitrakakis, and C. D. Zopounidis. 2011. Elliott wave theory and neuro-fuzzy systems, in stock market prediction: The WASP system. Expert Systems with Applications 38 (8):9196–206. doi:10.1016/j.eswa.2011.01.068.
  • Atsalakis, G. S., and K. P. Valavanis. 2009. Forecasting stock market short-term trends using a neuro-fuzzy based methodology. Expert Systems with Applications 36 (7):10696–707. doi:10.1016/j.eswa.2009.02.043.
  • Baba, N., and T. Nomura. 2005. An intelligent utilization of neural networks for improving the traditional technical analysis in the stock markets. In Knowledge-based intelligent information and engineering Systems. Lecture notes in artificial intelligence, LNAI 3681, ed. R. Khosla, R. J. Howlett and L. C. Jain, 8–14. Berlin, Heidelberg: Springer-Verlag.
  • Bao, D., and Z. Yang. 2008. Intelligent stock trading system by turning point confirming and probabilistic reasoning. Expert Systems with Applications 34 (1):620–27. doi:10.1016/j.eswa.2006.09.043.
  • Beka Be Nguema, M., C. Kolski, N. Malvache, and D. Waroux. 2000. Design of a human-error-tolerant interface using fuzzy logic. Engineering Applications of Artificial Intelligence 13 (3):279–92. doi:10.1016/S0952-1976(99)00061-5.
  • Bekiros, S. D. 2010. Fuzzy adaptive decision-making for boundedly rational traders in speculative stock markets. European Journal of Operational Research 202 (1):285–93. doi:10.1016/j.ejor.2009.04.015.
  • Bekiros, S. D., and D. A. Georgoutsos. 2007. Evaluating direction-of-change forecasting: Neurofuzzy models vs. neural networks. Mathematical and Computer Modelling 46 (1):38–46. doi:10.1016/j.mcm.2006.12.011.
  • Bishop, C. M. 2004. Neural networks for pattern recognition. New York: Oxford University Press.
  • Brock, W., J. Lakonishok, and B. LeBaron. 1992. Simple technical trading rules and the stochastic properties of stock returns. The. Journal of Finance 47 (5):1731–64. doi:10.1111/j.1540-6261.1992.tb04681.x.
  • Chang Chien, Y.-W., and Y.-L. Chen. 2010. Mining associative classification rules with stock trading data - A GA-based method. Knowledge-Based Systems 23 (6):605–14. doi:10.1016/j.knosys.2010.04.007.
  • Chang, P., and C. Liu. 2008. A TSK type fuzzy rule based system for stock price prediction. Expert Systems with Applications 34 (1):135–44. doi:10.1016/j.eswa.2006.08.020.
  • Chang, P. C., C. Y. Fan, and J. L. Lin. 2011. Trend discovery in financial time series data using a case based fuzzy decision tree. Expert Systems with Applications 38 (5):6070–80. doi:10.1016/j.eswa.2010.11.006.
  • Chavarnakul, T., and D. Enke. 2008. Intelligent technical analysis based equivolume charting for stock trading using neural networks. Expert Systems with Applications 34 (2):1004–17. doi:10.1016/j.eswa.2006.10.028.
  • Chen, M.-Y., and B.-T. Chen. 2014. Online fuzzy time series analysis based on entropy discretization and a Fast Fourier Transform. Applied Soft Computing 14:156–66. doi:10.1016/j.asoc.2013.07.024.
  • Cheng, C.-H., T.-L. Chen, and L.-Y. Wei. 2010. A hybrid model based on rough sets theory and genetic algorithms for stock price forecasting. Information Sciences 180 (9):1610–29. doi:10.1016/j.ins.2010.01.014.
  • Chenoweth, T., Z. Obradovic, and S. S. Lee. 1996. Embedding technical analysis into neural network based trading systems. Applied Artificial Intelligence 10 (6):523–42. doi:10.1080/088395196118416.
  • Chourmouziadis, Κ., and P. D. Chatzoglou. 2016. An intelligent short term stock trading fuzzy system for assisting investors in portfolio management. Expert Systems with Applications 43:298–311. doi:10.1016/j.eswa.2015.07.063.
  • Doeksen, B., A. Abraham, J. Thomas, and M. Paprzycki (2005). Real stock trading using soft computing models. International Conference on Information Technology: Coding and Computing, ITCC 2005, 2, 162–67. Las Vegas, Nevada, USA.
  • Dourra, H., and P. Siy. 2002. Investment using technical analysis and fuzzy logic. Fuzzy Sets and Systems 127 (2):221–40. doi:10.1016/S0165-0114(01)00169-5.
  • Dymova, L., P. Sevastianov, and P. Bartosiewicz. 2010. A new approach to the rule-base evidential reasoning: Stock trading expert system application. Expert Systems with Applications 37 (8):5564–76. doi:10.1016/j.eswa.2010.02.056.
  • Dymova, L., P. Sevastianov, and K. Kaczmarek. 2012. A stock trading expert system based on the rule-base evidential reasoning using Level 2 Quotes. Expert Systems with Applications 39 (8):7150–57. doi:10.1016/j.eswa.2012.01.077.
  • Dzikevicius, A., and S. Saranda. 2010. EMA versus SMA usage to forecast stock markets: The case of S&P 500 and OMX Baltic benchmark. Business: Theory and Practice 11 (3):248–55.
  • Esfahanipour, A., and W. Aghamiri. 2010. Adapted neuro-fuzzy inference system on indirect approach TSK fuzzy rule base for stock market analysis. Expert Systems with Applications 37 (7):4742–48. doi:10.1016/j.eswa.2009.11.020.
  • Evans, C., K. Pappas, and F. Xhafa. 2013. Utilizing artificial neural networks and genetic algorithms to build an algo-trading model for intra-day foreign exchange speculation. Mathematical and Computer Modelling 58 (5–6):1249–66. doi:10.1016/j.mcm.2013.02.002.
  • Fadlalla, A., and F. Amani. 2014. Predicting next trading day closing price of Qatar exchange index using technical indicators and artificial neural networks. Intelligent Systems in Accounting, Finance and Management 21 (4):209–23. doi:10.1002/isaf.v21.4.
  • Galindo, J., A. Urrutia, and M. Piattini. 2006. Fuzzy databases: Modelling, design and implementation. Hershey: Idea Group Publishing.
  • Garcia-Crespo, A., J. L. Lopez-Cuadrado, I. Gonzalez-Carrasco, R. Colomo-Palacios, and B. Ruiz-Mezcua. 2012. SINVLIO: Using semantics and fuzzy logic to provide individual investment portfolio recommendations. Knowledge-Based Systems 27:103–18. doi:10.1016/j.knosys.2011.08.012.
  • Garibaldi, J. M. 2005. Fuzzy Expert Systems. In Do Smart Adaptive Systems Exist?: Best Practice for Selection and Combination of Intelligent Methods. STUDFUZZ 173, ed. B. Gabrys, K. Leiviska and J. Strackeljan, 105–32. Berlin, Heidelberg: Springer-Verlag.
  • Gehrig, T., and L. Menkhoff. 2006. Extended evidence on the use of technical analysis in foreign exchange. International Journal of Finance and Economics 11 (4):327–38. doi:10.1002/ijfe.301.
  • Jasemi, Μ., A. M. Kimiagari, and Α. Memariani. 2011. A modern neural network model to do stock market timing on the basis of the ancient investment technique of Japanese Candlestick. Expert Systems with Applications 38 (4):3884–90. doi:10.1016/j.eswa.2010.09.049.
  • Kahn, M. N. 2010. Technical analysis plain and simple: Charting the markets in your language. 3rd ed. Upper Saddle River, New Jersey: Financial Times Press.
  • Katz, J. O., and D. L. McCormick. 2000. The encyclopaedia of trading strategies. New York: McGraw-Hill.
  • Kenourgios, D., and A. Samitas. 2008. The day of the week effect patterns on stock market return and volatility: Evidence for the Athens stock exchange. International Research Journal of Finance and Economics 15:78–89.
  • Kirkpatrick, C. D., and J. R. Dahlquist. 2011. Technical analysis - The complete resource for financial market technicians. 2nd ed. Upper Saddle River, New Jersey: Financial Times Press.
  • Kuang, P., M. Schoder, and Q. Wang. 2014. Illusory profitability of technical analysis in emerging foreign exchange markets. International Journal of Forecasting 30 (2):192–205. doi:10.1016/j.ijforecast.2013.07.015.
  • Kumar, P. R., and V. Ravi. 2007. Bankruptcy prediction in banks and firms via statistical and intelligent techniques - A review. European Journal of Operational Research 180 (1):1–28. doi:10.1016/j.ejor.2006.08.043.
  • Lan, Q., D. Zhang, and L. Xiong. 2011. Reversal pattern discovery in financial time series based on fuzzy candlestick lines. Systems Engineering Procedia 2:182–90. doi:10.1016/j.sepro.2011.10.021.
  • Levich, R. M., and V. Poti. 2015. Predictability and ‘good deals’ in currency markets. International Journal of Forecasting 31 (2):454–72. doi:10.1016/j.ijforecast.2014.10.001.
  • Liroudi, A., D. Aggelidis, A. Dasilas, and A. Georgakoulias (2004). Seasonalities in the Greek stock market: The day of the week phenomenon. 3rd Annual conference of the Hellenic Finance and Accounting Association (H.F.A.A.)-3&4/12/2004, National and Kapodistrian University of Athens. Athens, Greece.
  • Majhi, R., G. Panda, and G. Sahoo. 2009. Development and performance evaluation of FLANN based model for forecasting of stock markets. Expert Systems with Applications 36 (3):6800–08. doi:10.1016/j.eswa.2008.08.008.
  • Melin, P., A. Mancilla, M. Lopez, and O. Mendoza. 2007. A hybrid modular neural network architecture with fuzzy Sugeno integration for time series forecasting. Applied Soft Computing 7 (4):1217–26. doi:10.1016/j.asoc.2006.01.009.
  • Menkhoff, L. 2010. The use of technical analysis by fund managers: International evidence. Journal of Banking & Finance 34 (11):2573–86. doi:10.1016/j.jbankfin.2010.04.014.
  • Metastock Professional. 2002. User’s manual v. 8.0. Salt Lake City: Equis International.
  • Milionis, A. E., and E. Papanagiotou. 2008. On the use of the moving average trading rule to test for weak form efficiency in capital markets. Economic Notes: A Review of Banking, Finance and Monetary Economics 37 (2):181–201. doi:10.1111/ecno.2008.37.issue-2.
  • Neely, C. J., and P. A. Weller. 1999. Technical trading rules in the European monetary system. Journal of International Money and Finance 18 (3):429–58. doi:10.1016/S0261-5606(99)85005-0.
  • Negnevitsky, M. 2005. Artificial intelligence. A guide to intelligent systems. 2nd ed. Harlow, England: Addison-Wesley.
  • Oberlechner, T. 2001. Importance of technical and fundamental analysis in the European foreign exchange market. International Journal of Finance and Economics 6 (1):81–93. doi:10.1002/ijfe.145.
  • Papoulias, G. 1990. Stock Market investments. Analysis and management. Athens: D. Marathias & Sia (in Greek).
  • Patel, J., S. Shah, P. Thakkar, and K. Kotecha. 2015. Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Systems with Applications 42 (1):259–68. doi:10.1016/j.eswa.2014.07.040.
  • Pereira, C. C., and A. G. B. Tettamanzi. 2008. Fuzzy-evolutionary modeling for single-position day trading. In Natural Computing in Computational Economics and Finance, ed. A. Brabazon and M. O’Neill., vol. 100, 131–59. Berlin, Heidelberg: Springer-Verlag.
  • Peters, E. E. 1994. Fractal market analysis: Applying chaos theory to investment and economics. New York: Willey & Sons.
  • Pokropinska, A., and R. Scherer. 2008. Financial prediction with neuro-fuzzy sys-tems. In ICAISC 2008, LNAI 5097, ed. L. Rutkowski, R. Tadeusiewicz, L. S. Zadeh, J. M. Zurada, 1120–26. Berlin, Heidelberg: Springer-Verlag.
  • Pring, M. J. 2014. Technical analysis explained. 5th ed. New York: McGraw-Hill.
  • Quah, T. S. 2008. DJIA stock selection assisted by neural network. Expert Systems with Applications 35 (1–2):50–58. doi:10.1016/j.eswa.2007.06.039.
  • Sevastianov, P., and L. Dymova. 2009. Synthesis of fuzzy logic and Dempster-Shafer theory for the simulation of the decision-making process in stock trading systems. Mathematics and Computers in Simulation 80 (3):506–21. doi:10.1016/j.matcom.2009.06.027.
  • Soto, R. C. 2007. Fuzzy backpropagation neural networks for nonstationary data prediction. In Foundations of fuzzy logic and soft computing, IFSA 2007, LNAI 4529, ed. P. Melin, O. Castillo, L. T. Aguilar, J. Kacprzyk and W. Pedrycz, 318–27. Berlin, Heidelberg: Springer-Verlag.
  • Svalina, I., V. Galzina, R. Lujic, and G. Simunovic. 2013. An adaptive network-based fuzzy inference system (ANFIS) for the forecasting: The case of close price indices. Expert Systems with Applications 40 (15):6055–63. doi:10.1016/j.eswa.2013.05.029.
  • Tan, A., C. Quek, and K. C. Yow. 2008. Maximizing winning trades using a novel RSPOP fuzzy neural network intelligent stock trading system. Applied Intelligence 29 (2):1161–128. doi:10.1007/s10489-007-0055-1.
  • Taylor, N. 2014. The rise and fall of technical trading rule success. Journal of Banking & Finance 40:286–302. doi:10.1016/j.jbankfin.2013.12.004.
  • Tilakaratne, C. D., M. A. Mammadov, and S. A. Morris (2007). Effectiveness of using quantified intermarket influence for predicting signals of stock markets. Paper in 6th Australian data mining conference, Gold Coast, Australia, 167–75.
  • Vaidehi, V., S. Monica, S. S. Mohamed, M. Deepika., and S. Sangeetha (2008). A prediction system based on fuzzy logic. Proceedings of the World Congress on Engineering and Computer Science, USA, San Francisco.
  • Vanstone, B., and G. Finnie. 2009. An empirical methodology for developing stockmarket trading systems using artificial neural networks. Expert Systems with Applications 36 (3):6668–80. doi:10.1016/j.eswa.2008.08.019.
  • Wang, J., and G. Wang. 2010. AbleTrend: Identifying and analyzing market trends for trading success. Hoboken, New Jersey: John Wiley & Sons.
  • Wang, J. L., and S. H. Chan. 2009. Trading rule discovery in the US stock market: An empirical study. Expert Systems with Applications 36 (3):5450–55. doi:10.1016/j.eswa.2008.06.119.
  • Wei, L.-Y. 2013. A hybrid model based on ANFIS and adaptive expectation genetic algorithm to forecast TAIEX. Economic Modelling 33:893–99. doi:10.1016/j.econmod.2013.06.009.
  • Wilder, J. W. 1978. New concepts in technical trading systems. Greensboro: Trend Research.
  • Yu, H., G. V. Nartea, C. Gan, and L. J. Yao. 2013. Predictive ability and profitability of simple technical trading rules: Recent evidence from Southeast Asian stock markets. International Review of Economics and Finance 25:356–71. doi:10.1016/j.iref.2012.07.016.
  • Zadeh, L. A. 1975. The concept of a linguistic variable and its application to approximate reasoning. Part I. Information Sciences 8 (3):199–249. doi:10.1016/0020-0255(75)90036-5.
  • Zarandi, M. H. F., B. Rezaee, I. B. Turksen, and E. Neshat. 2009. A type-2 fuzzy rule-based expert system model for stock price analysis. Expert Systems with Applications 36 (1):139–54. doi:10.1016/j.eswa.2007.09.034.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.