Available translations

CCI Stochastic Divergence

foundations.png
Summary: The CCI Stochastic Oscillator - this indicator is based on the Commodity Channel Index (CCI) instead of RSI to produce its output. It analyses highs and lows of a 28 period Stochastic Oscillator indicator with smoothing values K and D set to 3. The'slow line', D is then compared to the price action and produces any divergence data found.
CCI Stochastic Oscillator 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 hidden continuation (dotted green), a bearish divergence (red), a hidden bearish (dotted red) and two two bullish divergences (green).
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 ’CCI Stoch Divergence’ Procedure Loop.
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 ’CCI Stochastic Divergence’ Procedure Initialization.
The length of the Stochastic Oscillator can be changed by locating and opening the Javascript Code under Data Building Procedure -> Procedure Loop under ’Stochastic’ Procedure Loop.
Products & Properties
The following properties are available to access:
Product Name Product Variable Properties
CciStoch CciStoch cci, value
cciStochDiv cciStochDiv 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.cciStochDiv.status == "bullish"
 chart.at15min.cciStochDiv.strength == "strong"
 chart.at15min.cciStochDiv.divPerc > 20
To increase confirmation confidence, find a suitable Stochastic Oscillator value to enter the trade after the divergence is found, for example, stochastic > 50 after a bullish detection.
Maintainer:
Previous
Ultimate Oscillator
Next
Know Sure Thing Oscillator