Available translations

Stochastic Divergence

foundations.png
Summary: The Stochastic Oscillator - this indicator analyses highs and lows of a 14 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.
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 bearish divergence(leftmost, red), and 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 ’Klinger Oscillator 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 ’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
StochDiv stochDiv 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.stochDiv.status == "bullish"
 chart.at15min.stochDiv.strength == "strong"
 chart.at15min.stochDiv.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
Klinger Oscillator Divergence
Next
Ultimate Oscillator