Technical Analysis Archive

A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDER’S RSI, PART 1

J. Welles Wilder, Jr. is one of the most influential figures in modern technical analysis. He developed several popular technical indicators. Among the most popular is his RSI, or Relative Strength Index. Calculation of RSI is simple:

From price series  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 of size  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1, calculate the price change series  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 of size  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 s.t.:

 A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1

From  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1, calculate two series of size ,  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 (for gains) and  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 (for losses) s.t.:

 A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1

and

 A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1

For  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 and  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1, we can calculate the Wilder’s Moving Averages A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 and  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1. From  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 and  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1 we can calculate Wilder’s Relative Strength Index (RSI):

 A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1

RSI is thought to have many uses as an indicator.  In particular, many investors believe that it can be used to indicate overbought and oversold levels.  Common values of RSI used to indicate overbought and oversold levels are 0.7, for overbought indications–and 0.3, for oversold indications.

In a historical database of stock prices retrieved from Yahoo! Finance, from close to close, from the end of the day when RSI crossed the threshold, from below 0.7 to above 0.7 and above 0.3 to below 0.3, to close five days later, the geometric average returns were (0.135%) for crossing above 0.7 and 0.603% for crossing below 0.3.  Using higher thresholds suggested even greater geometric average five day historical returns, (0.659%) and 1.765% for 0.8 and 0.2, respectively. While not every trade based on RSI makes money, clearly, it has been an incredibly powerful technical indicator.

(Note: When economists refer to Relative Strength, they usually mean the ratio of two price indexes.)

twitter A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1digg A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1reddit A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1email A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS V. WILDERS RSI, PART 1

A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART IV: MACD, PART 1

MACD, or Moving Average Convergence-Divergence, is one of the most popular technical indicators, second perhaps only to Bollinger Bands. It is very easy to calculate. The MACD indicator has three components: MACD, which is simply the a-period EMA minus the b-period EMA; the signal line, which is the c-period EMA of MACD; and the “MACD histogram,” which is MACD minus the signal. When the MACD histogram crosses above 0, that is thought to be a bullish indication. When the MACD histogram crosses below 0, it is thought to be a bearish indication.

A quick look at the five-day close-to-close price changes following MACD crossovers (using the popular 12, 26, 9 parameter values) suggests on a historical database of U.S. non-penny stocks (derived from Yahoo! Finance’s free stock price data) geometric average five-day gains of 0.382% following positive crossovers and (0.210%) following negative crossovers. The database contained no delisted stocks, so these results may understate the risk for purchases, but the evidence clearly supports the popular notion that MACD has been a powerful indicator.

This post contains images derived from works found at Wikipedia and used under license.

twitter A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART IV: MACD, PART 1digg A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART IV: MACD, PART 1reddit A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART IV: MACD, PART 1email A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART IV: MACD, PART 1

Stocks & Commodities Magazine Available Free Online

While researching the Aroon indicator earlier today, I noticed that Stocks & Commodities magazine, considered one of the leading authorities on technical analysis, is available for free on their web site. You won’t be able to download the PDF edition without a subscription, but the archives area contains web versions of every volume since 1996.

twitter Stocks & Commodities Magazine Available Free Onlinedigg Stocks & Commodities Magazine Available Free Onlinereddit Stocks & Commodities Magazine Available Free Onlineemail Stocks & Commodities Magazine Available Free Online

A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1

The Aroon indicator is a conceptually simple technical indicator. Developed in 1995, it is newer than many of the more popular technical indicators. But for some reason, not all charting web sites offer the Aroon indicator. Yahoo! Finance doesn’t offer it. Neither does CME Group. Two charting web sites that do are Stockcharts and Barchart.

Calculation of the two outputs of the Aroon indicator,  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1 and  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1 involves only a single parameter, a span parameter specifying the number of bars over which to calculate the indicator. The most common setting is 25 days. The formulas are:

 A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1
 A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1

Occasionally, people will subtract  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1 from  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1 to calculate the Aroon oscillator, which varies from -1 to 1.

A look at the historical 5-day close-to-close returns following 25-day Aroon crossovers on non-penny American stock prices from Yahoo! Finance reveals 5-day returns with geometric averages of 0.039% for positive crossovers and 0.020% for negative crossovers. It doesn’t look very promising so far, but we’ll take another look at the Aroon indicator in the future.

twitter A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1digg A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1reddit A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1email A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS PART III. AROON, PART 1

A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1

Hello again. If you have been following this series, you may have noticed that I haven’t yet comprehensively covered Bollinger Bands. We’ll be revisiting them in the future. For now, let’s turn our attention to one of my favorite technical indicators, the popular (but poorly-named) stochastic oscillator.

A stochastic oscillator takes three parameters and produces two outputs, known as %K and %D. The parameters are:

  1. A span parameter, which specifies how many bars the oscillator will cover. The most popular configuration is 14 days.
  2. A Ksmooth parameter, which specifies how many bars should be used for smoothing the %K oscillator. The most popular value is 3, but often people will use Ksmooth=1. This is known as the fast stochastic oscillator
  3. A Dsmooth parameter, which specifies how many bars should be used for smoothing the %D oscillator. The most popular value is 3. Occasionally people will use a shorthand specification where it is assumed that Ksmooth=Dsmooth. This is known as the slow stochastic oscillator

Calculation of the unsmoothed %K parameter is as follows: Look back of the last span bars and find the lowest and highest prices. Use the formula  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1. To calculate the smoothed version, calculate the simple average of the unsmoothed %K parameter over Ksmooth days, i.e.  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1. Calculation of %D is similar, but rather than smoothing the unsmoothed %K parameter over Ksmooth bars, we instead smooth the smoothed %K parameter over Dsmooth bars:  A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1

The stochastic oscillator is thought to signal noteworthy events when the %K line crosses the %D line. It is thought that where the crossover occurs is also of some importance; if a crossover occurs above 0.8, it is thought to have a different meaning than a crossover that occurs below 0.2.

Calculating stochastic oscillators on all major-exchange U.S. stocks at all timepoints in the Yahoo! Finance database that I have been using for test purposes (eliminating any stocks that have ever traded below $1.00) and then calculating the geometric averages of the five-day returns of stocks meeting various criteria leads to the following table:

14, 3, 3 Full Stochastic Oscillator Test Results, 5-day Close-to-Close, Geometric Averages
%K Crosses Above %D %K Crosses Below %D
Above 0.8 (0.043%) (0.071%)
Below 0.2 0.272% 0.387%
Geometric Average 5-day Return, Close-to-Close: 0.087%

From this table we can see that choosing a random non-penny U.S. stock and holding it for five days is not a very good strategy. But choosing a non-penny U.S. stock at close when its %K crosses below its %D below 0.2 and then selling it at close five days later has shown in the test data (which is, admittedly, somewhat incomplete) returns averaging about 20% per year (minus commissions). While it is impossible to say with certainty how well such a strategy would perform in the real world, clearly, there is more to the stochastic oscillator than random chance.

twitter A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1digg A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1reddit A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1email A COMPREHENSIVE OVERVIEW OF POPULAR TECHNICAL INDICATORS II. STOCHASTIC OSCILLATOR, PART 1

A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 3

In a recent post, I suggested that Bollinger bands *might* be useful in a trading strategy by themselves but warned that it could be risky. Let’s take a look….

If you had made a trade in the past 30 years based solely on a high Bollinger band reading, more often than not, the stock price would have risen in five days. But if you had invested all of your money in several trades that way in sequence, odds are, you would have lost money! How is that possible?

It’s simple: When you lose money on the stock market, you have to make a larger percent gain in order to make back your money. If you have a 25% loss, you need a 33% gain just to break even. Three 25% gains are more than wiped out by a single 50% loss.

a3 A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 3

This chart was prepared by calculating the geometric average of all possible 5-day changes from close to close in the Yahoo! Finance stock market historical data available on January 13, 2011 across bins of 0.1 deviations (eliminating any stocks that had ever traded below $1). While it implies that stocks that are far below their lower Bollinger bands may be profitable short-term purchases, some care should be taken in interpreting this chart, as it may understate the risk for purchases. In addition, this chart should not be used as a substitute for simulation, and past performance is not always an indicator of future results.

twitter A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 3digg A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 3reddit A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 3email A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 3

A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 2

To prepare this chart, I calculated the 20 day Bollinger bands of every stock currently listed on Yahoo! Finance (as of January 13, 2012) that has never been priced below $1, at every available timeframe. I then observed the increase in closing price over a 5-day period. The intensity of each slot on the heat map is normalized relative to others directly above or below it.

In the absence of other information, it would seem that the most likely place for a stock price to be 5 days from now is where it is right now, as illustrated by the bright region across the center. You can see support/resistance lines at 1 Bollinger band and 3 Bollinger bands, with weaker support/resistance lines at about 2 1/2 Bollinger bands. Stocks that closed at those levels were more likely to remain at at those levels after five days than stocks that closed at other levels.

Due to the truncation on the chart, you can see that stocks which had Bollinger band readings above 3 were more likely to move much higher over the next 5 days than other stocks. Stocks with Bollinger band readings below 3 were also more likely to move much higher, although the odds weren’t nearly as good as those of stocks with extremely high Bollinger band readings.

a2 A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 2

Summary:

  1. We didn’t find any evidence supporting the popular 20 day, 2 deviation Bollinger band configuration. That doesn’t mean it doesn’t exist, but we haven’t found it yet. There did appear to be weak support/resistance at around 2 1/2 deviations from the 20 day average.
  2. We found some evidence that there was support or resistance at the 1 deviation Bollinger band on a 20-day timeframe.
  3. We found some evidence that there was support at the 3 deviation Bollinger band on a 20 day timeframe. Stocks that passed outside the 3 deviation Bollinger band were somewhat more likely than other stocks to post large gains, especially if they had passed 3 deviations above the 20 day average.

Well, that was pretty enlightening! While some risk is involved, it appears that Bollinger bands might be able to function alone in profitable strategies. They are more useful, though, in conjunction with other indicators. Check back later in this series for further analysis of Bollinger bands and other popular indicators.

UPDATE: Part 3 shows more details on the distribution of returns of Bollinger band-only strategies.

twitter A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 2digg A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 2reddit A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 2email A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 2

A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 1

A new investor cannot spend much time reading about how to time trades without reading about Bollinger Bands. While rarely discussed in academic research, Bollinger Bands are the most popular volatility model. The notion is simple: Calculate the average closing price and its standard deviation over a series of sliding windows, each one covering a fixed number of bars. Find the upper and lower bands by adding and subracting a multiple of the standard deviation from the average stock price, and BAM! You have Bollinger Bands.

This procedure has some appeal to many people who have had a little training in statistics. It resembles the widely-taught procedure for calculating confidence intervals on a normal distribution.

There are, however, a few problems with the analogy of Bollinger Bands and normal confidence intervals:

  1. Stock prices do not really follow a normal distribution. They more nearly follow a log-normal or even a Levy distribution. Sometimes, people use log Bollinger Bands to partially compensate for this deficiency, but that is uncommon.
  2. Stock prices show a high degree of autocorrelation. Ordinarily, we would expect that the price today would be highly correlated with the price tomorrow–and that the price tomorrow would be highly correlated with the next day’s price. This violates a key assumption used for calculating ordinary normal confidence intervals, i.e. that all samples are independent.
  3. It isn’t clear what would be indicated if the stock price crosses a Bollinger Band. Does it indicate that the stock price has reached an improbable level and that regression towards the mean is to be expected? Or does it indicate that there has been a shift in the mean?
  4. Bollinger Band calculations use the population standard deviation rather than the sample standard deviation. Common wisdom from introductory statistics classes would suggest using the sample standard deviation and the t-distribution within a normality framework.

Of course, it is a bit unfair to apply these criticisms to Bollinger Bands without noting that the same criticisms can be applied in varying degrees to a wide array of volatility models. And it is worth considering that given the popularity of Bollinger Bands, they affect investor behavior, causing forseeable price shifts. In the next article in this series, we will empirically examine the historical behavior of stock prices with relation to their Bollinger Bands in popular configurations.

twitter A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 1digg A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 1reddit A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 1email A COMPREHENSIVE REVIEW OF POPULAR TECHNICAL INDICATORS I. BOLLINGER BANDS, PART 1

Chart of the Day 2011/04/09: Moodys BAA Corporate Bond Yield

A quick look at Moodys BAA corporate bond yield suggests that they may be near the top of a channel that looks likely to extend in the near term (so bonds may be a good short-term buy), but as the Fed ends QE2, BAA yield rates appear likely to rise. Expect most financial markets to take a haircut as interest rates rise.

Note: The contents of this article are highly speculative, and should be interpreted as such. Consult with your financial adviser before making any investment decisions.

twitter Chart of the Day 2011/04/09: Moodys BAA Corporate Bond Yielddigg Chart of the Day 2011/04/09: Moodys BAA Corporate Bond Yieldreddit Chart of the Day 2011/04/09: Moodys BAA Corporate Bond Yieldemail Chart of the Day 2011/04/09: Moodys BAA Corporate Bond Yield

Chart of the Day 2011/03/18: IBM

Greetings. I have been busy lately, but I thought I would drop an update on IBM. As suspected in an earlier post, IBM was showing indications that its price was too high. But where is IBM headed now?

It’s hard to really say for sure, but I think it is most likely headed upwards. Why? Well, IBM recently experienced high trading volume, and it is now trading above the price level where most of the high-volume trading happened. This indicates some degree of price support; a lot of investors (or investors with a lot of money) thought that IBM was worth buying at not much lower than its current price. While it is true that a lot of investors (or investors with a lot of money) also thought that IBM was worth selling below its current price, most likely, those investors were panicking and therefore less likely to make rational decisions than the ones who bought IBM at those prices. Make sense? I think so. Be wary, though, if the price drops below 153.

Consult with your investment advisor before making any investment decisions.

Update 2011/03/18 09:00 AKST: I was shocked to learn today of allegations of bribery against IBM. It is reported that they have decided to settle for $10 million, without admitting fault. Their stock price appears to have been affected little by the allegations. Often when large computer companies get charged with a crime it means one of their competitors is about to get awarded a lucrative government contract, so perhaps HPQ or MSFT is a better bet in the short term.

Update 14:30 AKST: I wouldn’t buy it, but despite the allegations, IBM’s price is still looking bullish.

twitter Chart of the Day 2011/03/18: IBMdigg Chart of the Day 2011/03/18: IBMreddit Chart of the Day 2011/03/18: IBMemail Chart of the Day 2011/03/18: IBM
Partly powered by CleverPlugins.com