I am trying to see whether if I can recreate this simple stochastic s formula in Ninjatrader. Here is the formula:
Stochastics measures the velocity of a security's price movement to identify overbought and oversold conditions. The indicator measures current price relative to highs and lows over a time period. In an up-trend, markets tend to close near the high and while in a down-trend they to close nearer to the lows. This indicator is calculated with the following formula:
%K = 100*Closing Range/Total Range
where:
Closing Range = Close - Range Minimum
Total Range = Range Maximum - Range Minimum
The extent of the Range is determined by the %K period parameter.
%D = N-period moving average of %K where N is the %D period parameter.
%K with %D is sometimes referred to as the Fast Stochastics. %DS and %DSS, sometimes referred to as the Slow Stochastics, have additional smoothing as determined by their respective period parameters. Stochastics can be used to recognize potential turning points to help make entry/exit decisions.
What I would need is an input boxes for:
%K
%D
%DS
%DSS
%DS/%DSS
How can I go about it? Does the current NT interface allow me to plot this indicator?
Thanks
Comment