next up previous
Next: About this document ... Up: My Home Page

CSE 691 - Lecture 11 - Technical Analysis

Steven S. Skiena

Dept. of Computer Science

SUNY Stony Brook

Technical Analysis

The term ``technical analysis'' covers a class of investment strategies analyzing patterns of past behavior for future predictions.

Technical analysis of stock prices is based on the following assumptions (Edwards and Magee):

There have been long and loud debates of the relative merits of technical analysis and fundamental analysis, which assesses the profitability and prospects of the given security.

Technical Analysis: Pro

Many professionals use it. Many amateurs use it, too. How can this be if it has no value?

M. Taylor and H. Allen, ``The Use of Technical Analysis in the Foreign Exchange Market'', J. International Money and Finance, June 1992, 304-314. surveys foreign exchange dealers and find that the vast majority place some weight on technical analysis.

Since market prices reflect supply and demand, any understanding of popular trading strategies can potentially provide an edge.

Given the diverse strategies and goals of different traders (e.g. hedging and risk reduction vs. profit maximization) there may be positive investment opportunities even in an efficient market.

Certain technical analysis methods seem to mirror natural human strategies (buy when it breaks through a high, sell when it is declining, etc.)

Many natural (e.g daily/annual weather patterns) and human phenomena (e.g. meal times and jet lag) revolve around rhythms and cycles - why not market phenomena which are a combination of both?

Technical Analysis: Con

Technical analysis is like driving a car while looking through a rear-view mirror...

If you believe in the efficient market hypothesis / random walk theory, technical analysis cannot work, because complete knowledge of past history is encoded in the current price.

In many trading theories, the patterns are ambiguous and the trading strategies not rigorously defined. Thus two people can take the opposite position on a trade while still following the same theory. This makes it difficult to benchmark the quality of the theory.

The cycles of the market may be like the cycles of a child on a swing, periodic, but unpredictable due to irregularities of kicking patterns and wind gusts.

Short-term claims of excellent performance often just reflect luck.

Published studies generally reach ambiguous conclusions, although several do favor technical analysis.

Types of Charts

Bar charts show the high and low price for each day, perhaps with a tick for the closing price.

Candlestick charts plot high, low, open nd close, with shading to indicate whether it was an up or down day.

Certain trading systems look for certain shapes of these bars, such as the ``Candlestick hammer'', which looks like a hammer.



figure=figures/candlestick.eps,width=3.0in figure=figures/bearish-stick.eps,width=3.0in


Any merit to such systems appear to be as a visualization tool, making it easy to eyeball recent market activity.

Trend Reversal / Continuation Patterns

A broad class of technical trading strategies revolve around the current price with respect to recent history.

The support level of a stock is the lower end of its recent trading range.

The resistance level of a stock is the upper end of its recent trading range.

The Dow theory suggests buying (selling) when a price is near its support (resistance) level - buy low, sell high.

Combining volume trends with price trends seek to capture market sentiment. Hitting a new low with high volume is bearish, while it might not be as significant with low volume.

B. Lehmann ``Fads, Martingales, and Market Efficiency'', The Quarterly Journal of Economics, February 1990, pp. 1-28. observed that when a stock falls by a sizable amount one week, its price experiences a sizable rise the following week.

N. Jagadeesh, ``Evidence of Predictable Behavior of Security Returns'', J. Finance, July 1990, 881-898. finds that similar patterns occur on monthly scales.

Moving Average Models

Typically exponentially weighted moving average models are used to place the current price in a band determined by the high, low and average prices in the interval.

The width of these bands may be governed by extreme values, fixed percentages, or volatility (given movements are less significant in times of high volatility).

Bollinger bands are windows of (typically) two standard deviations around the (typically) 20-day moving average.



figure=figures/bollinger.eps,width=2.5in


The theory states that (1) movements outside the bands should continue, (2) movements outside and then inside the bands suggest reversals, (3) tightening bands (low price volatility) are often followed by sharp price movements.

Kirshenbaum bands are derived from the magnitude of the standard error of the regression lines of recent returns. Times of high-predictability imply narrow bands.



figure=figures/kirshenbaum.eps,width=4in


Convergence/divergence models compare moving averages from one period (e.g. 26 days) to those of another (e.g. 13 days) to detect trends in the market.

Money flow indicators factor in price changes and volumes to measure how much money is being invested in the security.

Oscillators

These strategies assume that markets oscillate between over-bought and over-sold levels.

The notion of accumulation/distribution is a cumulative measure of the volume "bought" in up periods subtracted from that of volume "sold" in down periods.

This is a measure of whether money is flowing into or out of the market.



figure=figures/chaiken.eps,width=4in


The Chaikin oscillator treats an up or down period depending upon the difference between the close and the average of the high and low.

Relative strength oscillators compare the gains on up days to losses on down days, when over-bought markets are suggests when there are disproportional numbers of up days.

Directional movement crossovers compare the differences of high prices and the differences of low prices to suggest a trend

The McClellan Oscillator is a measure of market breadth based on the smoothed difference between the number of advancing and declining issues on the NYSE. The system compares (subtracts) the EWMAs of 19 and 39 day functions.



figure=figures/mcclellan.eps,width=4in


Other Indicators

The ratio of short-selling between NYSE specialists (market makers) vs. the public compares smart to not-so-smart money.

The ratio of short-selling interest to the average daily volume of the previous month. If few shares are being sold short, there is less potential demand for future shares since less will be bought to cover short positions.

Put-call ratios measure options activity. Typically call volume is far greater than put volume.

Insider trading measures the activity of people who have reason to know what is happening inside a company.

Advisory indices measure what financial advisors are recommending. Results suggest taking a position contrary to financial advisors.

Elliot Wave Theory

The popular (but mystical) Elliot Wave Theory was first published in 1939 based on the work of Ralph Nelson Elliot. It claims that market movements and other dimensions of human behavior are based on repetitive patterns of waves.

The theory claims that (1) action is followed by reaction, (2) five waves (peaks or trophs) in the direction of the mail trend are followed by three corrective waves. (3) Such a cycle becomes two subdivisions of the next 5-3 wave, (4) The 5-3 pattern of waves is constant, although time spans of each wave may vary.



figure=figures/elliottwave.eps,width=4in


This recursive composition of waves creates curves that looks something like fractal patterns.

Fibonacci Numbers

The 5-3 pattern of Elliot Wave theory becomes intertwined with the Fibonacci numbers, where $F_n = F_{n-1} + F_{n-2}$.

Fibonacci numbers arise in any process modeled by this recurrence, e.g. phyllotaxis in plants.

The thirteen piano keys of an octave are partitioned into 8 white and 5 black.

The golden ratio of 0.618 is the ratio between successive Fibonacci numbers.

Fibonacci trend lines tend to appear at ratios of 38.2 %, 50%, and 61.8%, according to several trading systems, where values increasing/decreasing by such ratios are deemed significant.



figure=figures/fibonacci.eps,width=2.5in


The Fibonacci peaks system averages 8-, 13-, and 21-period moving average indicators.

The use of Fibonacci numbers in these systems seem to be numerology more than mathematics.

Conclusions: Bauer and Dahlquist

These are drawn from ``Technical Market Indicators: Analysis and Performance'' by Bauer and Dahlquist, 1999, who studied 60 technical indicators for 878 stocks on daily data from 1985 to 1996.

If you trade strictly following technical signals you will on average do worse than a buy-and-hold strategy, because ...

Technical indicators on average signal a high proportion of cash positions - Under many systems, there is considerable ambiguity between clear buy/sell positions. Because the magnitude of positive returns historically exceeds those of negative returns, the opportunity cost of a conservative cash position are significant. Thus ...

Technical indicators generally outperform buy-and-hold for stocks that are declining but under perform for those that are rising in price.

Technical indicators do on average contain information that may be of value in trading. - Bauer-Dahlquist found that 50 of 60 tested indicators returned showed greater than average returns on the days the indicators signaled long/buy. They also found that lower than average (but still positive) returns occurred on days when the indicators signaled short/sell. However, these signals were not sufficient to outperform buy-and-hold.

Portfolio management is the important issue in technically-based trading systems - Portfolio management is trivial for buy-and-hold, but it is not clear how you take advantage of such relatively weak signals as appear to come from technical analysis.

Strategy evaluation typically ignores transaction costs, slippage (inability to transact at published prices), and interest - The first two work against technical analysis, while the latter is not sufficient for such strategies to beat buy-and-hold.

Leveraged positions may be necessary to exploit certain opportunities - However, leverage also increases risk in the event of a downturn.

Conclusions: Skiena

Technical analysis is widely used by traders as justification for making what are relatively arbitrary decisions.

The ``formal'' strictures of such methods may well enhance the traders performance just as rhythmic structures like haiku or limericks enhance poet's performance.

If markets indeed do behave as random walks, then technical analysis is every bit as justified as any other trading strategy.

Technical analysis does seem able to help identify trends which are occurring, however the evidence is less compelling that it can pick up significant changes in trends.




next up previous
Next: About this document ... Up: My Home Page
Steve Skiena
2004-04-15