joshuaulrich / TTR

Technical analysis and other functions to construct technical trading rules with R
GNU General Public License v2.0
326 stars 102 forks source link

KDJ indicator in TTR #48

Closed Shicheng-Guo closed 6 years ago

Shicheng-Guo commented 6 years ago

Relationship between Stochastic Oscillator and KDJ index Stochastic Oscillator / Stochastic Momentum Index

Dear Joshua, It is quite interesting there is no KDJ indicator in TTR. Is there any possibility to add this KDJ lines to our new TTR version.

https://docs.anychart.com/Stock_Charts/Technical_Indicators/KDJ

Thanks.

joshuaulrich commented 6 years ago

I already explained why there is no KDJ indicator in TTR in the issue you opened in the quantmod repo:

...the only difference between the "KDJ" indicator and the stochastic oscillator is the addition of "the J line", which is described as the difference between %D and %K. This is something you can easily calculate using the output from the stoch() function. It's not clear to me that it warrants a completely new function.

Simply opening another issue, without addressing any of my comments, will not change my mind... though it is a little annoying.