K line is :
K = ((Current Close – Lowest Low) / (Highest high – Lowest low))* 100
D is simple moving average of the K line. Usually D is 3 day simple moving average of K line but it depends on what trader wants to choose. We have used exponential average.
D = N day simple moving average of K line
‘J’ is the divergence of ‘D’ value from the ‘K’ value.
J = (3*D) – (2*K)
An example of a strategy rules:
Buy – When ‘J’ line crosses above the 50 mark
Sell – When the ‘J’ line crosses below the 50 mark
Averages indicator can be found here.
viewtopic.php?f=17&t=2430&hilit=averages
Indicator-Based strategy
https://fxcodebase.com/code/viewtopic.php?f=31&t=71639