Indicators

KDJ Indicator Explained

How the KDJ adds a J-line to the stochastic that overshoots for early warnings, and how to automate KDJ in Setup.Cash.

By Setup.Cash TeamLast updated 2026-07-032 min read204 words

Featured image placeholder

/og/setup-cash-og.svg

KDJ is the stochastic oscillator as refined in East Asian markets, with a third line: J = 3K − 2D. The J-line amplifies the K/D spread and freely overshoots past 0 and 100 — an early-warning antenna the standard stochastic lacks.

How It Works

  • K and D are the familiar smoothed stochastic lines.
  • J = 3K − 2D projects the current K/D divergence forward.
  • J beyond 100 or below 0 marks unusually stretched short-term momentum.

How to Trade It

Use J-line extremes as the trigger and K/D as confirmation: J below 0 with a K/D golden cross is the classic KDJ buy. In trends, the J-line's early rollovers give exit warnings a couple of bars before the K/D cross confirms.

Building It in Setup.Cash

Add KDJ in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. See the Stochastic RSI for a different acceleration of the same engine. For the full category overview, see the advanced momentum library guide.

Momentum signals are timing tools — combine them with a trend or regime filter and backtest the exact rules before going live.

Not financial advice. Trading involves risk. Use backtesting and paper trading before risking real capital.

Related Posts

View all

Start here

Build your trading bot workflow with structure

Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.