Professional Documents
Culture Documents
Jjfinec/nbl 012
Jjfinec/nbl 012
2, 243–265
abstract
We use the pattern recognition algorithm of Lo, Mamaysky, and Wang (2000)
with some modifications to determine whether ‘‘head-and-shoulders’’ (HS) price
patterns have predictive power for future stock returns. The modifications include
the use of filters based on typical price patterns identified by a technical analyst.
With data from the S&P 500 and the Russell 2000 over the period 1990–1999
we find little or no support for the profitability of a stand-alone trading strategy.
But we do find strong evidence that the pattern had power to predict excess
returns. Risk-adjusted excess returns to a trading strategy conditioned on ‘‘head-
and-shoulders’’ price patterns are 5–7% per year. Combining the strategy with
the market portfolio produces a significant increase in excess return for a fixed
level of risk exposure.
keywords: kernel regression, stock prices, technical analysis
Technical analysts use information about historical movements in price and trading
volume, summarized in the form of charts, to forecast future price trends in a wide
variety of financial markets. They argue that their approach to trading allows them
to profit from changes in the psychology of the market. This view is summarized
in the following quotation:
We are grateful to Bruce Lehmann, to three referees, and to seminar participants at the University of Iowa
for very helpful comments, and to Ken French for making available the data on factor risk portfolios.
Address correspondence to Paul Weller, Department of Finance, Henry B. Tippie College of Business, The
University of Iowa, Iowa City, IA 52242, or e-mail: paul-weller@uiowa.edu.
doi:10.1093/jjfinec/nbl012
Advance Access publication December 27, 2006
The Author 2006. Published by Oxford University Press. All rights reserved. For permissions,
please e-mail: journals.permissions@oupjournals.org.
244 Journal of Financial Econometrics
The technical approach to investment is essentially a reflection of the idea that prices
move in trends which are determined by the changing attitudes of investors toward a
variety of economic, monetary, political and psychological forces. . . Since the technical
approach is based on the theory that the price is a reflection of mass psychology (‘‘the
crowd’’) in action, it attempts to forecast future price movements on the assumption that
crowd psychology moves between panic, fear, and pessimism on one hand and confidence,
excessive optimism, and greed on the other. (Pring, 1991, pp. 2–3).
The claims that technical trading rules can generate substantial profits are
rarely, if ever, subjected to scientific scrutiny by the technicians themselves.
including HS in the U.S. stock market over the period 1962–1996. They find
statistical evidence that there is potentially useful information contained in most
of the patterns they consider.
The aim of this article is to examine the methodology advocated in Lo,
Mamaysky, and Wang (2000), to propose some modifications, and to use the
modified approach to assess the predictive power of a particular pattern. One of
the difficulties that an academic investigator must face in assessing the predictive
power of price patterns is that the characterization of the patterns is sometimes
ambiguous and there may be disagreement among technical analysts themselves.
1
See Edwards and Magee (1992, pp. 63–64) and Bulkowski (2000, p. 290).
246 Journal of Financial Econometrics
stocks, the evidence is weak. Thus our results provide no support for the more
extreme claims of some technical analysts, including Bulkowski, that trades based
on the occurrence of HS patterns alone are consistently profitable. However, we do
find significant risk-adjusted excess returns after the occurrence of an HS pattern
for both groups. For the second group, we find that risk-adjusted excess returns
are 5–7% per annum over a 3-month window. We augment the three-factor model
with the momentum factor and find that some but not all of the excess return
can be attributed to negative momentum. We interpret this as a demonstration of
mispricing, and show that it persists even after adjustment for transaction costs.
where m(Xi ) is a smooth function of time and the εi ’s are independently and
identically distributed zero mean random variables with variance σ 2 . The m(Xi )
series can be interpreted as the filtered or smoothed price series. Note that this
model is observationally indistinguishable from the case in which the Pi ’s are
autocorrelated.
windows is one trading day. In other words, for any given window, the succeeding
window starts and ends one business day later. The motivation for using rolling
windows is twofold. One is that it approximately mimics the way in which
traders analyze the data. If windows did not overlap, then the pattern recognition
algorithm would not detect any pattern initiated in one window and completed
in the next. However, traders in principle use all the historical price data as time
unfolds. The other is that it automatically constrains the maximum length of the
HS pattern.
which is often called the Nadaraya–Watson estimator. K(·) is the kernel, a function
that satisfies certain conditions. In our estimation, K(·) is the standard normal
density function. The bandwidth, hi,n , can be interpreted as a smoothing parameter.
The higher the value hi,n , the smoother the mi,n (x) function. In practice, the
bandwidth parameter has to be chosen, which implies that the bandwidth is
generally different for different rolling windows. The method used to select the
bandwidth is the so-called ‘‘leave-one-out’’ method, which is also called cross-
validation. The details on kernel mean regression and bandwidth selection are
found in Härdle (1990).
1.1.4 Extrema. Given the smoothed price series mi,n (x) within a window, the
extrema are identified by a two-step procedure. The first step is to find the extrema
of the smoothed price series mi,n (x), and the second is to find the corresponding
values of the original Pi series at the extrema in the first step. For the purpose of
exposition, we call the latter the relevant extrema.
The extrema for the smoothed price series mi,n (x) are defined as follows. The
point mi,n (Xi ) is a local maximum if mi,n (Xi−1 ) < mi,n (Xi ) and mi,n (Xi ) mi,n (Xi+1 ).
The inequalities are reversed if mi,n (Xi ) is a local minimum. If mi,n (Xi ) is identified
as a local extremum, then the relevant extremum is defined on the interval from
Pi−1 to Pi+1 , which implies that it may differ from Pi .
Let E1 , E2 , . . . , Em denote the set of relevant extrema and X1 *, X2 *,. . ., Xm *
the dates at which these extrema occur. In Lo, Mamaysky, and Wang (2000), an
HS pattern consists of a set of five consecutive relevant extrema that satisfy the
248 Journal of Financial Econometrics
following restrictions.
E1 is a maximum. (R1)
E3 > E1 (R2)
E3 > E5 (R3)
max |Ei − E| 0.015 × E, i = 1, 5, where E = (E1 + E5 )/2. (R4)
i
In the restrictions, E1 is the left shoulder, E3 is the head, and E5 is the right shoulder.
(R4) and (R5) restrict the distance between the height of the left and right shoulder
and the left and right trough; namely, E1 and E5 are within 1.5% of their average
and E2 and E4 are within 1.5% of their average. Figure 1 illustrates the shape of a
typical HS pattern with the extrema labeled.
1.2 Modifications
Our methodology for identifying HS patterns differs from that of Lo, Mamaysky,
and Wang (2000) in four respects. The first involves the span of the rolling
windows. We set the span at n = 63. This is based on the number reported in
Bulkowski for the average completion time of an HS pattern.
The second concerns the bandwidth. The HS patterns are selected using four
different values of the bandwidth. The values of the bandwidth are multiples of
hi,n , the bandwidth obtained by the cross-validation method. The multiples are
1, 1.5, 2, and 2.5. The number and type of HS patterns selected are sensitive to
the magnitude of the bandwidth. The number of HS patterns selected decreases
substantially as the bandwidth increases.
The third involves the restrictions on the relevant extrema. Technical trading
manuals suggest characteristics that HS patterns have to satisfy. The manuals
generally agree on the form of the restrictions (R1) to (R5). On the basis of
Bulkowski (2000), we recalibrate the Lo restrictions (R4) and (R5) as follows.
∗
4
∗
where X = (Xi+1 − Xi∗ )/4. (R9)
i=1
The restrictions (R6) to (R9) are calibrated using eleven examples of HS patterns
reported in Bulkowski (1997, 2000) that are completed within 63 trading days. We
refer to (R4a), (R5a), (R6), (R7), (R8), and (R9) as the Bulkowski restrictions.
Restrictions (R6) and (R7) specify the average height of the shoulders as a
proportion of the height of the head from the neckline. In particular, (R6) and
(R7) combined with (R4a) and (R5a) typically rule out cases in which the height of
the shoulders is a very large or very small proportion of the height of the head.
(R8) rules out cases in which the height of the head from the neckline is a small
proportion of the stock price, and (R9) rules out extreme horizontal asymmetries
in the HS patterns.
The fourth involves the imposition of the neckline crossing condition. If we
refer to Figure 1, the neckline passes through the local minima at E2 and E4 . In
order for an HS pattern to have been completed, we require that price fall below
the neckline on its way to the next extremum, E6, which, by definition, has to
be a minimum. Technical manuals generally emphasize the importance of this
condition.
In addition, we impose the requirement that E6 occur at date n − 3. In other
words, if the neckline crossing condition is satisfied, investment returns are
250 Journal of Financial Econometrics
measured from a date 3 days after E6 . Strictly speaking, the short position should
be opened immediately after the neckline crossing condition is satisfied, but our
procedure is considerably simpler to implement and in practice the time span
between the two dates is generally quite short. In addition, any bias introduced
will unambiguously reduce measured excess returns.
To allow for a comparison of the price and dividend levels across time, WRDS
has created a cumulative price and dividend adjustment factor (query item:
CFACPR—cumulative factor to adjust prices). To calculate the levels of prices
and dividends adjusted for stock splits and stock dividends, price (PRC) and
dividend (DIVAMT) series were divided by the cumulative adjustment factor
(CFACPR).
The companies in the S&P 500 represent approximately 85% of the total
U.S. market capitalization. The Russell 2000 Index is based on the 2000 smallest
companies in the Russell 3000 Index, and represents approximately 8% of the
Figure 2 Quarterly occurrences of head-and-shoulders patterns for the S&P 500: 1990–1999. The
figure records the number of head-and-shoulders patterns terminating each quarter, without
imposing the Bulkowski restrictions and using a bandwidth multiple of 2.5.
252 Journal of Financial Econometrics
The table reports the means, variances and confidence intervals for the excess returns conditional on
detecting an HS pattern when the span of the rolling windows is n = 63. The reported returns are 20-, 40-,
and 60-day returns. A negative excess return corresponds to a profitable HS trading strategy.
the true means for excess returns with and without the Bulkowski restrictions
are zero is rejected by the asymptotic 95% confidence intervals for 20, 40, and
60 trading days as well as for all bandwidth multiples. The convention we have
adopted means that a negative excess return corresponds to a profitable trading
strategy. Since the mean excess returns are all significantly positive, this indicates
that the HS trading strategy considered in isolation would have been unprofitable.
However, it is important to remember that the strategy involves taking a short
position, and that our sample period coincides with an episode of exceptionally
high stock returns that has been characterized as a bubble. A simple strategy of
shorting the market portfolio and investing the proceeds in Treasury bills would
Savin ET AL. The Power of ‘‘Head-and-Shoulders’’ Price Patterns 253
The table reports the means, variances and confidence intervals for the excess returns conditional on
detecting an HS pattern when the span of the rolling windows is n = 63. The reported returns are 20-, 40-
and 60-day returns. A negative excess return corresponds to a profitable HS trading strategy.
have earned the negative of the equity premium over the period, or −11.4% per
annum. In such a situation, it is particularly important to look at risk-adjusted
returns. We consider this in Section 2.4.
2.2.2 Russell 2000. Table 2 reports the estimated means of the excess returns
with and without the Bulkowski restrictions. The results are for 20, 40, and 60
trading days and for the bandwidth multiples 1, 1.5, 2, and 2.5. The null hypothesis
that the true means for excess returns without the Bulkowski restrictions are zero
is rejected by the asymptotic 95% confidence intervals for 60 trading days at all
the bandwidth multiples. Without the Bulkowski restrictions, the annual excess
254 Journal of Financial Econometrics
return over 60 days using a bandwidth multiple of 2.5 is 3.3%. Thus we find a
marked difference between the unadjusted excess returns for the S&P 500 and
Russell 2000. But even the excess returns for the HS strategy applied to Russell
2000 stocks fall substantially short of the equity premium over the period. Again,
appropriate risk adjustment is essential.
Confidence intervals reported in the tables for the sample means of S&P
500 and Russell 2000 were not corrected for the presence of autocorrelation and
heteroskedasticity. The qualitative results were identical, when autocorrelation
and heteroskedasticity-consistent covariance matrix estimators were used in the
2
Data on factor portfolio excess returns was obtained from Ken French’s web site.
(http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data library.html). Note that monthly
returns to the HS strategy are not precisely comparable to the 20-, 40-, and 60-day returns reported
in Tables 1 and 2. This is a consequence of the fact that monthly returns are calculated by averaging over
the number of positions open within the month, which varies from month to month.
Savin ET AL. The Power of ‘‘Head-and-Shoulders’’ Price Patterns 255
20 days
60 days
The table reports the regression coefficients and their 95% confidence intervals in the three-factor linear
regression, where the dependent variables consist of monthly excess returns conditional on detecting an
HS pattern when the span of the rolling windows is n = 63. The returns are reported for 20 and 60-day
windows without applying the Bulkowski restrictions. The bandwidth parameter given in the first column
is either 1 or 2.5. Autocorrelation and heteroskedasticity-consistent standard errors are used to construct
the confidence intervals.
20 days
60 days
The table reports the regression coefficients and their 95% confidence intervals in the three-factor linear
regression, where the dependent variables consist of monthly excess returns conditional on detecting an
HS pattern when the span of the rolling windows is n = 63. The returns are reported for 20- and 60-day
windows and without applying the Bulkowski restrictions. The bandwidth parameter given in the first
column is either 1 or 2.5. Autocorrelation and heteroskedasticity-consistent standard errors are used to
construct the confidence intervals.
20 days
1 −0.00003 0.49975 0.08109 0.09552 −0.10784
(−0.0017; 0.0016) (0.4549; 0.5446) (0.0217; 0.1405) (0.0262; 0.1648) (−0.1615; −0.0542)
The table reports the regression coefficients and their 95% confidence intervals in the four-factor linear
regression, where the dependent variables consist of monthly excess returns conditional on detecting an
HS pattern when the span of the rolling windows is n = 63. The returns are reported for 20- and 60-day
windows without applying the Bulkowski restrictions. The bandwidth parameter given in the first column
is either 1 or 2.5. Autocorrelation and heteroskedasticity-consistent standard errors are used to construct
the confidence intervals.
20 days
1 −0.00258 0.45333 0.41454 0.09996 −0.04907
(−0.0042; −0.0009) (0.4088; 0.4978) (0.3556; 0.4735) (0.0313; 0.1687) (−0.1023; 0.0041)
2.5 −0.00117 0.41472 0.53704 0.08763 −0.05814
(−0.0043; 0.0019) (0.3310; 0.4984) (0.4261; 0.6479) (−0.0416; 0.2169) (−0.1582; 0.0420)
60 days
1 −0.00406 0.69377 0.58928 0.22429 −0.14077
(−0.0061; −0.0021) (0.6395; 0.7480) (0.5204; 0.6581) (0.1423; 0.3063) (−0.2054; −0.0761)
2.5 −0.00257 0.64719 0.70808 0.22598 −0.18866
(−0.0052; 0.0000) (0.5777; 0.7167) (0.6199; 0.7962) (0.1210; 0.3310) (−0.2715; −0.1059)
The table reports the regression coefficients and their 95% confidence intervals in the four-factor linear
regression, where the dependent variables consist of monthly excess returns conditional on detecting an
HS pattern when the span of the rolling windows is n = 63. The returns are reported for 20 and 60-day
windows without applying the Bulkowski restrictions. The bandwidth parameter given in the first column
is either 1 or 2.5. Autocorrelation and heteroskedasticity-consistent standard errors are used to construct
the confidence intervals.
Savin ET AL. The Power of ‘‘Head-and-Shoulders’’ Price Patterns 259
to work out the one-way break-even transaction cost. For a 20-day holding period,
there will be a single one-way transaction per month for each pattern observed, so
that the measured excess return is also the break-even transaction cost. For the S&P
500, this is not significantly different from zero. For the Russell 2000, the figure
lies between 17 and 30 basis points depending on the bandwidth. For a 60-day
holding period, there will be two one-way transactions every four months, so that
twice the monthly excess return gives us the break-even transaction cost. For a
bandwidth of 2.5, we obtain a break-even figure of 80 basis points. For the Russell
2000 the corresponding figure is 90 basis points. These numbers are substantially
where rm, rhs are the excess returns of the market portfolio and the HS strategy
respectively.4 We denote by r0 the excess return of the optimal portfolio with
standard deviation equal to σ m , the standard deviation of the market portfolio. V
is the (2 × 2) covariance matrix of excess returns of the market portfolio and the
HS strategy.
Then the vector of portfolio weights w on the risky assets in the optimal
portfolio is given by:
r0
w= V −1 r (5)
r V −1 r
and the total excess return r0 on the optimal portfolio is given by:
r0 = σ m r V −1 r. (6)
3
We have confirmed that the impact of transaction costs is as described by explicitly calculating average
returns net of costs at different horizons.
4
We used the same figures for market excess returns as in the factor regressions. They were obtained from
Ken French’s web site.
260 Journal of Financial Econometrics
20 days
60 days
The table reports the monthly mean and standard deviation of the excess return on the market portfolio and
the HS strategy for stocks in the Russell 2000, the correlation C(rm , rhs ) between the two excess returns, and
the optimal weights for a portfolio with the same standard deviation as the market excess return. The excess
return for the HS strategy uses the convention that a positive number represents a positive excess return to
the short position. The last two columns report the annualized excess return for the optimal portfolio, and
the difference in annualized excess returns (r0 − rm ). Notes: The monthly HS excess returns differ from those
reported in Table 2 because of the different averaging procedures used. When HS returns are calculated
over calendar months (as here), a position held for part of a month is treated as earning a zero excess return
over the remainder of the month, resulting in a lower figure for mean return. The market excess return for
20-day and 60-day horizons differs because the former uses a sample shortened by two calendar months at
the end of the period. Figures for excess return less difference do not give exactly the same numbers because
of annualization.
The results for the Russell 2000 are given in Table 7. The HS strategy raw
excess return for the 20-day horizon and unit bandwidth multiple is insignificantly
different from zero. However, the correlation with the market excess return is −0.8.
The optimal portfolio is highly levered, with portfolio weights of 1.66 on the market
portfolio and 2.18 on the HS strategy. This leads to an increase in excess return
over the market of 6.9%. The results are sensitive to the size of correlation, but are
in excess of 2% in all cases. We see that the smallest increase occurs for the 20-day
horizon and multiple 2.5, consistent with the fact that the intercept in the 3-factor
regression in Table 4 is not significantly different from zero. Results for the S&P
500 (not presented) are less striking, but at the 60-day horizon the optimal portfolio
earns an extra 5.5% (unit multiple) and 4.7% (2.5 multiple). Even after appropriate
adjustment for transaction costs the improvement in trade-off between risk and
return is economically significant.
where Pi,end denotes the price on the last business day of month i. The excess return
rei,j is found as follows:
end
rei,j = ri,j − rt , (A2)
t=j
where rt is the daily 3-month Treasury bill rate continuously compounded and
end denotes the last business day of the month. Appropriate adjustment in
For the majority of short positions, the ending date of the short position will be
different from the last day of a given month. To find the return from the tail end of
the short position, that is, for the time period from the beginning of the last month
until the date when the short position is closed, we use the following formula:
Pi,j
ri,j = log (A5)
Pi−1,end
where Pi,j is the price at which the short position is closed.
The excess return is found as follows:
j
rei,j = ri,j − rt . (A6)
t=1
The following is a derivation of the above formula. The notional price at which
the short position is opened is Pi−1,end . This is therefore the notional cash inflow
from opening the short position. A cash outflow of Pi,j occurs on day j. To calculate
the monthly return we need to compound these two positions to the end of the
month. Therefore the excess return on these two positions is:
end
rt
P et=j+1 j
i,j
ri,j = ln
e
= ri,j − rt . (A7)
end
rt t=1
Pi−1,end et=1
Savin ET AL. The Power of ‘‘Head-and-Shoulders’’ Price Patterns 263
Finally, the average excess return is calculated for any given month by
summing up all the excess returns from short positions for that given month
across all companies and then dividing through by the number of such returns.
Received May 3, 2004; revised December 6, 2005; accepted November 27, 2006.
REFERENCES
Barberis, N., A. Shleifer, and R. Vishny. (1998). ‘‘A Model of Investor Sentiment.’’
Journal of Financial Economics 49, 307–343.
5
This description is taken from Ken French’s web site: http://mba.tuck.dartmouth.edu/pages/faculty/
ken.french/data library.html
264 Journal of Financial Econometrics
Berkowitz, S. A., D. E. Logue, and E. A. Noser. (1988). ‘‘The Total Costs of Transactions
on the NYSE.’’ Journal of Finance 43, 97–112.
Blume, L., D. Easley, and M. O’Hara. (1994). ‘‘Market Statistics and Technical Analysis:
The Role of Volume.’’ Journal of Finance 49, 153–181.
Brock, W., J. Lakonishok, and B. LeBaron. (1992). ‘‘Simple Technical Trading Rules and
the Stochastic Properties of Stock Returns.’’ Journal of Finance 47, 1731–1764.
Brown, D. P., and R. H. Jennings. (1989). ‘‘On Technical Analysis.’’ The Review of
Financial Studies 2, 527–551.
Bulkowski, T. N. (1997). ‘‘The Head and Shoulders Formation.’’ Technical Analysis of
Neely, C. J., P. A. Weller, and R. Dittmar. (1997). ‘‘Is Technical Analysis in the
Foreign Exchange Market Profitable? A Genetic Programming Approach.’’ Journal
of Financial and Quantitative Analysis 32, 405–426.
Pring, M. J. (1991). Technical Analysis Explained, Second Edition. New York: McGraw-
Hill.
Schabacker, R. W. (1930). Stock Market Theory and Practice. New York: Forbes Publishing.
Sullivan, R., A. Timmermann, and H. White. (1999). ‘‘Data-Snooping, Technical Trading
Rule Performance, and the Bootstrap.’’ Journal of Finance 54, 1647–1691.
Sweeney, R. J. (1986). ‘‘Beating the Foreign Exchange Market.’’ Journal of Finance 41,
163–182.