Available translations

RSI Divergence

foundations.png
Summary: The RSI Divergence - this indicator analyses highs and lows of a 14 period RSI indicator and compares it to the price action and produces any divergence data found.
RSI Divergence on the Charts
According to investopedia: Momentum indicators are commonly used to smooth out the price action and give a clearer picture. They allow the trader to compare the indicator swings to price swings, rather than having to compare price to price. Momentum is a study of the strength of the price action, it simply checks whether the price and momentum agree or disagree.
Disagreement between the indicator and price is called divergence, and it can have significant implications for trade management. The amount of agreement/disagreement is relative, so there can be several different patterns that develop in the relationship between price and the indicator.
The indicator shows four types of divergences, as well as an approximate strength prediction and percent value:
  • Bullish (Solid Green line): the momentum indicator makes a higher low, while the price action makes a lower low.
  • Bearish (Solid Red line): the momentum indicator makes a lower high, while the price action makes a higher high.
  • Hidden Bullish Continuation(Dashed Green line): the momentum indicator makes a lower high, while the price action makes a higher low.
  • Hidden Bearish Continuation(Dashed Red line): the momentum indicator makes a higher high, while the price action makes a lower high.
Above: a bearish (red) with medium strength with an 11.25% drop, and a bullish (green) divergence.
Above: a hidden bullish (dashed green) and a bullish (green) divergence with strong strength and 70% increase.
The length of the divergence finder, the pivot length, as well as the threshold for strong and weak divergences can be changed by locating and opening the Javascript Code under Data Building Procedure -> Procedure Loop under ’RSI Divergence’ Procedure Loop.
Keep in mind that the longer the pivot length, the greater the accuracy but the longer the lag for confirming the pivot peak/low.
The upper and lower cutoff for divergence detection can be changed by locating and opening the Javascript Code under Data Building Procedure -> Procedure Initialization under ’RSI Divergence’ Procedure Initialization.
The length of the RSI can be changed by locating and opening the Javascript Code under Data Building Procedure -> Procedure Loop under ’RSI14’ Procedure Loop.
Products & Properties
The following properties are available to access:
Product Name Product Variable Properties
RsiDiv rsiDiv status, strength, divPerc
  • status: returns a string with the following possible values: bullish, bearish, bull continuation, bear continuation
  • strength: returns a string with the following possible values: weak, medium, strong
  • divPerc: returns a number that corresponds to the percent change between peaks or lows of an identified divergence
Examples:
 chart.at01hs.rsiDiv.status == "bullish"
 chart.at15min.rsiDiv.strength == "strong"
 chart.at15min.rsiDiv.divPerc > 20
To increase confirmation confidence, find a suitable RSI value to enter the trade after the divergence is found, for example, RSI > 50 after a bullish detection.
Maintainer:
Previous
Divergences by @quantum8
Next
Commodity Channel Index Indicator - CCI