Did anyone develop or know how to develop StochasticRSI (%D and %K) it displays 2 lines (max value is 1, min value is 0)? need it in C++ or NinjaScript
StochasticRSI as defined in Ameritrade:
This oscillator measures the value of RSI relative to its highest high and lowest low over %K Length periods. StochasticRSI %D is a moving average of %K over %D Length bars. %K smoothing parameter specifies the length of moving average to smooth %K line. StochasticRSI ranges from 0 (lowest low) to 1 (highest high).
Fields:
• StocK, StocD
• RSI Length
• %K Length
• %D Length
• %K Smoothing
• Interval
Example:
StochasticRSI[StocK,14,14,3,1,5]
14-period StochasticRSI on 5-minute bars
I appreciate your help
Tom