A reader asked about trading divergence so I thought I would look into it.
Searching the web I found many articles that claim divergence trading is an effective way to trade stocks. However, there is very little empirical evidence provided.
In this article we test several different divergence strategies and we compare our results to a benchmark to see if there is any edge available.
Our test universe for this analysis will be all S&P 500 stocks which are over $2 and with an average turnover over $250,000. This data is provided by Norgate and includes delisted companies.
The average 3-day, 5-day and 10-day returns for all S&P 500 stocks between 1/2000 – 1/2018 are shown below:
So the average 3-day return for a short signal on S&P 500 stocks is -0.11% and the average 10-day return for a long trade is 0.39%.
Now we know what the average daily returns are for these stocks we can run our divergence strategies and compare our results to these benchmark numbers.
#1. RSI Divergence Strategy
The most common method used to trade divergence is to use the RSI indicator.
When price makes a new low but RSI doesn’t, it signals divergence in the price trend so traders take that as a bullish signal.
Similarly, when price makes a new high but RSI doesn’t, it’s considered bearish.
In the next chart you can see that GE made a new 10-day low in September 2017 but RSI was moving higher. This signal preceded a decent rally:
Using Amibroker software we can test this signal and compare our results to the benchmark figures we obtained earlier.
The following table shows the results from going long or short after an RSI divergence signal:
(Longs are taken when price hits a new 10-day low but RSI(14) doesn’t. Shorts are taken when price hits a new 10-day high but RSI(14) doesn’t.)
You can see from the table above that our best result came from going long an RSI divergence and holding for 10-days.
Going long when price hits a new 10-day low but RSI(14) doesn’t produced an average profit per trade of 0.97% and a win rate of 56.38%. This was much better than the benchmark 10-day return of 0.39%.
Looking at the short divergence signals you can see that they were all unprofitable although they all lost less than the benchmark returns.
#2. Stochastics Divergence Strategy
A second way to trade divergence is using the Stochastics indicator.
Stochastics is another momentum oscillator that measures the strength of the trend by comparing the position of the close of each candle to the high and low of each candle.
In this test, we will use Stochastics %K and take longs when price hits a new 10-day low but Stochastics %K doesn’t make a new low.
We will take shorts when price hits a new 10-day high but Stochastics %K doesn’t make a new high. The following table shows our simulation results:
As you can see from the table above, our best result came from a 10-day holding period where we recorded an average profit of 0.57% and a win rate of 55%.
This was better than the benchmark return of 0.39% but it wasn’t as good as the result for RSI.
Once again, the short signals were all unprofitable.
#3. Rate of Change Divergence Strategy
A third way to trade divergence is with the Rate of Change indicator (ROC).
ROC is a pure momentum oscillator that measures the percentage change in price from one period to another.
In this analysis, we will take longs when price hits a new 10-day low but ROC(10) doesn’t make a new low.
We will take shorts when price hits a new 10-day high but ROC(10) doesn’t make a new high:
Once again, our best result came from going long with a 10-day holding period where we recorded an average profit per trade of 0.69%. This was better than the benchmark return of 0.39%.
Once again, all our losing signals were unprofitable but they were all better than the benchmark result. This indicates there may be some very weak signal in the pattern.
Is There A Signal In The Noise?
The results from these tests on divergence are disappointing, especially for short trades and for holding periods of three and five days.
Once transactions costs are included you can expect that these results will decline further.
The fact that profits increase as trade duration increases suggests that a good portion of the profit comes from the underlying trend (i.e. the upward drift of the market) and not the signal itself.
The best result we found was RSI divergence with a 10-day holding period which produced an average return of 0.97% per trade.
However, none of the strategies tested show a significant edge and this supports other analysis I have done in the past on divergence.
There may be some signal coming from the RSI divergence, however, it is weak and unlikely to be a worthwhile strategy on its own.
It could be worth exploring further since it is possible to improve an overall strategy by combining weak signals with other stronger signals. (The sum can be stronger than the parts).
However, there are likely more profitable signals that we can look at since these divergence signals are not very strong on their own.
Thank You For Reading
Joe Marwood is an independent trader and the founder of Decoding Markets. He worked as a professional futures trader and has a passion for investing and building mechanical trading strategies. If you are interested in more quantitative trading strategies, investing ideas and tutorials make sure to check out our program Marwood Research.
This post expresses the opinions of the writer and is for information, entertainment purposes only. Joe Marwood is not a registered financial advisor or certified analyst. The reader agrees to assume all risk resulting from the application of any of the information provided. Past performance is not a reliable indicator of future returns and financial trading is full of risk. Please read the Full disclaimer.