Skip to content
All library documents

KDJ Oscillator: Adding a Weighted J Line to the Stochastic

Article ProRealCode

Summary

The document explains KDJ as a three-line oscillator derived from the Stochastic: K, D, and J. It describes J as an extrapolation from the relationship between K and D, giving it greater sensitivity to the shorter-term K line and allowing it to move beyond the usual Stochastic range. The included implementation uses a nine-period high-low range, smooths the K and D values with two-thirds and one-third weights, and calculates J from those lines.

The material is an indicator description and translated implementation, not a tested trading strategy. It gives no entry or exit rules, market-specific guidance, or performance evidence, and notes that this version differs from the platform’s built-in indicator. Users should therefore treat its behavior as implementation-dependent and evaluate it in their own data and trading context.

Key ideas

  • KDJ extends the Stochastic oscillator with a third line called J.
  • The J line is calculated from the K and D lines and can move outside the normal Stochastic range.
  • The example smooths values using a nine-period high-low range and weighted updates.
  • The document supplies no trading rules or evidence of profitability.
  • The described implementation differs from the platform’s built-in version.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.