Skip to content
All library documents

KDJ Long Entries and Momentum-Based Exit Rules

Article TradingView scripts

Summary

This long-only strategy derives the stochastic KDJ oscillator from the close’s position within a recent high-low range. Smoothed values form the K and D lines, while the J line amplifies their difference. The strategy opens a long position when J crosses above a configurable entry threshold. It closes when J crosses below a configurable upper threshold, or when J crosses under K while J remains above the midpoint, which the description presents as a possible loss of momentum.

The script plots all three lines and marks entry and exit bars. Its source sets example order assumptions for commission, slippage, sizing, and order processing, but the document reports no backtest results, markets, or timeframes that establish an edge. It has no short entries, stop-loss, or separate risk-management rule; outcomes will depend strongly on threshold choices, instrument, and bar interval. The accompanying claims about optimized signals are not supported by performance evidence in the document.

Key ideas

  • The strategy computes KDJ from the close’s location within a rolling high-low range.
  • A long entry occurs when the J line crosses above the configurable buy threshold.
  • The position exits on a J-line threshold cross or a J-under-K cross while J is above the midpoint.
  • The supplied configuration includes commission, slippage, and order-processing assumptions.
  • No empirical results are given, and the rules do not define a stop-loss or short position.

Tags

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