• Print
  • Close

    Important legal information about the e-mail you will be sending. By using this service, you agree to input your real e-mail address and only send it to people you know. It is a violation of law in some jurisdictions to falsely identify yourself in an e-mail. All information you provide will be used by Fidelity solely for the purpose of sending the e-mail on your behalf.The subject line of the e-mail you send will be "Fidelity.com: "
    Close

    Your e-mail has been sent.
    Close

    Clicking a link will open a new window.
  • Small font sizeA
  • Larger text sizeA
  • Largest text sizeA

How to befriend the trend

Indicators and patterns can be useful trading tools—if you know how to use them.

  • By Jackie Ann Patterson,
  • Active Trader News
  • – 08/02/2012

Whether or not the trend is your friend can depend on how well you identify it. Get on the right side of the trend and you might do very well. Get it wrong and you could be in trouble. Indicators  are tools that can help you find the trend. There are a number of indicators, so one key question is: how do you know which one to use?

Scenarios testing

A problem traders face in determining which indicator to use is that trends are easy to see when they have already happened, but may be difficult to predict for the future. Using the backtesting capability of Fidelity Wealth-Lab Pro,® we can measure what would have happened if we had bought a stock after each of the trend-following indicators identified a trend whose direction is up. Comparing the results is a practical way to see if a trend lasts after the indicator spots it.

While backtesting can provide historical comparisons, those comparisons are not guarantees of future results. Still, these results can prove instructive if you are unsure which indicators you might like to use in the future.

A very important point to note is that indicators do not usually comprise comprehensive trading strategies; instead they may be used as building blocks to create a strategy of your own. The trend-following indicator may be combined with other techniques to more closely pinpoint trade setups, and fundamental analysis may also help to identify particular stocks to trade as well as their relative value.

The indicators

A trend is just a series of price points moving in a particular direction over time. In an uptrend, it can be as short as a short-term price increase that lasts a few trading sessions, or it could run much longer, lasting for years. Indicators may try to measure the rate of increase, the volume associated with a price increase, prices compared to historic rolling averages, and more.

Here are the indicators we studied, a brief description of what they are, and the settings being tested.


Signal Description Setting tested
Average Directional Movement Index (ADX) Uses the DX measurement, which looks at smoothed directional lines to measure the strength of price movement. Buy with ADX above 20 and rising when the DI+ crossed above the DI- to signal uptrend.

Sell with ADX above 20 and falling when the DI+ crossed below the DI- to indicate a downtrend.
Commodity Channel Index (CCI) Tries to identify cyclical turns comparing the mean price of a security and the average of means over a period. Buy when CCI broke 100.

Sell when CCI fell back below 100.
Channel Break-Outs (NH/NL) Creates a buy signal when the price rises above its 100-day high.
Buy when close exceeded the high of the past 100 days.

Sell when price closed at a new 100-day low.
Moving Averages (MA) Compares price to a moving average of price—which is average price over a set time period.
3 variations tested:

Buy price moving above average.

Sell price falling below average.

Buy when faster moving average crosses up through slower moving average.

Sell when faster moving average crosses down through slower moving average.

Buy moving average trending up.

Sell moving average trending down.
Moving Average Convergence/ Divergence (MACD) Converts the moving averages of short and long periods of time into a single line indicating if the lines are approaching one another or spreading.

The line itself is then averaged, and compared to the current position. Buy signals may be created when the signal line crosses zero, when the histogram and the signal line diverge, or when the price and the MACD signal line diverge.
Buy when MACD signal line crosses average.

Sell when MACD line crosses moving downwards.
MACD Histogram (MACDH)
Difference between the MACD line and its signal line.
Buy when MACDH is below zero and increasing.

Sell when MACDH is above zero and decreasing.
Momentum (Mo) Measures the difference between the current price and the price a specified period earlier as an absolute price difference. Positive values show an uptrend, negative values show a downtrend. Buy when 100-day momentum is positive.

Sell when 100-day momentum is negative.
Rate of Change (RoC) Measures the percentage difference in price over the specified period. Like momentum, positive values show an uptrend, negative values show a downtrend. Buy when 100-day momentum is positive.

Sell when 100-day momentum is negative.
Linear Regression (LinReg) Looks at the prices for the number of specified periods and finds a straight line which best fits all the prices. Use the slope to determine if the trend is up (positive value) or down (negative value), as well as the general strength of the trend. Buy when slope is positive.

Sell when slope is negative.
Chaikin Money Flow (CMF) Measured the volume weighted average of accumulation/distribution over a specified period. The principle behind the Chaikin Money Flow, is the nearer the close is to the high, the more accumulation has taken place. Conversely the nearer the close is to the low, the more distribution has taken place. If the price action consistently closes above the bar's midpoint on increasing volume then the Chaikin Money Flow will be positive. The indicator has an oversold zone, and a buy signal is generated when price action develops a lower low into oversold zones and the CMF diverges with a higher low and begins to rise. Bought when CMF crossed above zero.

Sold when CMF dropped below zero.

How we tested the indicators

Trade size: In the simulated scenario, each trade was executed using $10,000 (though the results are scalable for smaller amounts of capital).

Stocks: Current S&P; 500® index components (note this suffers from survivorship as extreme losers are eliminated from the index).

Stops: 10% below the buy price.

The results:

Out of more than a dozen tests, only four indicators returned more than a buy-and-hold strategy (see chart below). While the results aren’t shown in the table below, we tested these strategies over 200 and 50 days, but 100 days using these indicators proved to be the best performer. 100 days may line up with the cycle of the market during this time period (a six-month cycle) where short-term blips look to have been weeded out and we were able to focus on longer-term trends.

Indicator RoC100 MA100 Mo100 Linear Reg 100 Buy & Hold
Net Profit $2,268,851.13 $2,268,851.13 $2,257,438.90 $2,222,044.80 $1,893,263.92
Number of Trades 12,625 12,625 12,625 4,743 500
Average Profit % 1.80% 1.80% 1.79% 4.69% 37.64%
Average Bars Held 27.62 27.62 27.62 71.54 1,244.30
Win Rate 37.12% 37.12% 37.12% 39.36% 66.00%
Gross Profit $5,117,070.10 $5,117,070.10 $5,105,657.86 $4,564,949.23 $2,466,593.58
Gross Loss ($2,848,218.96) ($2,848,218.96) ($2,848,218.96) ($2,342,904.43) ($573,329.66)
Maximum Drawdown ($1,045,641.90) ($1,045,641.90) ($1,045,641.90) ($1,355,718.90) ($3,484,399.20)
Results are for illustration only. All results in this article are based on testing all the stocks in the S&P; 500 Index as of 5/24/11 over a five-year period ending on that date. The results do not reflect commissions, fees, or taxes, which could reduce the returns. The results are according to Wealth-Lab Pro.(R) For definitions of these and other investing terms, please visit the Fidelity glossary.

Little distinguishes the winning indicators from each other. In technical terms, the Linear Regression had a slight edge in win rate while the MA100, RoC100 and Mo100 topped the net profits. It appears that the deciding factor between them is a matter of preference.

In general, the more complex indicators did not perform as well as simpler rate-of-change indicators. See table below.

Indicator Net Profit Number
of Trades
Average
Profit %
Average
Bars Held
Win Rate Gross
Profit
Gross
Loss
Maximum
Drawdown
Buy & Hold $1,893,263.92 500 37.64% 1,244.30 66.00% $2,466,593.58 ($573,329.66) ($3,484,399.20)
NH100 $1,738,520.56 2,442 7.18% 121.02 40.34% $3,057,600.55 ($1,319,080.00) ($864,400.98)
200MA $1,589,023.74 9,030 1.77% 33.75 24.05% $3,775,292.72 ($2,186,268.98) ($1,283,328.23)
MAXO50,100 $1,080,292.22 1,472 7.36% 111.48 38.11% $1,890,708.51 ($810,416.30) ($578,821.14)
MACD12,26,9 $898,452.10 9,855 0.90% 23.5 49.58% $4,875,757.93 ($3,977,305.83) ($1,593,131.45)
ADX14 $892,896.34 2,311 3.88% 86.01 34.53% $2,086,820.88 ($1,193,924.54) ($844,486.69)
CMF21 $519,174.78 29,623 0.18% 12.54 39.06% $7,114,681.11 ($6,595,506.33) ($2,158,603.37)
CCI20 ($491,465.89) 35,328 -0.14% 5.2 38.28% $4,439,496.60 ($4,930,962.49) ($1,214,623.61)
Results are for illustration only. All results in this article are based on testing all the stocks in the S&P500; Index as of 5/24/11 over a five-year period ending on that date. The results do not reflect commissions, fees, or taxes, which could reduce the returns. The results are according to Wealth-Lab Pro.(R) For definitions of these and other investing terms, please visit the Fidelity glossary.

For all indicators tested, the number of trades goes up dramatically versus Buy and Hold, and not only because of the trend changes (note the impact that trading costs would have on a more active strategy, compared with the buy and hold strategy). The trades got stopped out and re-entered almost immediately when the downdraft was not enough to upset the prevailing trend.

A key advantage to each of the indicators was spending a small fraction of the time in the trade, giving the potential to find other ways to profit when the capital is not in use.

The Average Bars in Trade was measured in days for all indicators. Even the winning trades, on average, did not spend more than a year in trade. The losing trades, being mostly stop losses, often exited in less than a month, on average.

The indicator win rates ranged from 24% to 48%, with the majority between 30% and 40%. Compare that to 66% for Buy and Hold. The MACD Lines Crossing turned in the highest indicator win rate at 49%, and that's significant because MACD's average profit per trade was less than 1%.

All trend-following indicators tested appeared to reduce risk by limiting drawdowns (a maximum loss less) considerably. The Moving Average Crossover had the least drawdown in this test set.

Investing implications

Many traders prefer to use these trend-followers in combination with other strategies. However, based on the results of this simulation, when you want to get aligned with the market trend, one helpful method might be to look at the current price relative to six months (100 trading days) ago. Those stocks that are up over the six-month period may have created an up-trend.

Next steps

Jackie Ann Patterson is the editor of BackTesting Report, which offers in-depth research on trading strategies. She is also a frequent speaker, appearing at the Traders Expo around the country. Jackie is an active investor herself and leverages her computer engineering background to develop and test strategies for the U.S. stock market.
Strategy Testing and Backtesting features available on Fidelity.com or in WealthLabPro®, and any resulting trade signals generated by the strategies, are provided for educational purposes and as examples only. They should not be used or relied upon to make decisions about your individual situation. You may modify the backtesting parameters as you see fit. Fidelity is not adopting, making a recommendation for or endorsing any trading or investment strategy or particular security. The Backtesting feature provides a hypothetical calculation of how a security or portfolio of securities would have performed over a historical time period according to the criteria in the example trading strategy. Only securities that were in existence during the historical time period and that have historical pricing data are available for use in the Backtesting feature. The feature has only a limited ability to calculate hypothetical trading commissions, and it does not account for any other fees or for tax consequences that could result from a trading strategy. You should not assume that Backtesting of a trading strategy will provide any indication of how your portfolio of securities, or a new portfolio of securities, might perform over time. You should choose your own trading strategies based on your particular objectives and risk tolerances. Be sure to review your decisions periodically to make sure they are still consistent with your goals.

Past performance is no guarantee of future results.
Views and opinions expressed are those of the individuals noted above and may not reflect the opinions of Fidelity Investments. These comments should not be viewed as a recommendation for or against any particular security or trading strategy. Views and opinions are subject to change at any time based on market and other conditions.
S&P; 500® Index is a market capitalization–weighted index of 500 common stocks chosen for market size, liquidity, and industry group representation to represent U.S. equity performance.
Fidelity Brokerage Services LLC, Member NYSE, SIPC, 900 Salem Street, Smithfield, RI 02917
586417.3.0