These are the common stochastics indicators with a few minor changes. THEY ARE FOR NINJATRADER 7 ONLY.
The main value of these is that they show: how to implement multi-color plotting in NT7; how to serialize colors for use as parameters; and how to use the dataseries objects exposed by GOMCD as input to other indicators.
The stochastic of price is the common, garden variety stochastic oscillator. I changed it to oscillate between -100 and +100 instead of between 0 and 100, and used the new PlotColors() method of NT7 to give different colors for rising and falling. Once the color changes, it stays changed.
The stochastic of CD is based on the CUMULATIVE DELTA OF VOLUME. It is not based on price AT ALL. For it to work, you need to have installed the GomCD indicator. If you are running a GomRecorder and have set up a GOMFOLDER, this plot will refresh historically, and will not disappear when you make changes to the chart. This is a good code sample for those who would want to use the GomCd to give inputs to other custom indicators.
For both of these, the colors of the rising and falling plots "K" are ColorRising and ColorFalling, the first two parameters all the way at the top of the list. Changing the color of Plot "K" will not do anything. However, that is where you can adjust the line weight and style of that plot.
COMPATIBILITY:
NinjaTrader 6.5: NO
NinjaTrader 7.0: YES
Category NinjaTrader 7 Indicators
|
|
|