The objective of this research is to examine the trends in the exchange rate markets of the ASEAN-5 countries (Indonesia (IDR), Malaysia (MYR), the Philippines (PHP), Singapore (SGD), and Thailand (THB)) through the application of dynamic moving average trading systems. This research offers evidence of the usefulness of the time-varying volatility technical analysis indicator, Adjustable Moving Average (AMA′) in deciphering trends in these ASEAN-5 exchange rate markets. This time-varying volatility factor, referred to as the Efficacy Ratio in this paper, is embedded in AMA′. The Efficacy Ratio adjusts the AMA′ to the prevailing market conditions by avoiding whipsaws (losses due, in part, to acting on wrong trading signals, which generally occur when there is no general direction in the market) in range trading and by entering early into new trends in trend trading. The efficacy of AMA′ is assessed against other popular moving-average rules. Based on the January 2005 to December 2014 dataset, our findings show that the moving averages and AMA′ are superior to the passive buy-and-hold strategy. Specifically, AMA′ outperforms the other models for the United States Dollar against PHP (USD/PHP) and USD/THB currency pairs. The results show that different length moving averages perform better in different periods for the five currencies. This is consistent with our hypothesis that a dynamic adjustable technical indicator is needed to cater for different periods in different markets.
Citation: Chan Phooi M’ng J, Zainudin R (2016) Assessing the Efficacy of Adjustable Moving Averages Using ASEAN-5 Currencies. PLoS ONE 11(8): e0160931. https://doi.org/10.1371/journal.pone.0160931
Editor: Alejandro Raul Hernandez Montoya, Universidad Veracruzana, MEXICO
Received: December 17, 2015; Accepted: July 27, 2016; Published: August 30, 2016
Copyright: © 2016 Chan Phooi M’ng, Zainudin. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: Data are available from http://www.bloomberg.com/professional/foreign-exchange/.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Algorithmic trading has evolved exponentially in recent years and, along with it, interest in high-frequency trading has grown remarkably . Accompanying this interest, there has been a number of studies of computational trading algorithms  that users find useful for investment timing . These technical analysis elements are also relatively common in the foreign exchange markets , .
The problem confronting most financial market traders is how to differentiate a ranging market (when the price movements are confined between a lower boundary of support and an upper boundary of resistance) from a trending market when prices are steadily moving in a general upward or downward direction) . It is important for the trader to correctly identify the market condition, as a ranging market requires technical analysis tools (such as leading momentum rate of change) that differ from those employed in a trending market (like lagging moving average). Identifying the wrong market condition and employing the wrong trading strategy can result in unnecessary losses known as whipsaws . In an attempt to overcome this, our paper introduces a dynamic adjustable technical indicator, the Adjustable Moving Average′ (AMA′), to better time trading decisions in foreign exchange markets where studies show depleting abnormal returns in recent years , , , , . AMA′ is intended to avoid some of these whipsaws and to allow early entry into new trends by employing a time-varying trend deciphering ratio called the Efficacy Ratio.
The research objectives of this study are twofold: i) to investigate the time-varying volatility characteristic of these five currencies (Indonesian rupiah (IDR), Malaysian Ringgit (MYR), Philippine Peso (PHP), Singapore Dollar (SGD), and Thai Baht (THB)); and ii) to assess the efficacy of moving averages, and in particular that of AMA′, to capture the dynamic nonlinear movements of these exchange rates in order to generate abnormal returns beyond those produced by the passive buy-and-hold, from 2005 to 2013 for the training in-sample period and 2014 for the out-of-sample period. The hypotheses tested in this study are that the returns from moving average technical rules generate significantly higher returns than the passive buy-and-hold, and that a dynamic time-varying indicator (like the adjustable AMA′) is more suitable than the popular and most optimized fixed length moving averages that are determined through hindsight. Apart from AMA′, this paper also evaluates the efficacy of eight technical trading rules, from the traditional simple moving averages used by Brock et al.  and Lukac et al.  to the dynamic AMA′ approach. The passive buy-and-hold strategy serves as the control. To increase the robustness of the findings, the results are also compared to those of optimized trading models. The findings show that these five ASEAN currencies exhibit time-varying volatilities throughout the sampling period. Consistent with earlier studies on currencies, the evidence supports the possibility of forecasting future price movements by analyzing only historical foreign exchange rates , , , . The results of this study show that, after taking into account slippage costs (the differences between the theoretical execution prices, usually the last prices traded, and the actual prices executed), on the whole, the nine popular technical moving-average rules outperform the passive buy-and-hold in terms of abnormal returns. Furthermore, this study finds that the returns of the proposed AMA′ are comparable to those of the most optimized portfolio and can be used for trading in PHP and THB in the near future. More importantly, this study’s findings show that this new technical analysis indicator, AMA′, can be profitably employed in financial markets. The implications of our findings are i) from the perspective of financial market researchers, this study introduces a method of employing past volatilities to forecast the future prices, and ii) from the point of view of market practitioners, and especially of professional traders on the proprietary trading desks of financial institutions, AMA′ is ready to be implemented in their current trading strategies, especially if they are trading in United States Dollars against Philippines Peso (USD/PHP), or/and United States Dollars against Thai Baht (USD/THB).
This paper proceeds as follows. The next section presents a brief description of ASEAN-5 currencies and their daily returns. The third section describes the trading systems used. The fourth section discusses empirical findings. The final section concludes.
Allen and Taylor , Lee and Mathur , Levich and Thomas , Neely et al. , and Cheung and Wong  are amongst the seminal works evaluating the predictability power of technical trading rules in various foreign exchange markets. Levich and Thomas  opine that excessive speculation causes exchange rates to depart from their fundamental equilibrium for protracted periods of time. Other contributions involving more advanced techniques include those of Cheung and Wong , Gehrig and Menkhoff , Andrada and Fernandez , Zhang  and Jin and Kim .
Technical analysis is the forecasting of price movements by analyzing past market data . It establishes specific trading rules using indicators, such as moving averages, to decipher behavioral patterns in time-series data , , , , , , , , . The objective is to maximize profits while minimizing the risk of losses , . The main rationale behind using the moving-average rule is that it provides a means of determining the general direction or trend of a market by smoothing out unnecessary noise . This is especially meaningful for time-series prices, which are nonlinear because moving-average rules could capture information ignored by their linear counterparts , , , . According to Brock et al. , the most popular moving-average rule is the 1–200 rule, in which the short period is one day and the long period is 200 days. Other common standards include the 1–50, 1–150, 5–200, and 2–200 rules , .
Even though the efficient market and random walk hypotheses contradict this approach by affirming that all public information in the market is immediately reflected in prices, and that abnormal returns can never be made with only knowledge of historical data , empirical evidence however, indicates that technical trading rules can produce abnormal profits in foreign exchange markets , . Nevertheless, many have also highlighted the existence of a slow-moving downtrend for this kind of profitability over the last decade , , . It can be seen that, as time passes, the direction of price changes converges to fit a geometric distribution . To outperform the passive buy-and-hold in foreign exchange markets, increasingly complicated trading rules are needed , which might be a consequence of increasingly efficient market conditions in these markets , , , , , , . If this were true, no profitable position could be gained from trading rules or technical analysis, since the prices of these markets would already reflect all relevant information .
Many studies have suggested that exchange rate volatility behaves non-monotonically  and that the market’s volatility can be used as an indicator of signs of maturation . Despite this time-varying volatility element, most technical analyses have deployed simple moving average techniques in their estimations , ,. Black  finds that technical trading techniques are still lacking in accounting for the varying volatility clustering found in most financial time-series data. Gandolfi et al.  address time-varying volatilities in their study by employing an excess “volatility” technical indicator—the ratio of the 10-day standard deviation of closing prices to the 50-day standard deviation of closing prices—in order to determine the weights used in their innovative Moving Average Convergence Divergence (MACD) trading system. Noor et al.  employs a ratio of the 34-day standard deviation of closing prices to the 6-day standard deviation of closing prices to determine the length of the moving average used in their trading system, the Adjustable Bands Z-Test (ABZ′). Using the same concept, this paper introduces the Efficacy Ratio (the ratio of the most optimized parameter, n, divided by its square-root), to determine the appropriate length of AMA' suitable to the prevailing trend in different periods. The value of n is determined from the training in-sample period and employed in the out-of-sample period to determine the most suitable AMA's length to generate appropriate trading signal in a timely manner.
Unlike conventional methods, AMA′ automatically generates adaptive parameter to fit historical and current data. AMA′ captures a larger portion of the trend and, ultimately, greater abnormal profits by routinely adjusting the parameter according to prevailing market condition, whether ranging or trending. This is consistent with recent findings that statistical learning methods have produced better out-of-sample results than most single and fixed moving-average rules , .
The data used in this research are the exchange rate values of the currencies of the ASEAN-5 countries (Indonesian Rupiah (IDR), Malaysian Ringgit (MYR), Philippines Peso (PHP), Singapore Dollar (SGD), and Thailand Baht (THB)) quoted against the United States Dollar (USD)). These data were collected from the Bloomberg database for the period from January 2, 2005 to December 31, 2014. This period consists of two subperiods: i) for the training in-sample period from January 2, 2005 to December 31, 2013 and ii) for the out-of-sample period from January 2, 2014 to December 31, 2014. We selected these periods because we wanted to include extended periods of stable appreciation of these currencies from the beginning of 2005 to the turbulent period of volatile depreciation since the end of 2013. All the currencies are actively traded, so the problems associated with nonsynchronous trading should be of little concern.
Table 1 shows the statistical description of these currencies for each year from 2005 to 2013. From the different standard deviations recorded each year for each of the currencies, it can be seen that each displays time-varying volatilities.
The daily spot exchange rates are converted into daily returns as follows: (1.0) where Ri is the return of the exchange rate of each currency, while Ct and Ct-1 are the exchange rates determined at the close of days t and t-1, respectively. The summary statistics of the returns are shown in Table 2.
Table 2 shows the statistical description of the five exchange rate returns for the in-sample period from January 2, 2005 to December 31, 2013. The results show that IDR and MYR have negative daily average returns of 0.01% and 0.004% respectively; PHP, SGD and THB show positive daily average returns of 0.0054%, 0.0058%, and 0.003% respectively. The daily movements of IDR and MYR are very volatile, as indicated by the large standard deviations of 0.0059 and 0.0045, compared with the smaller standard deviations of 0.0035, 0.0035, and 0.0032 recorded for PHP, SGD, and THB respectively. The IDR, MYR, and SGD distributions are positively skewed, while the PHP and THB distributions are negatively skewed. The kurtosis of the currencies’ returns indicates that all their distributions are leptokurtic. The Jarque–Bera test results confirm that the distributions of the daily returns of these currencies are not normal.
Table 2 shows that IDR and MYR, which depreciated the most against USD, have the highest and second highest volatilities of the ASEAN-5 currencies respectively. PHP, SGD, and THB, which remain relatively stable with slightly positive daily means, have smaller and quite similar standard deviations.
The figs show that the volatilities of each currency are dynamically changing from high volatility to small volatility, and vice versa. It can be seen from the figs above that the volatility element of each currency is dynamically changing all the time, and can be said to be time-varying.
IDR is the most volatile currency of the ASEAN-5 currencies. MYR is the second most volatile currency after being unpegged at 3.80 from July 22, 2005 to the present. It began strengthening by 11% in 2006, but has depreciated since then, at 9% the following year. It stayed close to 3.50 for most of 2008, 2009, and 2010. PHP spent most of 2006, 2007, and 2008 appreciating, and lost its gains in 2009. It then continued its appreciation in 2010, 2011, and 2012. It depreciated slightly in 2013 and 2014. SGD spent most of the 2006–2012 period appreciating before losing nearly all its gains in 2013 and 2014. THB’s pattern of appreciation and depreciation is very similar to SGD in this period.
IDR and MYR displayed high volatilities during the subprime period in 2008 and showed lower variations in other periods. PHP, THB, and SGD were relatively stable throughout the sampling period.
The aim of this research is to ascertain whether one or more of the technical trading rules are superior to the passive buy-and-hold strategy, as advocated by Fama . We thus employed the eight most commonly used technical indicators in the currencies market, as well as in the most popular and cited studies on technical analysis, namely Brock et al.  and Lukac et al. , alongside our proposed AMA′. Similar to these studies , , the passive buy-and-hold return is commonly used as the market benchmark. The eight most commonly used technical indicators found in Brock et al.  and Lukac et al. ; as well as in current foreign exchange market, and our proposed trading model are:
- 5-day Simple Moving Average (SMA5);
- 20-day Simple Moving Average (SMA20);
- Moving Average Crossover (MAC);
- Moving Average Convergence Divergence (MACD);
- Kaufman Adaptive Moving Average (KAMA);
- 1% Bands from 20-day Moving Average (MA20,1%);
- The most optimized moving averages on hindsight (Opt MAp) for the portfolio of these five currencies (as an ideal benchmark);
- The optimized moving average on hindsight (Opt Mac) for each individual currency (as comparisons of ideal benchmarks); and
A trading model is regarded as ideal if it meets the following criteria:
- it should not produce very large losses or exhibit any net large losses in any year;
- the model should work well both in the testing stage and in practice, and it should automatically adjust to shifts in parameters; and
- it must produce abnormal returns even after accounting for transaction and slippage costs.
This study thus adopts a similar testing approach based on the technical trading rules specified by Brock et al.  and other innovations using moving averages, which include variable-length and fixed-length moving-average rules , .
The following notes summarize the nine methods used in the back-tests:
5-day Simple Moving Averages (SMA5)
The 5-day simple moving average used by Brock et al.  and Lukac et al.  is a popular and simple mechanical trend trading system. This moving average is referred to as SMA (C,5,0%), where C represents the closing price, 5 is the five-period moving average, and 0% refers to 0% from the simple moving average. The moving average is computed as follows: (2.0) where SMA is simple moving average, n is 5 days, and Ct is the closing price at period t for each currency (USD/local currency). Five days is selected as the period as there are five trading days in a week. When Ct > SMA5t, we buy USD (selling the corresponding ASEAN-5 currency); otherwise, we sell USD.
20-day Simple Moving Averages (SMA20)
The most popular simple technical indicator used in the foreign exchange market is the 20-day simple moving average , . This variable moving average is referred to as SMA (C,20,0%), where C represents the closing price, 20 is the 20-period moving average, and 0% refers to 0% from the simple moving average. The 20-day moving average is popularly used and quoted as there are 20 trading days in a month.
When Ct > SMA20t, we buy USD (selling the corresponding ASEAN-5 currency); otherwise, we sell USD.
3-day and 21-day Moving Averages Crossover (MAC 3,21)
Similar to Brock et al. , we apply the moving averages crossover, also known as the Variable Moving Average (3,21,0%), where 3 refers to the 3-day moving average period, 21 refers to 21-day moving period and 0% refers to 0% from the averages. A buying signal is generated when SMA3t > SMA21t; a selling signal otherwise. The moving-average lengths of 3 and 21 days are most commonly used by market practitioners (as indicated by the default parameter setting in Bloomberg) for the moving average crossover.
Moving Average Convergence Divergence (MACD)
Since its introduction by Appel , Moving Average Convergence Divergence (MACD) has become one of the most popular technical indicators used and quoted, even though many retail investors do not know how to calculate it. This technical indicator subtracts a longer-term exponential moving average (EMAlt) from a shorter-term exponential moving average (EMAst). MACDt is calculated as follows: (3.0) where (3.1) (3.2)
Kaufman Adaptive Moving Average (KAMA)
To vary the moving average according to market conditions, Kaufman  allots different weights to current data and past smoothened data, using an Efficiency Ratio (ER), as reflected in the following equation: (4.0) where: (4.1) (4.2) in which Ct denotes the most current close and Ct-1 is the previous close. If Ct > KAMAt, the signal is to buy; otherwise, the signal is to sell.
Moving Average Envelope Band (SMA (1,20,1%))
To overcome the complications resulting from whipsaws in a ranging market, a certain percentage band above and below the moving average is added. In Brock et al. , this technical trading rule is referred to as SMA(1,20,1%), where a 1% band is constructed above and below the 20-day simple moving average. To construct the upper band, 1% is added to the 20-day simple moving average; to establish the lower band, 1% is subtracted from the 20-day moving average. The level 1% above the moving average gives additional confirmation of an uptrend, while the 1% lower mark confirms the downtrend. A buy-on-uptrend signal is called upon when the closing price crosses the upper 1% band. An exit-long signal is triggered when the closing price returns below the upper 1% band. Similarly, a sell-on-downtrend signal will be prompted when the closing price dips below the lower 1% band, and an exit-short signal will be generated when the price bounces back above the lower 1% band.
Benchmark Model: The Most Optimized Simple Moving Average (OptMA) for the portfolio of ASEAN-5 currencies
To maintain robustness in our technical analysis performance evaluation, besides benchmarking against the passive buy-and-hold strategy, we also compared the above trading rules with the most optimized parameter of a simple moving average based on historical performance on the portfolio of ASEAN-5 currencies. While only guesswork can suggest most optimized parameter in future, from the back-tests conducted in hindsight, 19 is the most optimized parameter within the range of 1 to 200 days for the combined portfolio of these ASEAN-5 currencies for this given in-sample period.
Benchmark Models: The Optimized Simple Moving Average (OptMA) for each of ASEAN-5 currencies
As can be seen in Table 2, the different currency returns have different volatilities. Additional optimization exercises are thus conducted for each individual currency separately during the in-sample period, and the most optimized moving average for IDR is confirmed to be 19; and 22, 3, 12, and 3 for MYR, PHP, SGD, and THB, respectively. It can be seen that longer length moving averages are more suitable for IDR and MYR, which recorded the highest volatilities; the shorter moving averages fit the more stable and predictable PHP, SGD, and THB.
Adjustable Moving Average′ (AMA′)
Studies have shown the existence of time-varying volatility in financial and economic time-series data , , . It can also be seen from Table 1, as well as from Figs 1–5, that each different currency experiences different volatility in different years. Following this observation, the Adjustable Moving Average′ (AMA′) could prove useful, as it is capable of adjusting the trading rule in response to prevailing volatility condition. While Gandolfi et al.  use the excess volatility ratio and KAMA uses the Efficiency Ratio to allocate the weights of current and past smoothened data , AMA′ changes each period length of the moving average according to the prevailing Efficacy Ratio. In this paper, AMA′ uses a ratio of long-term standard deviation over short-term standard deviation. This new indicator is referred to as the Efficacy Ratio (vt). The technical indicator called the Adjustable Moving Average (AMA′) is then determined as follows: (6.0) where vt is the Efficacy Ratio and (σlt is the long-term standard deviation, σst is the short-term standard deviation).
If Ct > AMA′t, then the signal is to buy USD. If Ct < AMA′t, then the signal is to sell USD. This Efficacy Ratio (Eq 6.0) is a time-varying parameter that is automatically adjusted according to the current market condition. The Efficacy Ratio generates a longer moving average length when the market moves within a certain trading range for a continuous period of time. It generates a shorter length when the closing prices are trending. This tests the hypothesis that different market conditions require dynamic moving averages to generate appropriate trading signals.
Note that AMA′t adjusts and follows to the underlying currency accordingly. We use the nine estimation methods to test the hypothesis that, in the long run, mechanical trading rules generate significantly higher returns than buy-and-hold, that is:
H1: Mechanical trading rules generate excess return compared to buy-and-hold.
As foreign exchange does not incur transaction costs, to account for possible slippages (when the order is executed at a price worse than the last traded price), this study adds one tick (minimum fluctuation) for slippage. Slippage is a real issue in actual trading.
Results and Discussion
The results show that, on the whole, even after taking slippage costs into account, the eight popular technical moving-average rules in the market and our proposed AMA′ generate significantly higher returns than the passive buy-and-hold, while the AMA′ generates significantly higher returns than the other six moving-average rules and is comparable to the portfolio’s optimized 19-day Moving Average and the individual currency’s optimized Moving Average. This follows and is consistent with the observation of time-varying volatilities in the ASEAN-5 currencies.
Table 3 shows the test results for buy-and-hold and the nine mechanical trading rules for the ASEAN-5 currencies in the training in-sample period from 2005 to 2013. The results show that all nine trading rules performed better than the passive strategy for MYR, PHP, SGD and THB, even after considering and adjusting 1 tick per transaction for the slippage cost. For IDR, all mechanical trading rules except AMA′ generated higher returns than the benchmark strategy.
The most optimized simple moving average parameter between 1 to 200 in the back-test that generated the most profit for the portfolio of these five currencies is the 19-day simple moving average (traders generally usually use a 20-day or 21-day simple moving average, as there are about 20 or 21 trading days in a month). The Optimized SMA19 seems to best cater to IDR’s volatility, while AMA′ adjusts itself to suit MYR, PHP, and THB.
The t-test is performed to confirm H1. Based on the results, we find that THB records the greatest profit for five trading rules (SMA20, MAC, KAMA, OptMA19 and AMA′) against the conservative buy-and-hold. Four trading rules (MAC, MACD, MA20,1% and OptMA19) produce greater profits than the conservative strategy for SGD. SMA20, OptMA19 and AMA′ outperforms buy-and-hold for PHP. Only AMA′ outperforms buy-and-hold for MYR. In contrast to these results, none of the trading rules could significantly outperform the conservative buy-and-hold strategy for IDR. The t-test statistics show that the returns of AMA′ are significantly higher than those of buy-and-hold for MYR, PHP and THB. The most optimized n and √n, as the long-term and short-term standard deviations for MYR, PHP and THB, are 18, 32 and 25 respectively.
In summary, the results of the t-test show that technical trading rules like AMA′ are better at generating profits, as their parameters can be adjusted to the time-varying volatilities of the ASEAN-5 currencies other than IDR.
Table 4 presents the out-of-sample returns from buy-and-hold and the nine mechanical trading rules for the ASEAN-5 currencies for the period from January 2, 2014 to December 31, 2014. The purpose of testing the out-of-sample returns is to validate the future use of optimized trading parameters for optimized moving averages and AMA′. The returns of the optimized trading rules are generated using the most optimized parameters learnt during the training in-sample period (from January 2, 2005 to December 31, 2013) for simple moving average and AMA′ obtained in the same training in-sample period. The out-of-sample results for PHP and THB validate the use of AMA′ employing 32 and 25 respectively as the most optimized n. AMA′ generated the greatest return for IDR in 2014. Buy-and-hold outperforms all nine mechanical trading rules for MYR and SGD for 2014.
Table 5 presents the correlation estimations between the volatilities of the currencies and the profits of the trading rules. The results show that most of the correlations are positive, except for KAMA(PHP) and MACD(SGD). In line with risk and return theory, the findings suggest that when the exchange rates are volatile, technical traders are able to generate higher returns. Therefore, traders should be prepared to tolerate higher risks in volatile markets for higher returns.
As shown in Table 6, the annual mean returns (the average of net return after slippage costs) using the mechanical technical rules outperform the buy-and-hold for all the ASEAN-5 currencies for the entire period under review from 2005 to 2014. This supports our hypothesis that mechanical technical rules can generate higher returns than the passive threshold buy-and-hold advocated by Fama .
Even though IDR depreciated while the other four ASEAN currencies appreciated against USD during this period from 2005 to 2014, the annual gain from holding this portfolio of currencies is -2%, whereas the annual gains from trading these currencies using mechanical technical rules OptSMA19, MAC or KAMA, OptSMAc, and AMA′ are 20.42%, 20.30%, 19.71% and 17.18% respectively. The best technical indicator for IDR, MYR, PHP and SGD is MAC, while for THB, KAMA is best. By optimizing past historical data, we can find the most suitable mechanical technical rule and the most profitable parameter to employ so as to obtain the highest return. For the out-of-sample period, we can only validate that AMA′ with 32 for its long-term standard deviation continues to generate the highest return for PHP, while AMA′ with 25 for its long-term standard deviation can be used for THB.
This study has thus found some evidence that the random walk hypothesis, as advocated by Fama , may not fully explain the abnormal returns that can be made with technical trading rules, like moving averages, which are based on historical data. This evidence supports the earlier finding of Neely et al.  that technical trading rules can produce abnormal profits for foreign exchange markets. This is also consistent with the findings from Brock et al. , Lukac et al. , Irwin and Park , and Sullivan et al.  that a moving average generates higher returns than the buy-and-hold and that, in recent years, foreign exchange trading can be profitable using more innovatively adaptive trading systems , . The finding that different length moving averages are suitable for different currencies for different periods also supports the finding of Gondolfi et al. . For IDR, in the out-of-sample period, Optimized SMA19 offers the best return; for MYR, PHP, and THB, AMA′ offers the highest returns.
Using the five ASEAN currencies for the period 2005 to 2014, this study assesses the efficacy of nine technical trading rules, including AMA′, against buy-and-hold. The results show that, except for the single case of AMA′ not being able to outperform buy-and-hold during the in-sample period for IDR, all the trading models are able to outperform the passive buy-and-hold strategy as they are able to capture abnormal returns on downtrends as well as uptrends found in these ASEAN-5 currencies. AMA′ generates the highest annual mean returns for MYR, PHP and THB while Opt SMA10 and Opt SMA 12 produce the most annual mean returns for IDR and SGD respectively. Each of the ASEAN-5 currencies has displayed inherent distinct volatility characteristic in different period. Thus different length moving average is required to cater to the different market condition. This finding is consistent with the studies conducted by Brock et al. , Lukac et al. , Andrada-Felix et al. , Kwon and Kish , and Sullivan et al. . While simple moving-average rules like OptSMA19 and Opt SMAc outperformed the other technical models ex-post, ex-ante it is extremely difficult to estimate accurately the optimal lengths to be deployed . Without the benefit of hindsight, AMA′ is able to learn from the behavior of past volatilities and yields and shows the most promising returns for PHP and THB in both the training in sample and the out-of-sample periods, regardless of slippage, by automatically adjusting the length of its moving average to suit the current trends prevailing in these markets.
Overall, this paper has demonstrated the efficacy of technical trading models in the ASEAN-5 currency markets. Whilst ex-post simple moving averages are better than the passive strategy in hindsight, an ex-ante time-varying volatility technique such as the AMA′ can be comparatively superior, given its ability to produce abnormal returns in different periods and markets.
For researchers and academics, as well as for market practitioners and especially for the algorithmic trading desks of large financial institutions, AMA′s ability to profitably adjust to time-varying volatilities, as demonstrated in this article, points to a new research direction for mechanical learning trading systems and could eventually be adopted as a professional trading strategy.
The authors greatly appreciate the support of all the reviewers whose comments and evaluation of the manuscript are invaluable in ensuring the quality of this paper. We also would like to extend our appreciation to Dr. Quah Chee Hong for his comments in the initial stage of preparing this manuscript.
- Conceived and designed the experiments: JCPM.
- Performed the experiments: JCPM.
- Analyzed the data: JCPM RZ.
- Contributed reagents/materials/analysis tools: JCPM RZ.
- Wrote the paper: JCPM RZ.
- 1. Harris L (2013) What to do about high-frequency trading. Financial Analysts Journal 69(2): 6–9.
- 2. Lo A, Mamaysky H, Wang J (2000) Foundations of technical analysis: Computational algorithms, statistical inference, and empirical implementation. Journal of Finance 55(4): 1705–1765.
- 3. Dempster M, Jones C (2001) A real-time adaptive trading system using genetic programming. Quantitative Finance 1: 397–413.
- 4. Gehrig T, Menkhoff L (2006) Extended evidence on the use of technical analysis in foreign exchange. International Journal of Finance and Economics 11: 327–338.
- 5. Menkhoff M, Taylor M (2007) The obstinate passion of foreign exchange professionals: Technical analysis. Journal of Economic Literature 45: 935–972.
- 6. Allen H, Taylor MP (1992) The use of technical analysis in the foreign exchange market. Journal of International Money and Finance 11: 304–314.
- 7. Lee C, Mathur I. (1996) Trading rule profits in European currency spot cross rates. Journal of Banking and Finance 20: 949–962.
- 8. Levich R, Thomas L (1993) The significance of technical trading-rule profits in the foreign exchange market: A bootstrap approach. Journal of International Money and Finance 12: 451–474.
- 9. Neely C, Weller P, Dittmar R (1997) Is technical analysis in the foreign exchange market profitable? A genetic programming approach. Journal of Financial and Quantitative Analysis 32: 405–426.
- 10. Cheung Y W, Wong C (1997) The performance of trading rules on four Asian currency exchange rates. Multinational Finance Journal 1: 1–22.
- 11. Brock W, Lakonishok J, LeBaron B (1992) Simple technical trading rules and the stochastic properties of stock returns. Journal of Finance 47: 1731–1764.
- 12. Lukac L, Brorsen B, Irwin S (1988) A test of futures market disequilibrium using twelve different technical trading systems. Applied Economics 20: 623–639.
- 13. Andrada-Felix J, Fernandex-Rodriquez F (2008) Improving moving average trading rules with boosting and statistical learning methods. Journal of Forecasting 27 (5):433–449.
- 14. Zhang P (2003) Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing 50: 159–175.
- 15. Jin J, Kim J (2015) Forecasting natural gas using wavelets, time series, and artificial neural networks. PLoS ONE 10(11): e0142064 pmid:26539722
- 16. Fama E (1970) Efficient capital markets: a review of theory and empirical work. Journal of Finance 25(2): 383–417.
- 17. Neftci S, Policano A (1984) Can chartists outperform the market? Market efficiency tests for “technical analysis”. Journal of Futures Markets 4(4): 465–478.
- 18. Lo A, Mackinlay A. (1988). Stock market prices do not follow random walks: Evidence from a simple specification test. Review of Financial Studies 1, 41–66.
- 19. Gencay R (1998) The predictability of security returns with simple trading rules. Journal of Empirical Finance 5: 347–359.
- 20. Gencay R, Stengos T (1998) Moving-average rules, volume and predictability of security returns with feedforward networks. Journal of Forecasting 17: 401–414.
- 21. Kwon KY, Kish RJ (2002) A comparative study of technical trading strategies and return predictability: An extension of Brock, Lakonishok, and LeBaron (1992) using NYSE and NASDAQ indices. Quarterly Review of Economics and Finance 42: 611–631.
- 22. Szakmary AC, Shen Q, Sharma SC (2010) Trend-following trading strategies in commodity futures: A re-examination. Journal of Banking and Finance 34 (2): 409–426.
- 23. Metghalchi M, Marcucci J, Chang YH (2012) Are moving average trading rules profitable? Evidence from the European stock markets. Applied Economics 44(12): 1539–1559.
- 24. Olson D (2004) How trading rule profits in the currency markets declined over time? Journal of Banking and Finance 28: 85–105.
- 25. Neely C, Weller P, Ulrich J (2009) The adaptive markets hypothesis: Evidence from the foreign exchange market. Journal of Financial and Quantitative Analysis 44: 467–488.
- 26. Pukthuanthong-Le K, Levich R, Thomas L (2006) Do foreign exchange markets still trend? Journal of Portfolio Management 34: 114–118.
- 27. Coronel-Brizio, H, Hernandez-Montoya, A, Sanchez, H, Scalas, E (2012) Analysis of short-term price trends in daily stock-market index data. arXiv
- 28. Alvarez-Ramirez J, Rodriguez E, Espinosa-Paredes G (2012) Is the US stock market becoming weakly efficient over time? Evidence from 80-year-long data. Physica A 391: 5643–5647.
- 29. Boboc I, Dinica M (2013) An algorithm for testing efficient market hypothesis. PLoS ONE 8(10): e78177. pmid:24205148
- 30. Coronel-Brizio H, Hernandez-Montoya A, Heurta-Quintanilla R, Rodriquez-Achach M (2007) Evidence of increment of efficiency of the Mexican stock market through the analysis of its variations. Physica A (380) 391–398.
- 31. Bollerslev T (1990). Modeling the coherence in short-run nominal exchange rates: A multivariate generalized ARCH model. The Review of Economics and Statistics 72(3): 498–505.
- 32. Black F (1971) Implications of random walk hypothesis for portfolio management. Financial Analysts Journal 27(2): 16–22.
- 33. Gandolfi G, Rossolini M, Sabatini A, Caselli S (2008) Dynamic MACD standard deviation embedded in MACD indicator for accurate adjustment to financial market dynamics. IFTA Journal: 16–23.
- 34. Azizan Noor Azlinna, Mohamed Ibrahim and Phooi M’ng Jacinta Chan (2011). A profitability study on the Malaysian futures markets using a new adjustable technical analysis indicator, Adjustable Bands Z-test-statistics’ (ABZ’). African Journal of Business Management, 5(14), 5984–5993.
- 35. Appel G (2005) Technical Analysis: Power Tools for Active Investors. Financial Times Prentice Hall. Upper Saddle River, NJ.
- 36. Kaufman P (1998) Trading Systems and Methods. John Wiley & Sons, Third Edition.
- 37. Irwin S, Park C (2009) A reality check on technical trading rule profits in the U.S. futures markets. Journal of Futures Markets 30: 633–659.
- 38. Sullivan R, Timmermann A, White H (1999) Data-snooping, technical trading rule performance, and the bootstrap. The Journal of Finance 54: 1647–1691.