1 Introduction

The Efficient Market Hypothesis (EMH) is one of the central tenets of financial economics (Fama 1965). However, the empirical literature has provided extensive evidence of various “anomalies”, such as fat tails, volatility clustering, long memory etc. that are inconsistent with the EMH paradigm and suggests that it is possible to make abnormal profits using appropriate trading strategies (Plastun 2017). A well-known anomaly is the so-called overreaction hypothesis, namely the idea that agents make investment decisions giving disproportionate weight to more recent information (see De Bondt and Thaler 1985). Clements et al. (2009) report that the overreaction anomaly has not only persisted but in fact increased over the last twenty years. Its existence has been documented in several studies for different markets and frequencies such as monthly, weekly or daily data (see, e.g., Bremer and Sweeney 1991; Clare and Thomas 1995; Larson and Madura 2003; Mynhardt and Plastun 2013; Caporale et al. 2018).

There exist a significant number of studies on market overreactions but most of them analyse short-term price overreactions based on daily data (Atkins and Dyl 1990; Bremer and Sweeney 1991; Cox and Peterson 1994; Choi and Jayaraman 2009) and focus only on a single market/asset. By contrast, this paper analyses long-term overreactions and a variety of markets and frequencies by (i) carrying out various statistical tests to establish whether overreaction anomalies exist using both weekly and monthly data, and (ii) using a trading robot method to examine whether they give rise to exploitable profit opportunities, i.e. whether price overreactions are simply a statistical phenomena or can also be seen as evidence against the EMH. The analysis is carried out for various financial markets: the US stock market (the Dow Jones Index and 10 companies included in this index), FOREX (10 currency pairs) and commodity markets (gold and oil). A similar investigation was carried out by Caporale et al. (2018); however, their analysis focused on short-term (i.e., daily) overreactions, whilst the present study considers a longer horizon, namely a week or a month.

The remainder of the paper is organised as follows. Section 2 reviews the existing literature on the overreaction hypothesis. Section 3 describes the methodology used in this study. Section 4 discusses the empirical results. Section 5 provides some concluding remarks.

2 Literature review

The seminal paper on the overreaction hypothesis is due to De Bondt and Thaler (DT, De Bondt and Thaler 1985), who followed the work of Kahneman and Tversky (1982), and showed that the best (worst) performing portfolios in the NYSE over a three-year period tended to under (over)-perform over the following three-year period. Their explanation was that significant deviations of asset prices from their fundamental value occur because of agents’ irrational behaviour, with recent news being given an excessive weight. DT also reported an asymmetry in the overreaction (it is bigger for undervalued than for overvalued stocks), and a “January effect”, with a clustering of overreactions in that particular month.

Other studies include Brown et al. (1988), who analysed NYSE data for the period 1946–1983 and reached similar conclusions to DT; Ferri and Min (1996), who confirmed the presence of overreactions using S&P 500 data for the period 1962–1991; Larson and Madura (2003), who used NYSE data for the period 1988–1998 and also showed the presence of overreactions. Clements et al. (2009) confirmed the original findings of DT using CRSP data for the period 1926–1982, and also showed that the overreaction anomaly had increased during the following twenty years.

In addition to papers analysing stock markets (Alonso and Rubio 1990; Brailsford 1992; Bowman and Iverson 1998; Antoniou et al. 2005; Mynhardt and Plastun 2013 among others), some consider other markets such as the gold (Cutler et al. (1991)), or the options market (Poteshman 2001). Finally, Conrad and Kaul (1993) showed that the returns used in many studies (supporting the overreaction hypothesis) are upwardly biased, and “true” returns have no relation to overreaction; therefore this issue is still unresolved.

The other aspect of the overreaction hypothesis is its practical implementation, i.e. the possibility of obtaining extra profits by exploiting this anomaly. Jegadeesh and Titman (1993) and Lehmann (1990) found that a strategy based on overreactions can indeed generate abnormal profits. Baytas and Cakici (1999) also tested a trading strategy based on the overreaction hypothesis, and showed that contrarian portfolios on the long-term horizons can generate significant profits.

The most recent and thorough investigation is due to Caporale et al. (2018), who analyse different financial markets (FOREX, stock and commodity) using the same approach as in the present study. That study shows that a strategy based on counter-movements after overreactions does not generate profits in the FOREX and the commodity markets, but it is profitable in the case of the US stock market. Also, it detects a brand new anomaly based on the overreaction hypothesis, i.e. an “inertia” anomaly (after an overreaction day prices tend to move in the same direction for some time). Here we extend the analysis by considering long-term overreactions and the possibility of making extra profits over weekly and monthly intervals. The variety of assets and markets (FOREX, stock market, commodities) as well as of time frequencies (weekly, monthly) considered in this study can help to address issues such as robustness, data snooping, data mining etc. Moreover, since according to the Adaptive Markets Hypothesis (Lo 2004) financial markets evolve and anomalies may disappear during this process, it is important to include the most recent data as we do.

3 Data and methodology

We analyse the following weekly and monthly series: for the US stock market, the Dow Jones index and stocks of two companies included in this index (Microsoft and Boeing - for the trading robot analysis we also add Alcoa, AIG, Walt Disney, General Electric, Home Depot, IBM, Intel, Exxon Mobil); for the FOREX, EURUSD, USDCHF and AUDUSD (for the trading robot analysis also USDJPY, USDCAD, GBPJPY, GBPUSD, EURJPY, GBPCHF, EURGBP); for commodities, gold and oil (only gold for the trading robot analysis owing to data unavailability). The choice of assets is based on their liquidity, trading volume, data availability, and extent of use. The sample covers the period from January 2002 till the end of December 2016, and for the trading robot analysis the period is 2002–2014 for the FOREX and 2006–2014 for the US stock market and commodity market. These dates are selected on the basis of data availability (especially for the purpose of trading robot analysis) and to include the most recent data since markets can evolve as stressed by the Adaptive Market Hypothesis.

3.1 Student’s t-tests

First we carry out Student’s t-tests to confirm (reject) the presence of anomalies after overreactions. Our dataset is quite large, and therefore on the basis of the Central Limit Theorem (see Mendenhall et al. 2003) it can be argued that normality holds as required for carrying out t-tests. To provide additional evidence we also conduct ANOVA analysis, and carry out Mann–Whitney U tests not relying on the normality assumption.

To identify anomalies we run multiple regressions including a dummy variable:

$$ {\mathrm{Y}}_{\mathrm{t}}={\mathrm{a}}_0+{\mathrm{a}}_1{\mathrm{D}}_{1\mathrm{t}}+{\upvarepsilon}_{\mathrm{t}} $$
(1)

where

Yt:

volatility on the period t;

a0:

mean volatility for a normal day (the day when there was no volatility explosion);

a1:

dummy coefficient;

D1t:

a dummy variable for a specific data group, equal to 1 when the data belong to a day of volatility explosion, and equal to 0 when they do not;

εt:

Random error term for period t.

The size, sign and statistical significance of the dummy coefficient provide information about possible anomalies.

Then we apply the trading robot approach to establish whether the detected anomalies create exploitable profit opportunities. According to the classical overreaction hypothesis, an overreaction should be followed by a correction, i.e. price counter-movements, and this should be bigger than after normal days. If one day is not enough for the market to incorporate new information, i.e. to overreact, then after one-day abnormal price changes one can expect movements in the direction of the overreaction bigger than after normal days.

The two hypotheses to be tested are therefore:

  • H1: Counter-reactions after overreactions differ from those after normal periods.

  • H2: Price movements after overreactions in the direction of the overreaction differ from such movements after normal periods.

The null hypothesis is in both cases that the data after normal and overreaction periods belong to the same population.

As already mentioned, we focus on long-term overreactions, so the period of analysis is one week or one month. The parameters characterising price behaviour over such a time interval are maximum, minimum, open and close prices. In most studies price movements are measured as the difference between the open and close price. In our opinion the weekly (monthly) return, i.e. the difference between the maximum and minimum prices during the week (month), is more appropriate. This is calculated as:

$$ {R}_i=\frac{\left( Hig{h}_i- Lo{w}_i\right)}{Lo{w}_i}\times 100\%, $$
(2)

where Riis the % weekly (monthly) return, Highi is the maximum price, and Lowi is the minimum price for week (month) і.

We consider three definitions of “overreaction”:

  1. 1)

    when the current weekly (monthly) return exceeds the average plus one standard deviation

$$ {R}_i>\left({\overline{R}}_n+{\delta}_n\right), $$
(3)

where \( {\overline{R}}_n \) is the average size of weekly (monthly) returns for period n

$$ {\overline{R}}_n=\sum \limits_{i=1}^n{R}_i/n, $$
(4)

and δn is the standard deviation of weekly (monthly) returns for period n

$$ {\delta}_n=\sqrt{\frac{1}{n}\sum \limits_{i=1}^n{\left({R}_i-\overline{R}\right)}^2}. $$
(5)
  1. 2)

    when the current weekly (monthly) return exceeds the average plus two standard deviations, i.e.,

$$ {R}_i>\left({\overline{R}}_n+2\times {\delta}_n\right). $$
(6)
  1. 3)

    when the current weekly (monthly) return exceeds the average plus three standard deviations, i.e.,

$$ {R}_i>\left({\overline{R}}_n+3\times {\delta}_n\right). $$
(7)

The next step is to determine the size of the price movement during the following week (month). For Hypothesis 1 (the counter-reaction or counter-movement assumption), we measure it as the difference between the next period’s open price and the maximum deviation from it in the opposite direction to the price movement in the overreaction period.

If the price increased, then the size of the counter-reaction is calculated as:

$$ c{R}_{i+1}=100\%\times \frac{\left( Ope{n}_{i+1}- Lo{w}_{i+1}\right)}{Lo{w}_{i+1}}, $$
(8)

where cRi + 1 is the counter-reaction size, andOpeni + lis the next period’s open price.

If the price decreased, then the corresponding definition is:

$$ \mathrm{c}{R}_{i+1}=100\%\times \frac{\left( Hig{h}_{i+1}- Ope{n}_{i+1}\right)}{Ope{n}_{i+1}}. $$
(9)

In the case of Hypothesis 2 (movement in the direction of the overreaction), either eq. (9) or (8) is used depending on whether the price has increased or decreased.

Two data sets (with cRi + 1 values) are then constructed, including the size of price movements after normal and abnormal price changes respectively. The first data set consists of cRi + 1 values after period with abnormal price changes. The second contains cRi + 1 values after a period with normal price changes. The null hypothesis to be tested is that they are both drawn from the same population.

3.2 Trading robot analysis

The trading robot approach considers the long-term overreactions from a trader’s viewpoint, i.e. whether it is possible to make abnormal profits by exploiting the overreaction anomaly, and simulates the actions of a trader using an algorithm representing a trading strategy. This is a programme in the MetaTrader terminal that has been developed in MetaQuotes Language 4 (MQL4) and used for the automation of analytical and trading processes. Trading robots (called experts in MetaTrader) allow to analyse price data and manage trading activities on the basis of the signals received.

MetaQuotes Language 4 is the language for programming trade strategies built in the client terminal. The syntax of MQL4 is quite similar to that of the C language. It allows to programme trading robots that automate trade processes and is ideally suited to the implementation of trading strategies. The terminal also allows to check the efficiency of trading robots using historical data. These are saved in the MetaTrader terminal as bars and represent records appearing as TOHLCV (HST format). The trading terminal allows to test experts by various methods. By selecting smaller periods it is possible to see price fluctuations within bars, i.e., price changes will be reproduced more precisely. For example, when an expert is tested on one-hour data, price changes for a bar can be modelled using one-minute data. The price history stored in the client terminal includes only Bid prices. In order to model Ask prices, the strategy tester uses the current spread at the beginning of testing. However, a user can set a custom spread for testing in the “Spread”, thereby approximating better actual price movements.

We examine two trading strategies:

  • Strategy 1 (based on H1): This is based on the classical overreaction anomaly, i.e. the presence of abnormal counter-reactions after the overreaction period. The algorithm is constructed as follows: at the end of the overreaction period financial assets are sold or bought depending on whether abnormal price increases or decreased respectively have occurred. An open position is closed if a target profit value is reached or at the end of the following period (for details of how the target profit value is defined see below).

  • Strategy 2 (based on H2): This is based on the non-classical overreaction anomaly, i.e. the presence the abnormal price movements in the direction of the overreaction in the following period. The algorithm is built as follows: at the end of the overreaction period financial assets are bought or sold depending on whether abnormal price increases or decreases respectively have occurred. Again, an open position is closed if a target profit value is reached or at the end of the following period.

The results of the trading strategy testing and some key data are presented in the “Report” in Appendix 1. The most important indicators given in the “Report” are:

  • Total net profit: this is the difference between “Gross profit” and “Gross loss” measured in US dollars. We used marginal trading with the leverage 1:100, therefore it is necessary to invest $1000 to make the profit mentioned in the Trading Report. The annual return is defined as Total net profit/100, so, for instance, an annual total net profit of $100 represents a 10% annual return on the investment;

  • Profit trades: % of successful trades in total trades;

  • Expected payoff: the mathematical expectation of a win. This parameter represents the average profit/loss per trade. It is also the expected profitability/unprofitability of the next trade;

  • Total trades: total amount of trade positions;

  • Bars in test: the number of past observations modelled in bars during testing.

The results are summarised in the “Graph” section of the “Report”: this represents the account balance and general account status considering open positions. The “Report” also provides full information on all the simulated transactions and their financial results. The following parameters affect the profitability of the trading strategies (the next section explains how they are set):

  • Criterion for overreaction (symbol: sigma_dz): the number of standard deviations added to the mean to form the standard period interval;

  • Period of averaging (period_dz): the size of the data set used to calculate base mean and standard deviation;

  • Time in position (time_val): how long the opened position has to be held.

We carry out t-tests to examine whether the results we obtain are statistically different from the random ones. We chose this approach because the sample size is usually less than 100. A t-test compares the means from two samples to see whether they come from the same population. In our case the first is the average profit/loss factor of one trade applying the trading strategy, and the second is equal to zero because random trading (without transaction costs) should generate zero profit.

The null hypothesis (H0) is that the mean is the same in both samples, and the alternative (H1) that it is not. The computed values of the t-test are compared with the critical one at the 5% significance level. Failure to reject H0 implies that there are no advantages from exploiting the trading strategy being considered, whilst a rejection suggests that the adopted strategy can generate abnormal profits.

Example of the t-test results are reported in Table 1. As can be seen the results obtained are not differing from the random ones.

Table 1 t-test for the trading simulation results for Strategy 1 (case of EURUSD, testing period 2001–2014)

As can be seen, H0 cannot be rejected, which implies that the trading simulation results are not statistically different from the random ones and therefore this trading strategy is not effective and there is no exploitable profit opportunity.

4 Empirical results

The first step is to set the basic overreaction parameters/criterions by choosing the number of standard deviations (sigma_dz) to be added to the average to form the “standard” period interval for price fluctuations and the averaging period to calculate the mean and the standard deviation (symbol: period_dz).

For this purpose we used the Dow Jones Index data for the time period 1991–2014. The number of abnormal returns detected in the period 1991–2014 is reported in Table 2 (for weekly data) and Table 3 (for monthly data).

Table 2 Number of abnormal returns detections in Dow-Jones index during 1991–2014 (weekly data)
Table 3 Number of abnormal returns detections in Dow-Jones index during 1991–2014 (monthly data)

As can be seen from the above tables, both parameters (averaging period and number of standard deviations added to the mean) affect the number of detected anomalies. Changes in the averaging period have relatively small effect on the number of detected anomalies (the difference between the results when the period considered is 5 and 30 respectively is less than 20%). By contrast, each additional standard deviation significantly decreases the number of observed abnormal returns. Therefore 2–4% of the full sample (the number of abnormal returns in the case of 3 sigmas) is not sufficiently representative to draw conclusions. To investigate whether sigma_dz equal to 1 is most appropriate we carry out t-tests of long-term counter-reactions for the Dow Jones index over the period 1991–2014 (see Tables 4 and 5 for weekly and monthly data respectively). As can be seen, the anomaly is most easily detected in the case of sigma_dz = 1 (the t-stat is the biggest), and therefore we set sigma_dz equal to 1.

Table 4 T-test of the counter-reactions after the overreaction for the Dow-Jones index during 1991–2014 (weekly data) for the different values of sigma_dz parameter case of period_dz = 30
Table 5 T-test of the counter-reactions after the overreaction for the Dow-Jones index during 1991–2014 (monthly data) for the different values of sigma_dz parameter case of period_dz = 30

Student’s t –tests of long-term counter-reactions for the Dow Jones index over the period 1991–2014 (Tables 6 and 7 for weekly and monthly data respectively) suggest that the optimal averaging period is 30, their corresponding t-statistics being significantly higher than for other averaging periods.

Table 6 T-test of the counter-reactions after the overreaction for the Dow-Jones index during 1991–2014 (weekly data) for the different averaging periods case of sigma_dz = 1
Table 7 T-test of the counter-reactions after the overreaction for the Dow-Jones index during 1991–2014 (monthly data) for the different averaging periods case of sigma_dz = 1

Therefore the key parameters for the tests of long-term overreaction in different financial markets analysis are set as follows: the period_dz (averaging period) is set equal to 30 and sigma_dz (the number of standard deviations added to mean used as a criterion of overreaction) equal to 1.

The results for H1 are presented in Appendix 2 (weekly data) and 3 (monthly data) and are summarised in Tables 8 and 9.

Table 8 Statistical tests results: case of Hypothesis 1 (weekly data)
Table 9 Statistical tests results: case of Hypothesis 1 (monthly data)

As can be seen in the case of weekly data strong statistical evidence in favour of the overreaction anomaly can be found for both Gold and Oil prices, and to some extent for the US stock market (in the case of Boeing) and the FOREX (in the case of USDCHF and AUDUSD).

The results for the monthly data are significantly different from those for the weekly ones. The evidence of anomalies almost completely disappears, except for EURUSD and USDCHF (in the case of the FOREX) and Gold (in the case of commodities).

Overall, it appears that in the case of H1 weekly data provides the strongest evidence for the classical short-term counter-movement after an overreaction day, which is most noticeable in the case of commodities.

The results for H2 are presented in Appendix 4 (weekly data) and 5 (monthly data) and are summarised in Tables 10 and 11.

Table 10 Statistical tests results: case of Hypothesis 2 (weekly data)
Table 11 Statistical tests results: case of Hypothesis 2 (monthly data)

Hypothesis 2 is not rejected in many cases with weekly data. We find very strong evidence in favour of an “inertia anomaly” (prices tend to move in the direction of the overreaction in the following period). This applies to EURUSD and AUDUSD, Oil and Microsoft data, and represents evidence of market inefficiency caused by overreactions.

The results for the monthly data again are significantly differing from those for the weekly ones. Evidence in favour of the inertia anomaly is present for commodities and only for AUSUSD in the FOREX.

Overall the results from testing Hypothesis 2 suggest that the weekly frequency is the most appropriate to detect the inertia anomaly. The commodity market again look like the most inefficient among those analysed.

The general conclusion from the statistical tests are as follows: anomalies are generally detected using weekly but not monthly data; the commodity markets are the most affected by the overreaction anomalies; the results for the FOREX and US stock markets are mixed.

Next, we analyse whether these anomalies give rise to exploitable profit opportunities. If they do not, we conclude that they do not represent evidence inconsistent with the EMH. We expand the list of assets in order to provide more extensive results. The complete list of assets includes: FOREX (EURUSD, USDCHF, AUDUSD, USDJPY, USDCAD, GBPJPY, GBPUSD, EURJPY, GBPCHF, EURGBP), US stock market (Alcoa, AIG, Boeing Company, Walt Disney, General Electric, Home Depot, IBM, Intel, Microsoft, Exxon Mobil), commodity (Gold).

The parameters of the trading strategies 1 and 2 are set as follows:

  • Period_dz = 30 (see above for an explanation);

  • Time_val = week (see above);

  • Sigma_dz = 1 (see above).

The results of the trading robot analysis are presented in Table 12 (Strategy 1) and Table 13 (Strategy 2). The testing periods are as follows FOREX: 2001–2014; US stock market: 2006–2014; Commodities: 2006–2014.

Table 12 Trading results for Strategy 1
Table 13 Trading results for strategy 2

Strategy 1, based on the classical overreaction hypothesis, trades on counter-reactions after periods of abnormal price dynamics. In general, it is unprofitable in the case of the FOREX (7 pairs out of 10 produce negative or statistically insignificant results) and commodity markets (in the case of Gold). For the US stock market the results are mixed (50% of profitable assets), but in general this anomaly does not seem to be exploitable. The assets to be traded on the basis of the classical overreaction hypothesis with weekly data are therefore: GBPCHF (ROI = 27% per year), GBPJPY (25%), USDJPY (12%) and Boeing (36.6%). Although as previously shown a non-rejection of the null does not necessarily mean that there exist profit opportunities, it appears that it does mean a higher chance of profitable trading.

Strategy 2, based on the so-called “inertia anomaly”, trades on price movements in the direction of the overreaction in the following period. In general it is unprofitable for the US stock market (7 assets out of the 10 analysed produce negative results), whilst the results are mixed for the FOREX (there are 50% of profitable assets, but only 3 of the 5 profitable assets pass the t-test on randomness). There is evidence of profit opportunities in the commodity markets. The assets to be traded on the basis of the inertia anomaly with weekly data are therefore: USDCAD (ROI = 13% per year), USDCHF (5%), EURUSD (6%), AIG (27%), Alcoa (10%) and Gold (11%).

5 Conclusions

This paper examines long-term price overreactions in various financial markets (commodities, US stock market and FOREX). It addresses the issue of whether they should be seen simply as a statistical phenomenon or instead as anomalies giving rise to exploitable profit opportunities, only the latter being inconsistent with the EMH paradigm. The analysis is conducted in two steps. First, a number of statistical tests are carried out for overreactions as a statistical phenomenon. Second, a trading robot approach is applied to test the profitability of two alternative strategies, one based on the classical overreaction anomaly (H1: counter-reactions after overreactions differ from those after normal periods), the other on an “inertia” anomaly (H2: price movements after overreactions in the same direction of the overreaction differ from those after normal periods). Both weekly and monthly data are used. Evidence of anomalies is found predominantly in the case of weekly data. More specifically, H1 cannot be rejected for the US stock market and commodity markets when the averaging period is 30, whilst it is rejected for the FOREX. The results for H2 are more mixed and provide evidence of an “inertia” anomaly in the commodity market and for some assets in the US stock market and FOREX. The trading robot analysis shows that in general strategies based on the overreaction anomalies are not profitable, and therefore the latter cannot be seen as inconsistent with the EMH. However, in some cases abnormal profits can be made; in particular this is true of (i) GBPCHF (ROI = 27% per year), GBPJPY (25%), Boeing (36%), ExxonMobil (8.6%) in the case of the classical overreaction hypothesis and weekly data, and (ii) USDCAD (13%), USDCHF (5%), EURUSD (6%), AIG (27%), Alcoa (10%) and Gold (11%) in the case of the inertia anomaly and also with weekly data.

A comparison between these results and the daily ones reported in Caporale et al. (2018) suggests that the classic overreaction anomaly (H1) occurs at both short- and long-term intervals in the case of the US stock market and commodity markets. The results for the FOREX are mixed at both intervals, but mostly suggest no contrarian movements after overreactions. The findings concerning the “inertia” anomaly (H2) are more stable and consistent: it is detected for the commodity markets and US stock market at both short- and long-term horizons. As for the FOREX, there is a short- but not a long-term anomaly in most cases. The trading results imply that there is no single profitable strategy: the findings are quite sensitive to the specific asset being considered, and therefore it is necessary to investigate case by case whether it is possible to earn abnormal profits by exploiting the classical overreaction and/or inertia anomaly. Future research will extend the analysis focusing in particular on unusually low returns.