The Strategic Trader
Detailed Strategy Evaluation

RSI Part 6 – Bullish Hidden Divergence

A common technique for trading oscillators such as RSI is to use divergence. There are two types of divergence, regular and hidden. Regular divergence is commonly used to signal trend changes, and hidden divergence is used to signal trend continuation.

Bullish Regular Divergence
Price: Lower Low
RSI: Higher Low

Bearish Regular Divergence
Price: Higher High
RSI: Lower High

Bullish Hidden Divergence
Price: Higher Low
RSI: Lower Low

Bearish Hidden Divergence
Price: Lower High
RSI: Higher High

In this article we will be testing Bullish Hidden Divergence. This method is commonly used when a stock is in an uptrend and pulls back to test support. To find divergence we need to look at the lows of both RSI and price. Since RSI moves smoother than price, I used it as a way of finding lows. Once a low has been identified in RSI, I start looking for another potential low. If one is found I compare the price of the stock at the time of the first RSI low to the value of the stock now. I then compare the first RSI low with the new potential low. If RSI has made a lower low and price has made  a higher low I continue. Next, I check to see how many bars have passed since the first RSI low. This is to help ensure that enough distance has been created between the two valleys.

I optimized the strategy on 3 parameters:

1. RSI Period
2. Number of bars to look back when calculating a low
3. Number of bars to pass between lows

Initial (5 bar) results were decent. Most optimized pairs performed very well. However, only one combination was able to exceed our target value on both percent and profit. The strategy used a 9 bar RSI, 3 bar look-back, and required at least 9 bars between low points.

The (3 bar) results also did well. The same combination that exceeded our targets for 5 bars also exceeded for 3 bars. Here it the PL screenshot.

Further Enhancements:
Commonly Bullish Hidden Divergence is used to continue an uptrend. Therefore, I tried to only take trades when the stock was in a confirmed uptrend such as above a moving average etc. This method did not result in any performance gain. As we explore more indicators and determine which are ideal for identifying trend we can revisit this strategy.

Source Code:

Download Source

Related Posts:


One Response to RSI Part 6 – Bullish Hidden Divergence

  • kiss says:

    Nice. Thanks for sharing. I never manage to do a profitable divergence strategy. Good job. Would be nice to know more about instrument, timeframe…
    Thanks again.

Leave a Reply


Designed by Get Paid Online and coded by Australian Survey Sites and Cashcrate.