Friday, December 24, 2010

Generating Signals from RSI

RSI signals that are not derived from overbought or oversold

Ever wondered how you can generate signals from RSI apart from the usual overbought and oversold levels? It can be done although personally I wouldn't trade on signals that do not include an input from price. Let's face it RSI can be very frustrating when it fails to reach overbought or oversold for long periods of time. Well, let's just consider what RSI is telling us and whether we can use that concept in another way.

In fact RSI is calculated by measuring the sum of the higher closes and also the sum of the lower closes and normalizing the ratio of the result within a band of zero to 100. Clearly, when price rises then the sum of the positive close movement is larger than that of the negative close movement and thus RSI moves higher. The opposite is also obviously true.

Therefore RSI is reacting to sustained directional moves in one direction. What we need try and obtain from that information is when the RSI moves sufficiently in one direction is there risk of follow-through. We actually do this type of thing with price by placing Bollinger Bands around price and looking for breaks of the upper or lower bands. It is possible to do just that with RSI. It will look like this:

The bands are based on a 9 period average with a standard deviation of +/- 1. The idea I am investigating is whether breaks of either band by the RSI constitutes a valid signal. However, without even looking at price I can see that the number of occurrences where the band is broken but does not sustain a movement in that direction is quite frequent.

One of the most important factors, in my opinion, when trading is to match a signal generated by a technical indicator with price. Too often the movement in price that generates a break in an indicator fails to follow through. Because of that I like buying breaks of resistance or selling breaks of support. Therefore I can include both conditions in my trading.

In this way, when RSI breaks above the Bollinger high then I will only trade if price also breaks above resistance. What I tend to look at are swing bars - that is where a peak is formed and has at least 1 or 2 lower highs surrounding it (and vice verse for a trough.) So when RSI breaks above the upper band I will want to buy at the level of the swing high. If RSI breaks below the lower band I will want to sell at the level of the swing low.

The following shows how this may look:

Let's look at what we can generate from these combined signals one by one. I have marked swing highs and lows with a small red horizontal line:

  1. RSI dips below the lower Bollinger Lower Band. However, by the time it has confirmed this (at the close of the bar) price has already dipped below the swing low - it is too late to trade.
  2. RSI breaks above the Bollinger Higher Band. However, price fails to follow through above the swing high. No trade is seen.
  3. RSI breaks above the Bollinger Higher Band and on the next bar price confirms this move by penetrating the swing high. We buy at the swing high level. Price continues higher and then pulls back. In order to provide a trailing stop I have also entered a fairly fast SAR/Parabolic and we square on the 9th bar of the trade at the Parabolic level for a modest profit.
  4. RSI breaks below the Bollinger Lower Band. However, price does not break below the swing low. No trade.
  5. RSI once again breaks below the Bollinger Lower Band. However, price does not break below the swing low. No trade.
  6. RSI breaks above the Bollinger Higher Band and on the next bar price confirms this move by penetrating the swing high. We buy at the swing high level. Price continues to rally and to the right of the chart the position is still open having remains above the Parabolic.

Quite clearly the benefit of combining a signal from an indicator and from price appears to be working well, filtering out the bad indicator signals.

It is quite easy to have Bollinger Bands plotted on the RSI by writing a new indicator in the Chart Studio using CTL. To do this open up your Chart Studio and then in the system modules (click on the tab at the bottom left of the screen) and then scroll down to find “Relative Strength” and double click on it. This will open the coding for the RSI which is shown below. You will need to make some minor changes or just copy and paste the following into a new page:

indicator RSIandBollingerBands;
input price = close, period = 14, SD = 1, BollPeriod = 9 ;
draw line("RSI"), BBhigh("Bollhigh"), BBlow("BollLow");
vars i(number), u(series), d(series), au(series), ad(series), dif(number), f(number),RS(series);
begin
f := front(price);
u[f] := 0;
d[f] := 0;
for i := f + 1 to back(price) do begin
dif := price[i] - price[i - 1];
if dif > 0 then begin
u[i] := dif;
d[i] := 0;
end else begin
u[i] := 0;
d[i] := -dif;
end;
end;
au := mma(u, period);
ad := mma(d, period);
RS := 100 * au / (au + ad);
line := RS ;
BBhigh := SMA(RS,7) + SD * stddev(RS, Bollperiod) ;
BBlow := SMA(RS,7) - SD * stddev(RS, Bollperiod) ;
end.

  • From the menu bar select “Build” and then “Verify Module.”
  • You will be prompted to save the file. Name this “RSI and Bollinger Bands”
  • Against select “Build” and then “Verify Module.”
  • Finally once again select “Build” but this time “Install Module.”

You should find that the indicator appears in the “User Modules” window at the left of the screen. When you go back to your charting area and insert an indicator you will find “RSI and Bollinger Bands” will be available to insert into the chart.

Tuesday, December 14, 2010

Using Fibonacci Levels to Detect Range Bound and Trending Markets

Why we shouldn't buy breakouts

The FX-market oscillates on a regular basis between range bound and trending markets. In range bound market conditions, traders typically adopt a simple buy low, sell high approach, where as trending market climates call for traders to trade with the trend. However detecting whether the market is currently in a range bound or trending environment can be tricky, and costly if applied inaccurately. With that said, the Fibonacci levels can provide a valuable insight to the current market climate and the appropriate trading approach.

The first chart below shows a significant rally to the upside, as the trend reversed direction, the market then passed through all 3-commonly used Fibonacci levels; 38.2%, 50%, & 61.8%. Due to the fact that not one of our Fibonacci levels established our new support, we can extrapolate that a trend is not probable. It is important to keep in mind that trends exist when there is an uneven distribution of buyers and sellers, forcing the market to new high/low prices. However due to the fact that the market fell back below every Fibonacci line, indicates that the buyers were not in fact in control of the marketplace. Finally note how the market then accomplished a 'slightly' new low before reversing once again back to the upside. If we were to sell short the market at its slightly new low price, we would have certainly exited the trade at a loss.

We may now see how the market rallied back to the upside, and found a new (lower) resistance at the 50% Fibonacci level; measured now from our recent high to low prices. Due to the fact the market's progress was then halted at a specific Fibonacci level tells us that at that moment in time, the sellers had in fact gained control of the marketplace as they will not allow the buyers to force us back to recent highs, and an ensuing downtrend is now more probable.

These observations also teach us a valuable lesson against the practice of buying new highs or selling new lows. Conventional wisdom dictates that if the market accomplishes a new high price, the short (stops) will be triggered, in turn will compel the market to even higher highs. However upon careful study of the two aforementioned charts, we learn that if a new trend is intact, the market 'should have' found a new support/resistance level at one of the previous Fibonacci lines. After the first rally to the upside was complete, and as the market retreated back to recent lows, the fact that the market did not find a new (higher) support at one of our Fibonacci levels tells us that the buyers were not in fact, in control, and a relatively equal distribution of power remained between the buying and selling forces which have a greater chance of keeping us in a perpetual range bound market environment. On the other hand, due to the fact that the market found new lower resistance at a Fibonacci level indicates stronger selling pressure, and a greater likelihood of a new trend to the downside will now emerge.

Saturday, December 4, 2010

Enhancing Currency Trading with the Elliott Wave Analysis

One of the most common topics of conversation for traders is Elliott Wave analysis. Ironically, few traders actually apply this method because many are unsure about the intricacies of the Elliott Wave. In truth, correct analysis and counting of the waves can be a daunting task. However, even without the help of electronic wave analysis, traders should be able to enhance their profitability with a disciplined use of Elliott's method.

How It All Started

In the first half of the 20th century, Ralph Nelson Elliott concluded that financial markets have a striking resemblance to a basic harmony found in nature and postulated that price movements in financial markets follow patterns but not necessarily in time or amplitude. Elliott set up the Wave Principle on empirically derived rules for interpreting the price action.

Basics of Wave Analysis

Elliott postulated that financial prices unfold according to a basic rhythm or pattern: five waves in the direction of the trend and three waves counter trend. He named the five-wave upward movement an impulse wave, and the three-wave counter trend- a corrective wave.

Within the five-wave bull move, waves 1, 3 and 5 are called impulse waves. They are subdivided into five waves of smaller scale. The subwaves of impulse sequences are labeled with numbers. Waves 2 and 4 are corrective waves, subdividing into three smaller waves each. The subwaves of corrections are labeled with letters.

Waves of any degree in any series can be subdivided and then subdivided again into waves of a smaller degree, as follows:

IMPULSE CORRECTIVE CYCLE
Waves 1 1 2
First subdivisions 5 3 8
Second subdivisions
Subdivisions 21 13 34
Third subdivisions
Subdivisions 89 55 144

Elliott's Rules of Interpretation

Elliott identified three essential rules of interpretation of his wave principle:

Wave 2 may never retrace more than 100% of wave 1.
Wave 3 is never the shortest; most of the time the longest.
Wave 4 can never enter the price range of wave 1.

Characteristics of the Waves:

  • Wave 1.
    Wave 1 is difficult to identify because it appears to be more of a correction. It is often the shortest of the impulse waves.
  • Wave 2.
    Wave 2 should be easier to identify due to its three-subwave structure. It tends to retrace by about .618% of the first wave.
  • Wave 3.
    Wave 3 is usually the longest and it is never the shortest. It has a dynamic move, and the penetration of the top of Wave 1 attracts more demand in a bull market. Naturally, this makes for a good volume and fundamentals support the move.
  • Wave 4.
    According to the rule of alternation, if wave 2 is complex, then wave 4 tends to have a less complex pattern and vice versa. Of course, Wave 4 can never enter the price range of Wave 1.
  • Wave 5.
    Wave 5 can be dynamic and extended, as Figure 8 shows. By now everyone has figured out the long-term trend and these conditions can create a good overshooting scenario.
  • Wave A.
    Wave A is difficult to catch through all the euphoria. A good hint comes from the break into five subwaves.
  • Wave B.
    Wave B may be of different complexities and lengths since the last bulls are making their final mark in a previously rising market and the bears are testing the waters and starting to go short.
  • Wave C.
    Wave C puts the stamp on the end of the trend. Following a bull market, wave C should fall below the bottom of wave A.

Impulse Waves - Variations

Elliott Wave identifies several extensions, which are not easy to use. In the five-wave sequence, one of the three impulse subwaves tends to generate an extension. These subdivisions are of nearly the same amplitude and duration as the larger-degree waves of the main impulse sequence, giving a total count of nine waves of similar size rather than the normal count of five for the main sequence.

Extensions can be useful guides to the lengths of future waves. Most impulse sequences contain extensions in only one of their three impulsive subwaves. Therefore, if the first and third waves have about the same magnitude, the fifth wave will probably be extended. Extensions may also occur within extensions. Although extended fifth waves are not uncommon, extensions of extensions occur most often within third waves.

FAILURES OR TRUNCATED FIFTHS

Elliott called failure any impulse pattern in which the extreme of the fifth wave fails to exceed the extreme of the third wave.

Corrective Waves

Market swings tend to move easier with the trend of a larger degree than against it. Therefore, corrective waves can be highly complex, choppy and often difficult to interpret before completion.

The most important characteristic about corrections is that they never consist of five subwaves. Only impulse waves consist of five subwaves.

Elliott identified the following four corrective patterns:
1. Zigzags (5-3-5)
2. Flats (3-3-5)
3. Triangles (3-3-3-3-3)
4. Combined structures

Zigzags are simple three-wave patterns, subdivided into 5-3-5 structures, in which the extreme of wave B remains a significant distance from the beginning of wave A. Occasionally, a double zigzag formation may occur.

FLATS - Flat corrections have a 3-3-5 structures. The original movement of wave A lacks the momentum to develop into a full five waves, as in a zigzag. Wave B also lacks countertrend pressure and often ends at or beyond the start of wave A. Wave C usually finishes near the extreme of wave A, rather than significantly beyond it, as in a zigzag. Elliott identified four types of flats: regular, expanded, irregular and running.

TRIANGLES - Triangles tend to occur just before the final rally in the direction of the trend. They tend to be extended because of low volume and low volatility during a consolidation period. Triangles consist of five waves, labeled A-B-C-D-E, subdivided into three waves each. The four types of triangles are symmetrical, ascending, descending and expanding. After completion of a triangle, the final impulse wave of the larger trend is usually swift and has a price objective equal to the base of the triangle. This movement is called a thrust.

COMBINED STRUCTURES - In Elliott Wave analysis, zigzags and flats are often called threes. These combined structures consist of two or more threes separated by smaller three-wave movements, labeled X waves. For example, a double three may consist of a flat, a smaller zigzag-forming wave X and a second flat, or it might contain a zigzag , a smaller flat in wave X and a second zigzag. The combined structures are generally sideways formations reflecting market hesitation.

Conclusion

A disciplined analysis and a trained eye should help you get a good grip on Elliott's method. While it can be complex and time consuming, it is also an excellent approach to true forecasting.

Enhancing Currency Trading with the Elliott Wave Analysis

One of the most common topics of conversation for traders is Elliott Wave analysis. Ironically, few traders actually apply this method because many are unsure about the intricacies of the Elliott Wave. In truth, correct analysis and counting of the waves can be a daunting task. However, even without the help of electronic wave analysis, traders should be able to enhance their profitability with a disciplined use of Elliott's method.

How It All Started

In the first half of the 20th century, Ralph Nelson Elliott concluded that financial markets have a striking resemblance to a basic harmony found in nature and postulated that price movements in financial markets follow patterns but not necessarily in time or amplitude. Elliott set up the Wave Principle on empirically derived rules for interpreting the price action.

Basics of Wave Analysis

Elliott postulated that financial prices unfold according to a basic rhythm or pattern: five waves in the direction of the trend and three waves counter trend. He named the five-wave upward movement an impulse wave, and the three-wave counter trend- a corrective wave.

Within the five-wave bull move, waves 1, 3 and 5 are called impulse waves. They are subdivided into five waves of smaller scale. The subwaves of impulse sequences are labeled with numbers. Waves 2 and 4 are corrective waves, subdividing into three smaller waves each. The subwaves of corrections are labeled with letters.

Waves of any degree in any series can be subdivided and then subdivided again into waves of a smaller degree, as follows:

IMPULSE CORRECTIVE CYCLE
Waves 1 1 2
First subdivisions 5 3 8
Second subdivisions
Subdivisions 21 13 34
Third subdivisions
Subdivisions 89 55 144

Elliott's Rules of Interpretation

Elliott identified three essential rules of interpretation of his wave principle:

Wave 2 may never retrace more than 100% of wave 1.
Wave 3 is never the shortest; most of the time the longest.
Wave 4 can never enter the price range of wave 1.

Characteristics of the Waves:

  • Wave 1.
    Wave 1 is difficult to identify because it appears to be more of a correction. It is often the shortest of the impulse waves.
  • Wave 2.
    Wave 2 should be easier to identify due to its three-subwave structure. It tends to retrace by about .618% of the first wave.
  • Wave 3.
    Wave 3 is usually the longest and it is never the shortest. It has a dynamic move, and the penetration of the top of Wave 1 attracts more demand in a bull market. Naturally, this makes for a good volume and fundamentals support the move.
  • Wave 4.
    According to the rule of alternation, if wave 2 is complex, then wave 4 tends to have a less complex pattern and vice versa. Of course, Wave 4 can never enter the price range of Wave 1.
  • Wave 5.
    Wave 5 can be dynamic and extended, as Figure 8 shows. By now everyone has figured out the long-term trend and these conditions can create a good overshooting scenario.
  • Wave A.
    Wave A is difficult to catch through all the euphoria. A good hint comes from the break into five subwaves.
  • Wave B.
    Wave B may be of different complexities and lengths since the last bulls are making their final mark in a previously rising market and the bears are testing the waters and starting to go short.
  • Wave C.
    Wave C puts the stamp on the end of the trend. Following a bull market, wave C should fall below the bottom of wave A.

Impulse Waves - Variations

Elliott Wave identifies several extensions, which are not easy to use. In the five-wave sequence, one of the three impulse subwaves tends to generate an extension. These subdivisions are of nearly the same amplitude and duration as the larger-degree waves of the main impulse sequence, giving a total count of nine waves of similar size rather than the normal count of five for the main sequence.

Extensions can be useful guides to the lengths of future waves. Most impulse sequences contain extensions in only one of their three impulsive subwaves. Therefore, if the first and third waves have about the same magnitude, the fifth wave will probably be extended. Extensions may also occur within extensions. Although extended fifth waves are not uncommon, extensions of extensions occur most often within third waves.

FAILURES OR TRUNCATED FIFTHS

Elliott called failure any impulse pattern in which the extreme of the fifth wave fails to exceed the extreme of the third wave.

Corrective Waves

Market swings tend to move easier with the trend of a larger degree than against it. Therefore, corrective waves can be highly complex, choppy and often difficult to interpret before completion.

The most important characteristic about corrections is that they never consist of five subwaves. Only impulse waves consist of five subwaves.

Elliott identified the following four corrective patterns:
1. Zigzags (5-3-5)
2. Flats (3-3-5)
3. Triangles (3-3-3-3-3)
4. Combined structures

Zigzags are simple three-wave patterns, subdivided into 5-3-5 structures, in which the extreme of wave B remains a significant distance from the beginning of wave A. Occasionally, a double zigzag formation may occur.

FLATS - Flat corrections have a 3-3-5 structures. The original movement of wave A lacks the momentum to develop into a full five waves, as in a zigzag. Wave B also lacks countertrend pressure and often ends at or beyond the start of wave A. Wave C usually finishes near the extreme of wave A, rather than significantly beyond it, as in a zigzag. Elliott identified four types of flats: regular, expanded, irregular and running.

TRIANGLES - Triangles tend to occur just before the final rally in the direction of the trend. They tend to be extended because of low volume and low volatility during a consolidation period. Triangles consist of five waves, labeled A-B-C-D-E, subdivided into three waves each. The four types of triangles are symmetrical, ascending, descending and expanding. After completion of a triangle, the final impulse wave of the larger trend is usually swift and has a price objective equal to the base of the triangle. This movement is called a thrust.

COMBINED STRUCTURES - In Elliott Wave analysis, zigzags and flats are often called threes. These combined structures consist of two or more threes separated by smaller three-wave movements, labeled X waves. For example, a double three may consist of a flat, a smaller zigzag-forming wave X and a second flat, or it might contain a zigzag , a smaller flat in wave X and a second zigzag. The combined structures are generally sideways formations reflecting market hesitation.

Conclusion

A disciplined analysis and a trained eye should help you get a good grip on Elliott's method. While it can be complex and time consuming, it is also an excellent approach to true forecasting.

Wednesday, November 24, 2010

Dual Moving Averages ... the Market's Favorite…

Why moving averages are my least favored trading tool

"What moving averages do you use?"

Isn't that a common question? Is there and answer? Of course, many traders use moving averages. Which are the best periods to use then?

My answer: "Depends on how much money you want to lose."

I am fascinated by the market's fascination with moving averages. Why? Am I missing something? I have seen all sorts of strategies using moving averages but have never seen a strategy that is stable and makes steady profit with a low drawdown.

Let's take a look at a simple dual moving average strategy that simply buys when they cross higher and sells when they cross lower. I used this on a chart of the Euro against the Dollar and to begin with I have limited this to a period of five years from the introduction of the Euro in January 1999.

Just to speed up the process I optimized the two periods which ended up as 9 periods for the short moving average and 35 for the long moving average.

Capital $20,000 Leverage 5x EUR 80,000
Total Net Profit 0.4918 Gross Profit 0.8088


Gross Loss (0.3170)
Total # of trades 38 Percent profitable 55.26%
Number winning trades 21 Number losing trades 17
Max intraday drawdown (0.0908) As a % of capital (36.32%)
Largest winning trade 0.1046 Largest losing trade (0.0442)
Average winning trade 0.0385 Average losing trade (0.0186)
Ratio avg win/avg loss 2.0654

1999 0.0983 39.32%
2000 0.1355 54.20%
2001 0.0396 15.84%
2002 0.0759 30.36%
2003 0.1425 57.00%
TOTAL 0.4918 196.72%

Let's look at these numbers.

First of all I took an average rate of 1.25 for the EURUSD rate and came to a position size on a 5x leverage of EUR 80,000. This is probably a bit high, but for the sake of examining just how good a strategy is it will suffice.

Well, we have see 55.26% of the trades make profit and the ratio of profit to loss is over 2:1. That is quite good. The total net profit over the 5 years is 0.4918 – so very nearly 0.1000 per annum. Looking at the results for each year we see the lowest return was 15.84% (2001) and the highest was 57.00% (2003). I'd be happy with that. We've almost trebled our capital in that time although we would have had to have gone through something like a 36.32% drawdown in capital at some point.

These numbers are good!

So on the 1st January 2004 we can start trading… and these would have been the results since then:

Capital $20,000 Leverage 5x EUR 80,000
Total Net Profit (0.0922) Gross Profit 0.2704


Gross Loss (0.3626)
Total # of trades 27 Percent profitable 22.22%
Number winning trades 6 Number losing trades 21
Max intraday drawdown (0.1480) As a % of capital (59.20%)
Largest winning trade 0.0889 Largest losing trade (0.0379)
Average winning trade 0.0451 Average losing trade (0.0173)
Ratio avg win/avg loss 2.6100

2004 (0.0073) (2.92%)
2005 (0.0416) (16.64%)
2006 (0.0128) (5.12%)
2007 (0.0130) (5.20%)
TOTAL (0.0747) (29.88%)

Suddenly the numbers don't look quite so good… Every year has recorded a loss and the maximum drawdown was almost 60% of capital. Only 6 out of the 27 trades made profit over the 3.25 years.

Was there something wrong with the optimization? How could the same moving average periods lose so much money?

I have news… this is very, very common.

The next question is normally "Can I add a money management stop, trailing stop or take profit."

Of course you can but do remember there are two risks involved. To be honest a money management stop should always be employed. However, there can be a downside in that when set to a level with which you feel comfortable it can actually increase the drawdown. What can happen especially with simple moving average systems is that since they provide a lagging entry signal, the subsequent pullback is so deep it will catch the money management stop. This often takes a loss on a position you may have profited from without the stop and if there are too many of these it can actually cause the drawdown much higher.

Trailing Stops and Take Profit Stops are also valid methods to take more control over positions. Here however you will need to avoid optimizing them. If anything they should be set to a non-fixed amounts but reflect market volatility through using volatility. Optimizing these is not recommended. The more variables you put into your system the more unstable it becomes.

The final question is then usually asked. "Is there any way to more thoroughly check whether the optimization has provided a stable result?"

The answer is most definitely yes. Look at the profit results of all the optimized periods. For example, let's look at the strategy above. After optimization the moving average periods used were 9 and 35. Each of these should be examined to observe how stable the results are around the optimum period. Look at the following graphs of results:

On the left are the results of all lengths in the short moving average period from 5 to 12 while on the right are the results of all lengths in the long moving average period from 30 to 40.

Note on the left that around the optimum 9 period average the next best results are around 1,000 points lower and going out to the extremes these move down to 2,000 points lower. Equally, on the right we see a similar result.

It must be understood that when optimizing the chances of seeing profits as high as suggested by the optimum periods are very, very low and thus do not even begin to think that your trading results will be any where close. The best type of result you should be looking for in a type of flat bell curve which sees limited reductions in profit either side of the optimum. Even then, the more variable parameters you utilize the more chance there is of these causing an exponential reduction in profitability in your strategy.

What I have pointed out here with two moving averages is common of a poor strategy but very common using moving averages. They are really not good trading tools.

Sunday, November 14, 2010

Moving Averages as a Forecasting Indicator

There is reason for caution when analysts tell you that moving averages forecast price movement

Many analysts still claim that moving averages can be used to forecast the subsequent day's movement. I'm not sure why this is considered true as none of the tests I have ever done suggest that they are anything less than poor at the role. In fact, almost certainly they would lose money when used in this fashion.

Let me go through a test to highlight the numbers and the risk of loss.

The first test is a simple trading strategy. If the moving average closes higher then the strategy will buy at the next day's opening price and exit at close. In fact, just to try and discover the best parameter for Dollar-Yen I optimized the period used on a daily chart over 5 years from 2002 to 2006 and fount the very best period was a 7 day exponential moving average. The results can be summarized as follows:

Year Profit (in points)
2002: 1,299
2003: (664)
2004: 1,775
2005: (224)
2006: (840)

Total: 2,568

Maximum drawdown: 1,343 points (maximum loss from the equity high point)
% of winning trades: 50.89%
Average Profit: 50 points
Average Loss: 48 points
Ratio of profit/loss: 1 : 1.04

Let's just look at the numbers. First of all the net total over 5 years represents about 500 points a year. If we use a conservative 5x leverage it will represent an approximate 22.5% return a year on average. Not too shabby.

Now let's look at the maximum drawdown, a massive 1,343 points which using the same leverage would have lost you 61% of your capital and would have severely restricted your ability to trade at the same leverage, not even to mention whether you would have just plain given up.

Let's look at something more damning. By necessity chart prices are constructed using the bid price only and thus you should always look at allowing for the 3 point spread. Let me add in a 3 point slippage. The figures now look like this:

Year Profit (in points)
2002: 537
2003: (1,435)
2004: 992
2005: (553)
2006: (840)

Total: (1,299)

Maximum drawdown: 2,181 points (maximum loss from the equity high point)
% of winning trades: 48.25%
Average Profit: 50 points
Average Loss: 48 points
Ratio of profit/loss: 1 : 1.03

Clearly in reality we would have probably made a loss just because of the bid/offer spread! What is more, the maximum drawdown of 2,181 points would have implied a loss of 99% of our capital!

I think that clearly shows that moving averages simply do not forecast the next day's movements. However, in addition to the above the results shown are from using the optimized period. In reality we wouldn't know the optimum period until after the fact and would have to hope that the period chosen would continue to make the same level of profits. I have met many traders who think this is a reasonable assumption.

Well, to dispel any such ideas let me show you the graph of the profit/loss across the range of optimization periods which I organized from 3 to 30:

Out of 28 periods used only 9 actually produced profit. The 7 period average made the most at 2,568 points (before allowing for the spread) while the next best profit was the 6 period average which only made 1,620 points. When allowing for the spread no period of moving average made any profit at all.

I hope this puts to rest the claim that moving averages can be used to forecast price.

Thursday, November 4, 2010

Using Support and Resistance Levels

A guide to determining approximate reversal levels

Support and resistance is a tool which is often used but quite often the source of the support and resistance levels are not often completely obvious. There are several ways to derive these levels:

  1. Previous support remains supportive until broken and vice versa
  2. Previous support becomes resistance and vice versa in pivot levels
  3. Fibonacci derived support and resistance either by retracement or projections

The third method is the most accurate but the process of learning how to calculate these using the right levels requires a large degree of experience and skill using Elliott Wave. I shall therefore concentrate on the first two in this article.

In the image above the upper chart is of daily Dollar-Yen while the lower is the weekly chart.

Now the first thing to remember is that trends are developed when (in an uptrend) highs are moving higher and lows are moving higher. In a downtrend the lows are moving lower while the highs are also moving lower.

Thus when in an uptrend the most recent low is broken we need to decide where price might finally make a corrective low.

For example, we can see in the daily chart that price rallies to the 121.38 high at point (1). It then reverses, breaking below previous lows in the uptrend. So now we know the uptrend is reversed but where will the decline reach?

In the weekly chart we can see two prior lows around 115.50 which also provided resistance in an earlier correction. It is this pivot area where the first decline to point (a) completes. The correction to point (b) can often be measured by Fibonacci retracements and in the case it was 76.4%.

The next decline in the daily chart to point (2) reaches 108.96. This is just 26 points above the last major low at 108.70 before the rally to 121.38. It is very frequent that the first retracement will move to the most recent major low (after a rally) or the most recent high (in a decline). A horizontal line has been marked on the weekly chart to show this support area.

Now that we have identified the approximate area of the low and we see a recovery we can begin to look at where this may reach. We should remember the pivot area around 115.50 although while it did see a reaction for a few days price quickly broke through and we then need to look for the next resistance.

Here is a little tip that can be useful. Where you see a very distinctive 3-leg move as we did from the 121.38 high down to 108.96, the retracement will quite often move to the extreme of the middle correction - in this case at point (b). The high was at 119.38 and the rally to Point (c) ended at 119.87 - just 50 points above.

From the 119.87 peak we can see how price then declined and penetrated the series of supporting lows so we then look at the 115.50 pivot area again but since this didn't hold too well on the way up we can begin to look at the series of lows that spread across from the 113.41 low at Point (a) and the last major low which was at 113.95. We should expect the correction lower to find a correction close to the 113.41-95 area. In the end the correction ended at 114.42 at Point (3).

The next rally then moves up to retest and break the 121.38 high at Point (4). We may have been tempted to call price higher then but the break below the corrective lows signaled a reversal lower which has been declining back towards the 113.41-114.41 lows and still may just get there.

Of course, using support and resistance areas in this way is an approximation and it should not be expected to find accurate or final support or resistance levels but can be useful in determining the basic direction. Certainly as price approaches these levels you should always be looking at the lower time-frame chart to spot reversal patterns or breaks of short time-frame trend lines and also of the most recent lows/highs that would indicate a reversal.

Sunday, October 24, 2010

Percent R ... Just What is it?

A deeper look at Percent R

Have you ever scanned through the list of indicators to see whether there is anything interesting that you think you can use? Did you input Percent R? Maybe you thought it was useful, perhaps not. Did it remind you of anything? It looks similar to Fast Stochastics possibly…

Just for a look I have inserted both Fast Stochastics (above in blue) and Percent R (below in red). They do seem to have similarities and certainly a similar reaction in timing but the scaling for Percent R is negative while that of Fast Stochastics is positive.

Actually they are the same.

Let us just look at the formula for each:

Fast K = 100 * ( Close - Lowest Low ) / ( Highest High - Lowest Low )

% R = -100 * ( Highest High - Close ) / ( Highest High - Lowest Low )

Quite clearly they are measuring the same relationship between the position of the close within the range of the chosen number of recent bars. The difference between the two is that Stochastics measures the position of the close from the highest high in the range while %R measures the close from the lowest low in the range.

You will also see from the formula of %R that the result is multiplied by -100 and this results in a scale of zero to -100 while Stochastics has a scale from zero to +100. Then why is there a difference between the two in Dealbook? That is because the default period used in Stochastics is 8 while %R uses 14.

What I did was change the %R calculation to use +100 as the multiplying factor to arrange the results in a scale from zero to 100. I then used a period of 14 for both indicators and then plotted them in the same chart:

Now you can see that the two are in fact identical. Why does %R provide an alternative method of displaying the same information? To be honest I really don’t know why and since they are exactly the same I personally do not use %R and if I want to use this type of momentum indicator I apply Stochastics.

Percent R ... Just What is it?

A deeper look at Percent R

Have you ever scanned through the list of indicators to see whether there is anything interesting that you think you can use? Did you input Percent R? Maybe you thought it was useful, perhaps not. Did it remind you of anything? It looks similar to Fast Stochastics possibly…

Just for a look I have inserted both Fast Stochastics (above in blue) and Percent R (below in red). They do seem to have similarities and certainly a similar reaction in timing but the scaling for Percent R is negative while that of Fast Stochastics is positive.

Actually they are the same.

Let us just look at the formula for each:

Fast K = 100 * ( Close - Lowest Low ) / ( Highest High - Lowest Low )

% R = -100 * ( Highest High - Close ) / ( Highest High - Lowest Low )

Quite clearly they are measuring the same relationship between the position of the close within the range of the chosen number of recent bars. The difference between the two is that Stochastics measures the position of the close from the highest high in the range while %R measures the close from the lowest low in the range.

You will also see from the formula of %R that the result is multiplied by -100 and this results in a scale of zero to -100 while Stochastics has a scale from zero to +100. Then why is there a difference between the two in Dealbook? That is because the default period used in Stochastics is 8 while %R uses 14.

What I did was change the %R calculation to use +100 as the multiplying factor to arrange the results in a scale from zero to 100. I then used a period of 14 for both indicators and then plotted them in the same chart:

Now you can see that the two are in fact identical. Why does %R provide an alternative method of displaying the same information? To be honest I really don’t know why and since they are exactly the same I personally do not use %R and if I want to use this type of momentum indicator I apply Stochastics.

Thursday, October 14, 2010

Things to Watch for... MACD

Avoiding the pitfalls of using MACD in your trading

MACD is used quite widely among traders mainly, it would seem, because the basis for the indicator is something they can visualize - effectively measuring the degree of convergence or divergence of two exponential moving averages. Commonly traders will consider buying or selling on crossover of the MACD lines. However, there can be problems and it is worth understanding when these may occur.

Let us take a look at the MACD plot on a weekly chart of USDJPY:

Broadly we would be pleased with the general signals being generated from MACD in this chart. While the crossover of the MACD across the signal line never really occur at market extremes, in this case they are pretty close and one cannot expect a lagging indicator to provide signals at price extremes.

It can be seen that before the moving averages cross the MACD is signaling a reversal earlier and allowing an early entry into a potential trade. Perfect. We can begin to trade on this indicator then… Or can we..?

Take a look at the second chart, still the weekly chart of USDJPY but from a year or two later:

At first it looks quite good. MACD signals a sale into the large decline to the historic 79.70 low and a little later a reversal higher. There is lots of profit to be taken there. However, watch as the MACD peaks out soon after the initial rally from the 79.70 low. The two exponential moving averages continue to point higher and indeed do not cross lower until after the 147.65 peak. However, MACD spends around one year in a decline while price has continued to rally.

This is a recipe for losses.

Why is it that MACD can provide such a bad signal since it is based on two exponential moving averages?

The answer lies in the name: Moving Average Convergence and Divergence.

While the exponential moving averages are rising, the trend has slowed to the point that while only slightly the averages are converging - that is, moving closer together and this has caused the MACD to cross below the signal line.

Well, is there any way to control the trades to make sure that we do not make those trades? Indeed. One of the best tips I can offer is to remember the definition of a trend. An uptrend is where both highs and lows are moving higher. Thus, until the most recent low s broken there is no break/reversal of the trend.

Let us look at how this would have worked:

As can be seen, I have drawn a horizontal line under each successive swing low. At no point is one of these broken until after the final high to the upper right of the chart. Thus, by combining information garnered from the price chart you can avoid many loss making trades.

Monday, October 4, 2010

Head & Shoulders

The EURUSD (1-Hour Chart) has now established what appears to be a classic "Head and Shoulders" pattern over the course of the past few weeks. This pattern is essentially a 'triple top' pattern, where the center top (Head) stands higher than the first or third tops (Shoulders). The rational occurs as the result that the market was not able to revisit recent high prices established during the center top, and therefore is inherently a sign of an imminent reversal to come. Typically, to complete the head and shoulders pattern, we must wait for the market to break below the lows established during this triple top patter; (neckline). However in regards to placing the actual trade, it is in our best interest to sell-short the market as it tests and fails to break above the highs of the 2nd shoulder, while placing protective stops above the highs of the shoulders and perhaps the highs of the center top (head). By doing so, this trade can provide us with a favorable risk to reward scenario if the market does in fact breakdown below our horizontal support line to new low's.

Friday, September 24, 2010

Stochastics Cross Signal

A useful strategy to reduce your losses using stochastics crossover signals

Stochastics are often used to generate buy and sell signals when the %FastD crosses above or below %SlowD. Just how good are these signals?

The stochastic plot here shows where entries are indicated:

I have not circled all the signals but just four in the center of the chart that only shows the stochastic plot. The buy signal occurs when %FastD crosses above %SlowD and the sell signal occurs when the opposite is seen - when the %FastD crosses below %SlowD. However there are two other signals in between that provide first a sell signal and then a buy the next bar. This is rather annoying.

Let us seen how the entries might look on a chart.

Clearly, when there is a modestly sustained move the Stochastic crossovers can provide a reasonable profit but all too often in the small, rather tight range consolidations it can give back much too much of hard earned profits.

Is there any way we can try and prevent this give back? I tend to consider the plain signals provided by momentum indicators as too simple and in a way that doesn't really fully take price development into consideration. Does a reversal of the %FastD through %SlowD constitute a directional reversal? Personally I do not think so.

Then what does represent directional reversals? Well, if you go back to a fundamental premise on what constitutes a trend it can be defined by looking for higher highs and higher lows in an uptrend and vice versa for a downtrend. If we then just trade without looking at the price chart just because %FastD has crossed through %SlowD then we're really not think about what we're doing. Quite often price can see a one or two bar reversal but not to the extent that it penetrates the most recent sequence of higher lows (in an uptrend) or lower highs (in a downtrend.)

What we can do is stipulate that we'll only buy on a Stochastic cross higher if price penetrates the last swing high, or if the Stochastic crossover is lower then on the breach if price penetrates the last swing low:

You can see by doing this it does reduce the number of trades dramatically but actually takes out most of the losing trades. The first short sell to the bottom left of the chart will produce a loss - but this is compared to 6 losing trades without the price filter. The long trend is kept intact in the center of the chart as price rallies and is reversed soon after the peak. We then see two sell signals with no buy signals.

The techniques is not foolproof, as any methodology has its weak points at times, but it can be seen that using a price signal along with a momentum signals can dramatically reduce the number of losses you may need to take on using such a strategy.

Tuesday, September 14, 2010

Using Multiple Time Frames in Your Analysis II

Utilizing a lower time frame chart to identify when Bollinger support/resistance will hold

Following on from the first description of using multiple time frame charts to both strengthen your analysis and enable tighter entry and exit trades, let us take another look at using these in a different example.

Many traders like to use Bollinger Bands to try and identify entry signals. The problem I have always had with them is that they only provide approximate support and resistance which causes problems in knowing where you should enter and where the stops should be placed. Not only that but sometimes they just don't seem to work at all as a support/resistance tool and the judgment of when they'll work appears purely subjective.

Take a look at the daily chart of GBPUSD:

In the center of the chart we can see that price has declined to the Bollinger low and on first touch it does bounce only to fall below the lower band and does so on three consecutive days. On the day before the absolute low Rapid RSI moves into the oversold extreme. Does this mean we can buy? Maybe. Sometimes it works and sometimes it doesn't.

So what should we do?

The following chart is the 2 hour chart showing the approach to the low at 1.9400.

On the left of the chart we can see that price falls below two identical lows and these can then be considered as pivot resistance. We then see the three pushes lower and on the daily chart we know that the Rapid RSI went into an oversold extreme.

Do we buy at that point because is looks like the Rapid RSI on the 2 hour chart is developing a bullish divergence? The answer is "no." Divergences should only be traded on a break of a pattern. In this case we have an intermediate downtrend line and it is only after the final low that price breaks above the trend line and thus confirms the bullish divergence in Rapid RSI. You will also note that following the break above the trend resistance that price reverses briefly to retest the trend line which provides a second buying opportunity.

Following the break of the trend line which was the day after the daily oversold reading price rallies by 200 points. That's a good profit… Not only that, by waiting and observing the 2-hour chart you can avoid trying to pick the bottom as suggested in the daily chart.

Remember, it is normally best not to try and pick tops and bottoms as these will often provide losing trades. Waiting patiently for the right signal by fine-tuning the entry on a shorter time frame chart can reduce losing trades and make the final trade a more profitable one.

Saturday, September 4, 2010

Using Multiple Time Frames in Your Analysis

A technique to improve your trading decisions

Have you ever seen RSI overbought and wonder whether it was the right time to sell? Let's face it, an overbought reading in a momentum oscillator can merely mean that price is strong and may even turn into an uptrend.

Is it a valid overbought signal? Do you sell? Where do you sell? Where should you place your stop?

Quite often using two charts of different time frames can help. For instance, let us suggest you have seen an overbought reading in the daily chart but there is no bearish divergence. What you can do is look at a shorter time frame chart, a 4-hour or 2-hour chart to see what is happening there an whether a more accurate sell signal can be identified.

Let us look at recent example in EURUSD:

Above is the daily chart of EURUSD as it approached 1.3258. Daily Rapid RSI was showing an overbought reading but there was no bearish divergence. From this chart alone we probably couldn't work out whether there was a selling opportunity or not.

This second image is the 2-hour chart of EURUSD but here it can be seen that the peak at 1.3258 was accompanied by a bearish divergence in Rapid RSI. We are therefore on warning that a reversal can occur and that the daily overbought reading may well be correct.

Next we have to identify a selling level and in this case it is on the break of the price support line which has touched price four times before it finally breaks and this is where we can place our sell-stop. The money management stop should ideally be placed above the 1.3258 high but if this is too high and would cause a large loss then we can look at placing a stop above the rising trend line. However, do note that is a rising trend line and could mean that your stop needs to be raised to allow a possible retest of the line.

In this case the trade would have been very profitable with a decline down close to the daily pivot support which rests around 1.3050. A take profit order can be placed just above this to exit the position at a tidy profit.

Using Multiple Time Frames in Your Analysis

A technique to improve your trading decisions

Have you ever seen RSI overbought and wonder whether it was the right time to sell? Let's face it, an overbought reading in a momentum oscillator can merely mean that price is strong and may even turn into an uptrend.

Is it a valid overbought signal? Do you sell? Where do you sell? Where should you place your stop?

Quite often using two charts of different time frames can help. For instance, let us suggest you have seen an overbought reading in the daily chart but there is no bearish divergence. What you can do is look at a shorter time frame chart, a 4-hour or 2-hour chart to see what is happening there an whether a more accurate sell signal can be identified.

Let us look at recent example in EURUSD:

Above is the daily chart of EURUSD as it approached 1.3258. Daily Rapid RSI was showing an overbought reading but there was no bearish divergence. From this chart alone we probably couldn't work out whether there was a selling opportunity or not.

This second image is the 2-hour chart of EURUSD but here it can be seen that the peak at 1.3258 was accompanied by a bearish divergence in Rapid RSI. We are therefore on warning that a reversal can occur and that the daily overbought reading may well be correct.

Next we have to identify a selling level and in this case it is on the break of the price support line which has touched price four times before it finally breaks and this is where we can place our sell-stop. The money management stop should ideally be placed above the 1.3258 high but if this is too high and would cause a large loss then we can look at placing a stop above the rising trend line. However, do note that is a rising trend line and could mean that your stop needs to be raised to allow a possible retest of the line.

In this case the trade would have been very profitable with a decline down close to the daily pivot support which rests around 1.3050. A take profit order can be placed just above this to exit the position at a tidy profit.

Tuesday, August 24, 2010

Intersecting Lines of Interest

Any technical analysis tool is designed to identify the price level, with the greater probability of representing a future market turning point. Any trend line or indicator used on its own may only produce a 50% rate of accuracy.

However when multiple lines indicate a similar price level and trade theory, then our chances of being accurate may increase dramatically in our favor. For example, we can see based on the following (1-hour) chart, the GBPUSD recently broke down below a common trading range. During these consolidating ranges, traders may adopt a simple buy low, sell high approach. Most recently we can see resistance emerged in the form of a ‘double top’ pattern, which occurred very close to the longer term 50% Fibonacci retracement level. In addition, due to the fact that the overall trend appears to be to the downside, those trading with the trend, may choose to maintain at least a small position in the hopes of greater profits as this trading range turns once again into a trend.

Saturday, August 14, 2010

The Stochastic Kiss Pattern

A unique way to utilize the stochastic indicator

Here is a simple technique I devised some years ago and introduced to the institutional market. It takes one of the markets' favored indicators Stochastics and identifies a pattern that when used in conjunction with other analysis can provide great trades.

It is called the "Stochastics Kiss" simply because of the appearance of the fast stochastic line dipping towards the slow line (in a move higher) or blipping higher towards the slow line (in a move lower) and then reversing the next bar.

It looks like this:

The image shows a section of slow stochastics, the blue line being %Fast D and the green line %Slow D. Note that during the strong rise in %SlowD on the left how the %FastD pulls back and then rises again the very next bar. It is effectively showing that price has corrected lower within the range but failed in the decline and caused a reversal back higher.

Equally, on the right we have the opposite. During the strong decline in %SlowD the %FastD pulls back higher and then drops again the very next bar.

These can often provide good trades that can be held for one or two bars at least and occasionally longer.

When looking at this pattern the very best examples are those where the %SlowD maintains the same direction as at Point 1. The %Fast D line moves up towards the %SlowD line and then reverses lower and a sale can be made on close. Note that after two bars profit is taken on close.

Point 2 is not a valid example with the rally higher and reversal in %FastD occurring while %SlowD has no direction. At Point 3 the same thing happens as at Point 2 so should not be used.

However, at Point 4 we see a valid pattern. It is not as clean as the first example since as %FastD dips and reverses higher %SlowD does the same but recovers to be higher again and more importantly higher than two bars prior. Again, a two day trade reaps profit.

What is important with this type of strategy is that price action is also scrutinized. It is important that the price extreme on the single bar move in %FastD does not penetrate a previous swing high or low. Remember the definition of an uptrend is that both highs and lows are moving higher and vice versa in a downtrend.

This most certainly occurs at Point 1 with the sharp correction in price remaining below the previous swing high. Equally, at Point 4 the corrective dip in price remained above the previous swing low and thus the underlying directional move remained intact.

Here is a second example of where this pattern has worked well:

This is the daily chart of the Pound versus the U.S. Dollar where we have seen two good sell signals and one buy signal, all making good profit.

I should add a few instances where it would be wiser to be cautious and possibly not take the trades. There are basically two things to look for:

  • Where the Stochastic is either overbought or oversold. These could be considered but will require confirmation from price movement. However, quite frequently because of the extreme reading of the Stochastics there is a higher instance of the pattern breaking down.
  • Where the reversal bar that completes the kiss pattern has seen a strong reversal that takes out the extreme of the last two bars then there is a risk of a delay to follow-through. Again any positions taken should be well guarded by a close stop loss.

You may also find that using the support and resistance levels from Pro Commentary, available through Dealbook may also provide guidance towhen to use this pattern.

Wednesday, August 4, 2010

Using Pivot Levels

Utilizing pivot areas along with your analysis can strengthen support and resistance

Not too many books will discuss the use of pivot levels, mostly the topic being covered as being calculated mathematically through the use of daily highs and lows. However, the is an alternative way of looking at pivot levels which, albeit subjective, can provide excellent trading opportunities.

Many years ago the concept of using prior support and resistance levels as pivotal areas became clearer to me after a discussion with a trader who had scant interest in technical analysis. I had just gone through the usual daily analysis and provided my report to the traders. For a moment I chatted within one trader who declared that he agreed with one of my resistance levels.

Now being dedicated to technical analysis I was rather intrigued how a trader who didn't pay any real attention to technicals could agree with a resistance level so I asked him how he arrived at that level also. His reply opened up an explanation to me on why these techniques often provide good trading opportunities.

His response was that when he was trading the same currency several weeks before he kept using this level as support and made profits on several occasions until price finally dipped below that support. He concluded that it would provide the same effect on the way up again.

Effectively, what he was describing was traders' memories, these being determined by the emotions of having made or lost money. Thus pivot levels represent emotions, the fundamental basis of technical analysis.

So how will these look?

It is quiet clear that in this 4-hour chart of the Euro against the US Dollar that price has been moving in each direction in steps, stalling in the general area of the previous major support or resistance. For example, the Euro rallied from the bottom left of the chart to bounce from the same level as the prior two troughs. Very simply this represents the basic theory that support remains as support until broken and once broken will provide resistance (and vice versa.)

Following the breach of the two prior lows price rallied and sees a correction. We cannot determine from this chart whether this was at a previous support level. However, the rally continues quite sharply and then corrects lower.

It then retraces back to a previous resistance level following which it reverses lower once again, breaking the previous corrective low and stalls in the area of the first price peak in the rally. In the subsequent rally it initially bounces from the first trough on the way down.

It will be useful to have these levels match with overbought/oversold levels in momentum studies and hopefully, in shorter time-frame charts, to displays bullish or bearish divergences at these pivot levels. If this occurs it provides a stronger signal for a bounce.

At times it is possible to use pivot levels and pivot lines. The latter occur when price oscillates around a line that is not horizontal but more like a trend line only there is no trend:

This is the daily chart of the British Pound against the Japanese Yen. Note how the price point ringed in black occurred when testing both a pivot support area and a pivot line support. These can be particularly effective in cross markets when used with charts constructed by a line on close.

Thus, do take note of these pivot levels as when companied with Fibonacci retracements or projections they can provide you with excellent trading opportunities.

Saturday, July 24, 2010

Directional Channels

The FX-market will normally oscillate between range bound and trending conditions a few times throughout the year. We may see the market spend a relatively low or high amount of time in either market condition, depending on the fundamental picture and economic climate of each currency within the pair. However it is safe to say that the FX-market has the tendency to remain in a range bound condition the majority of the time due to a number of reasons including the extremely high amount of volume that passes through the market every trading day. With that said, although boring, these trading ranges can offer a number of clues as to the future possible move of the market. The following (daily) chart shows the EURUSD pass through a number of trading ranges or trading channels, broken up only by an occasional trend, which tends to occur and terminate quite quickly. Note how the subsequent breakout was forecasted by the direction of the preceding channel. In other words, each trading channel developed a bias either to the upside or downside, which eventually broke out to a new trend in that same direction. What is the lesson? We should make every attempt to trade in the same direction as the overall trend. By placing our trades in the same direction as the overall trend, we stand a good chance to participate in the subsequent breakout if it happens to occur while we hold a position open.

Wednesday, July 14, 2010

Simple Moving Averages: BELM SELESAI

I take a "toolbox" approach to analyzing and trading markets. The more technical and analytical tools I have in my trading toolbox at my disposal, the better my chances for success in trading. One of my favorite "secondary" trading tools is moving averages. First, let me give you an explanation of moving averages, and then I'll tell you how I use them.

Moving averages are one of the most commonly used technical tools. In a simple moving average, the mathematical median of the underlying price is calculated over an observation period. Prices (usually closing prices) over this period are added and then divided by the total number of time periods. Every day of the observation period is given the same weighting in simple moving averages. Some moving averages give greater weight to more recent prices in the observation period. These are called exponential or weighted moving averages. In this educational feature, I'll only discuss simple moving averages.

The length of time (the number of bars) calculated in a moving average is very important. Moving averages with shorter time periods normally fluctuate and are likely to give more trading signals. Slower moving averages use longer time periods and display a smoother moving average. The slower averages, however, may be too slow to enable you to establish a long or short position effectively.

Moving averages follow the trend while smoothing the price movement. The simple moving average is most commonly combined with other simple moving averages to indicate buy and sell signals. Some traders use three moving averages. Their lengths typically consist of short, intermediate, and long-term moving averages. A commonly used system in futures trading is 4-, 9-, and 18-period moving averages. Keep in mind a time interval may be ticks, minutes, days, weeks, or even months. Typically, moving averages are used in the shorter time periods, and not on the longer-term weekly and monthly bar charts.

The normal moving average "crossover" buy/sell signals are as follows: A buy signal is produced when the shorter-term average crosses from below to above the longer-term average. Conversely, a sell signal is issued when the shorter-term average crosses from above to below the longer-term average.

Another trading approach is to use closing prices with the moving averages. When the closing price is above the moving average, maintain a long position. If the closing price falls below the moving average, liquidate any long position and establish a short position.

Here is the important caveat about using moving averages when trading futures markets: They do not work well in choppy or non-trending markets. You can develop a severe case of whiplash using moving averages in choppy, sideways markets. Conversely, in trending markets, moving averages can work very well.

In futures markets, my favorite moving averages are the 9- and 18-day. I have also used the 4-, 9- and 18-day moving averages on occasion.

When looking at a daily bar chart, you can plot different moving averages (provided you have the proper charting software) and immediately see if they have worked well at providing buy and sell signals during the past few months of price history on the chart.

I said I like the 9-day and 18-day moving averages for futures markets. For individual stocks, I have used (and other successful veterans have told me they use) the 100-day moving average to determine if a stock is bullish or bearish. If the stock is above the 100-day moving average, it is bullish. If the stock is below the 100-day moving average, it is bearish. I also use the 100-day moving average to gauge the health of stock index futures markets.

One more bit of sage advice: A veteran market watcher told me the "commodity funds" (the big trading funds that many times seem to dominate futures market trading) follow the 40-day moving average very closely--especially in the grain futures. Thus, if you see a market that is getting ready to cross above or below the 40-day moving average, it just may be that the funds could become more active.

I said earlier that simple moving averages are a "secondary" tool in my trading toolbox. My primary (most important) tools are basic chart patterns, trend lines and fundamental analysis.