
![]() |
[ Home | Technical Trading Systems | Trading Articles | Misc Articles | FX Brokers | Disclaimer | Links ] |
|---|
Forex Trend Analysis – The Best Trend FilterFinding the best trend filter for Forex trading,The saying "the trend is your friend" is probably the most well known and important piece of advice when it comes to trading markets that trend well like the large FX pairs, but what is the best method of determining the direction of the long-term underlying trend? After all, the trend is only your friend "until it bends" as they say; so it is important to use the most reliable trend detection indicator/filter there is. This is not the first article on finding the best method for determining the direction of the long-term underlying trend that I have posted on this website. Other articles on the importance of the trend, how to best make use of it and how to decide on its direction that I have written include –
I will test three types of long-term trend filters, simple moving averages, comparing current price to past price, and most recent breakout filters. I will test these three trend filters with four sets of experiments, the experiments are as follows – Experiment #1: Trading with no trend filter,I will go long when the 3-day simple moving average crosses above the 5-day simple moving average and the closing price is above the 3-day SMA. Long trades will be left open until the 3-day SMA closes below the 5-day SMA and the price closes below the 3-day SMA. Likewise, I will go short when the 3-day simple moving average crosses below the 5-day simple moving average and the closing price is below the 3-day SMA. Short trades will be left open until the 3-day SMA closes above the 5-day SMA and the closing price is above 3-day SMA. This system is always in the market as when long trades are closed out they are immediately replaced by short trades and vice verse. Experiment #2: Trading with a simple moving average trend filter,I will modify the system used in experiment #1 by adding a much longer simple moving average which is to be used as a trend filter. Long trades will only be taken when the closing price is also above the long-term simple moving average and short trades will only be taken when the closing price is also below the long-term simple moving average. I will test three different lengths of long-term moving averages, a 50-day SMA, a 100-day SMA and a 200-day SMA. Unlike the system in experiment #1 this system will not always be in the market. Experiment #3: Trading with a 'lookback' past price trend filter,I will modify the system used in experiment #1 by adding a 'lookback' which is to be used as a trend filter. A lookback trend filter simply means that we will compare the most recent closing price to the closing price x-number of days ago. Long trades will only be taken when the closing price is also higher than the closing price x-number of days ago and short trades will only be taken when the closing price is also lower than the closing price x-number of days ago. I will test three different lengths of time for the lookback filters, 30-days, 60-days and 120-days. Unlike the system in experiment #1 and like the system in experiment #2 this system will not always be in the market. Experiment #4: Trading with a 'breakout' trend filter,I will modify the system used in experiment #1 by adding a 'breakout' trend filter. A breakout trend filter simply means that we will look at when the price last made a new significant high or low closing price, i.e. when the price last closed higher than it has ever closed in the previous x-number of days and when it last closed lower than it has ever closed in the previous x-number of days. If the price made a new closing price high more recently than it made a new closing price low then we will only take long trades; and likewise, if the price made a new closing price low more recently than it made a new closing price high then we will only take short trades. I will test three different lengths of time for the breakout filters, 30-days, 60-days and 120-days. Unlike the system in experiment #1 and like the systems in experiments #2 and #3 this system will not always be in the market. The Results,I will test how this system would have performed over the last decade from the beginning of the year 2002 to the end of 2011. The results are as follows – Experiment #1: (Trading with no trend filter results),
Experiment #2: (Trading with a simple moving average results),
Experiment #3: (Trading with a 'lookback' past price trend filter results),
Experiment #4: (Trading with a 'breakout' trend filter results),
The Results: My conclusions,I have no idea what conclusions to draw from these results other than to say that the moving average trend filter proving to be a smoother, but usually less effective, filter than the lookback filter is consistent with other tests that I have done with these filters for the EUR/USD currency pair. Past price is usually more effective as a trend direction indicator than average past price, but moving average prices tend to avoid the extremes of good and bad results that you get with looking back at a price x number of days in the past.However when I first saw the results produced by the breakout filters I was stunned. The breakout filter actually made the 3-day/5-day moving average crossover system worse. Nevertheless, breakout filters have proven to be very effective on other types of markets, most notably stock market indices and commodities. After these experiments I tested the system with a 12-day breakout filter which performed slightly better and did produce a positive expectancy. Other tests on the EUR/USD currency pair and other fundamentals driven markets that tend to trend well suggest that it is better to enter as soon as a breakout takes place rather than waiting for a price retracement (although this is not the case with markets that don't tend to trend so well such as commodities and stock market indices). It maybe therefore be the case that the multiple entry conditions are stopping the trading system from taking advantage of a breakout as soon as it occurs, but I'm really not sure. If any of my readers have any suggestions or comments to make about this (or anything else for that matter) I'd love to hear from them. |
![]() ![]() ![]() ![]() ![]() ![]() |