Open Account

KDJ Indicator: How to Read Signals and Use Them in Trading

KDJ indicator

Imagine a situation: the price declines for several days and then begins to recover little by little. The first green candles appear on the chart. Buyers seem to be returning to the market, but it is still unclear whether they have enough strength for a reversal.

To assess strength, many use the KDJ indicator — a relatively simple tool for studying technical analysis. It helps monitor changes in short-term momentum, look for divergences and spot situations where price movement may be weakening.

The KDJ indicator helps assess the momentum of price movement, identify potential overbought and oversold zones and spot weakening in the current trend. Its distinctive feature is three lines instead of the usual two. The third line, J, reacts particularly strongly to changes in momentum and sometimes warns of changes before the others.

It is best to start studying KDJ with the standard settings of 9, 3, 3. First, it is useful to see how the lines behave in different parts of the chart: during a sustained trend, a correction and sideways movement.

When making a trading decision, it is worth combining KDJ readings with price chart analysis: support and resistance levels, local highs and lows, and the direction of the main trend.

What Is the KDJ Indicator

KDJ is a technical oscillator: it compares a candlestick's closing price with the high and low over a selected period. This shows where the close is within the recent range — closer to the upper or lower boundary.

The closer the closes are to the range highs, the higher the values; the closer to the lows, the lower they are. The indicator assesses momentum, not an asset's fundamental value.

KDJ is similar to Stochastic: both assess the close's position within the range. The difference is the additional J line.

Three KDJ lines: K, D and J

The indicator sits below the price chart. The three lines react to price at different speeds:

  • K — the fast line, first to react to changes in short-term momentum.

  • D — a smoothed line based on K. K and D crossovers are used to find signals.

  • J — a calculated line that amplifies the difference between K and D. It can go above 100 and below 0, but is not an independent signal.

If K is above D, J lies above K; if K is below D, J falls below both. It shows the extent of the divergence rather than providing independent confirmation.

KDJ chart with K, D and J lines showing crossovers and J extending above 100 and below 0

How KDJ is calculated

First, RSV is calculated — the position of the close within the range over the selected number of candles:

RSV = (Close − Lowest Low) / (Highest High − Lowest Low) × 100

Next, K and D are calculated, and J is derived from them. For the common 9, 3, 3 setting, the formulas are:

K = (2 × previous K + RSV) / 3

D = (2 × previous D + current K) / 3

J = 3 × K − 2 × D

Example: high — $110, low — $90, close — $104. RSV = 70. With previous K = 45 and D = 40, we get K = 53.3; D = 44.4; J = 71.1.

Smoothing and initial K and D values may differ across platforms. So even with 9, 3, 3, the lines sometimes diverge. For comparisons, use the same implementation or check the formula beforehand.

How to read KDJ signals

Overbought and oversold zones

Levels 20 and 80 are often used. Below 20 is the oversold zone, and above 80 is the overbought zone: the price closes closer to the lower or upper boundary of the recent range.

Oversold conditions do not guarantee a rise, and overbought conditions do not mean an imminent fall. In a strong trend, KDJ can remain in an extreme zone for a long time. Therefore, the zone alone does not provide an entry signal.

K and D crossover

A golden cross (Golden Cross) occurs when K crosses the D line from below. It may indicate stronger buying momentum; it looks most interesting near the lower zone and support.

A death cross (Death Cross) occurs when K crosses the D line from above. It may indicate weakening upward momentum, especially if it occurs in the upper zone near resistance.

Crossovers in the middle of the scale provide less context. In a ranging market, K and D may cross frequently without any noticeable price movement.

Bullish divergence chart showing price making a lower low while the K line forms a higher low

Illustration 1. Hypothetical example: K crosses above D below the 20 level. The J line is calculated from K and D and therefore moves more sharply.

The J line: what moving beyond 0–100 means

J above 100 means K is well ahead of D; below 0 means K is lagging. This shows a strong divergence but does not indicate when a reversal will occur.

J returning from an extreme zone may warn of weakening momentum. Before a trade, check K and D, price structure and nearby levels.

Divergence

Divergence is a mismatch between price and oscillator extremes. In bullish divergence, price makes a new low, while KDJ forms a higher low — sellers may be weakening. In bearish divergence, price makes a new high, while the oscillator makes a lower high.

KDJ chart showing the K line crossing above the D line below the 20 level, signaling a bullish crossover

Illustration 2. Hypothetical bullish divergence: price makes a lower low, while the K line makes a higher low. This is a warning, not a ready-made buy signal.

Divergence does not guarantee a reversal. Wait for confirmation: a break above a local high after bullish divergence or below a local low after bearish divergence.

How to Use the KDJ Indicator in Trading

It is best to start looking for an entry in the direction of the main trend after a correction. KDJ helps choose the timing, while the price chart helps determine the direction.

Scenario 1. Buying after a correction in an uptrend

Price forms higher highs and lows, then pulls back to support. KDJ falls below 20, after which K crosses above D. Short-term momentum may be reversing.

One crossover is not enough. Check whether price holds support and shows a bullish reaction. Additional confirmation is a break above the correction's local high. This is more practical than trying to call the bottom using an oscillator.

Candlestick chart shows an uptrend pullback holding support, a bullish KDJ crossover, and a break above the pullback high

Illustration 3. Schematic example of a buy: a pullback to support, a bullish K/D crossover and price confirmation. All values are hypothetical.

Suppose the entry is at $102.2, the stop-loss at $99.4 and the target at $107.8. The risk per unit of the instrument is $2.8, and the potential profit is $5.6. The ratio of potential profit to risk is 2:1.

With a $10,000 account and 0.5% risk, the allowable loss is $50. Position size: $50 / $2.8 = 17.85 units, if a $1 price move generates $1 in P&L per unit. Commissions, the spread and slippage reduce the allowable size.

Scenario 2. Selling after a correction in a downtrend

The price forms lower highs and lows, then retraces to resistance. KDJ rises above 80 and K crosses D from above to below. A bearish candle or a break below the local low strengthens the selling scenario.

Hypothetical example: entry — $245.8, stop — $251.2, target — $235. The risk is $5.4 per unit, and the potential profit is $10.8. The profit-to-risk ratio is 2:1. The stop is placed beyond the local high, where the original trade idea is invalidated.

Scenario 3. When it is better to skip a signal

The price breaks below support and continues to make new lows. KDJ is below 20, and K crosses above D—formally, this is a bullish signal. But the price has not yet returned above the broken level.

The crossover may only indicate a pause in the decline. Buying against a fresh breakout is risky: it is better to wait for a return above the level and a retest.

Basic KDJ strategy: entry and exit rules

This is a basic set of rules for testing, not a strategy with proven profitability. Start with H1 or H4, settings of 9, 3, 3 and levels of 20/80.

Buy (Long)

KDJ long-entry diagram showing an uptrend, pullback, bullish crossover, entry at 100, stop at 98 and target at 104
  1. Identify an uptrend from the price structure: highs and lows are rising. A 200-period moving average on a higher timeframe can also serve as a filter, but not as a standalone signal.

  2. Wait for a pullback to support, a previous breakout or another significant price area.

  3. Make sure K and D have dropped into the lower zone; wait for K to cross above D. It is better to assess the signal after the candle closes.

  4. Get confirmation on the chart: a bullish candle, price holding above a level or a breakout above the local high of the pullback.

  5. Calculate position size based on the distance to the stop. Place the stop below the local low; set the target in advance, for example at two times the initial risk.

Selling (Short)

KDJ short setup in a downtrend with K crossing below D, entry at 100, stop at 102 and target at 96
  1. Identify a downtrend: highs and lows are falling.

  2. Wait for a correction to resistance or the previous breakout area.

  3. Wait for K and D to enter the upper zone and for K to cross below D.

  4. Check for price confirmation: a bearish candle, a break below a local low or a failed retest of resistance.

  5. Place a stop above the local high and size the position based on the risk set in advance.

Do not close the trade automatically on every reverse crossover: in a strong trend, the oscillator often gives counter-signals. Choose your exit in advance — a fixed target, the nearest level or trailing based on swing highs and lows. Check TradingView before trading.

How to set up KDJ

The standard starting point is 9, 3, 3: the first parameter sets the range length, and the next two set the smoothing of K and D. Nine candles on H1 represent nine hours; on D1, nine trading days.

Parameter

Starting value

What it changes

N

9

Price range length for RSV

M1

3

Smoothing of the fast K line

M2

3

Smoothing of the D line

With N = 5, the indicator reacts faster, but there may be more crossovers and noise. With N = 14 or 21, the lines are smoother, but signals lag.

What we are comparing

Option A

Option B

What to look for

More sensitive

5, 3, 3

9, 3, 3

Early signals and the number of false crossovers

Smoother

9, 3, 3

14, 3, 3

Noise filtering and entry delay

Long horizon

14, 3, 3

21, 3, 3

Signal stability during large moves

There are no universal settings for cryptocurrencies, currencies and stocks. Start with 9, 3, 3 and compare with 14, 3, 3. Change the parameters based on test results, not on how the lines look.

20/80 or 30/70 Levels?

The 20/80 levels highlight more extreme values. 30/70 give early warnings but increase the number of signals. First test 20/80, then compare with 30/70 over the same historical period.

Level 50 shows which half of the range the price closes in more often, but is not a standalone signal.

How to test a strategy instead of choosing settings by eye

Do not choose parameters based on how nice the lines look. Check the result against fixed rules:

  1. Choose one instrument and one timeframe.

  2. Define the rules for the trend, entry, stop-loss and exit. Do not change them midway through the test.

  3. Check historical signals and record every qualifying trade.

  4. Repeat the test with 5, 3, 3 and 14, 3, 3, keeping all other conditions unchanged.

  5. Compare the results after accounting for commissions, the spread and slippage. Separately test another period of historical data that was not used to select the parameters.

It is useful to track the number of trades, the percentage of winning trades, average profit and loss, Profit Factor, maximum drawdown and expectancy.

KDJ has no universal percentage of profitable signals. Results depend on the market, timeframe, trade rules and costs. Test the strategy in rising, falling and sideways markets.

Typical mistakes when using KDJ

  • Buying on every reading below 20: in a strong decline, oversold conditions can persist for a long time.

  • Selling on every reading above 80: in a strong rally, overbought conditions can persist for a long time.

  • Entering before the candle closes: the crossover may still disappear.

  • Treating J as independent confirmation: it is calculated from K and D.

  • Ignoring the trend and levels: one crossover has a different meaning at support and after a breakout.

  • Changing settings after every failure: this makes it easy to overfit the strategy to historical data.

  • Failing to calculate position size and the acceptable loss before entry.

Disclaimer

This material is for informational purposes only and does not constitute investment advice. The KDJ indicator does not guarantee accurate trading signals or profits.

Trading financial instruments involves the risk of losing capital. Make decisions independently, taking your own risks and market conditions into account.