KDJ expert system strategy
Smooths the close’s position in its recent range into K and D; J = 3K − 2D.
Purpose and construction
Smooths the close’s position in its recent range into K and D; J = 3K − 2D.
KDJ expert system strategy is applied to the chart series using the local definition below. Each period counts one bar on the active chart. The same period therefore covers a different amount of time on daily and intraday charts.
How to read it
Compare K/D crossings with price direction. J can exceed the 0–100 range.
Strategy markers are formula conditions, not executed orders. Performance evaluation additionally requires explicit execution timing, transaction costs and position rules; markers alone do not establish returns.
Parameters
| Parameter | Default |
|---|---|
N | 9 |
M1 | 3 |
Parameter names match the variables in the calculation. After changing a lookback or smoothing period, recalculate on the same data to compare response speed. Defaults from another platform may not match this definition.
Actual application chart
This screenshot shows KDJ expert system strategy running on the application's TSLA daily chart. Price and indicator share the same market history, preserving the curves, bars and markers drawn by the application.

Compare K/D crossings with price direction. J can exceed the 0–100 range.
- Check the displayed indicator name and parameters against the version currently loaded.
- Align price and indicator by time, then compare direction, turning points and marker locations.
- After changing settings or timeframe, wait for calculation to finish before saving the same interval for comparison.
The screenshot records a historical chart display, not executed orders, returns or a win rate.
Local calculation
The local definition is shown below. Display labels can be translated; the case calculation uses original source identifiers. A shared indicator name does not guarantee identical calculations across platforms.
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M1,1);
J:=3*K-2*D;
ENTERLONG:CROSS(J,0);
EXITLONG:CROSS(100,J);Limitations
- Compare K/D crossings with price direction. J can exceed the 0–100 range.
- Timeframe, adjustments, warm-up length and data units affect results. Align these before comparing charts.
Questions
Why can KDJ expert system strategy differ across platforms?
Compare inputs, default periods, smoothing, offsets and data units before comparing the final value. This guide uses the local source definition rather than assuming that an external example has the same settings.
Does the example show a real trade?
No. Figures show the indicator running on historical market data in the application. They contain no executed orders and make no return or win-rate claim.
References
The calculation comes from the project’s indicator registry. Primary references below provide related conceptual reading. Figures are captured from the running application.