Gumphrie recently posted a Zero Lag Double Stochastic on the Ninjatrader forums. I optimized the code and modified it to use an external call to my super fast Double Stochastics Optimized instead of the inefficient "stock" version.
You will note that this Zero Lag Double Stochastic is much more responsive than the normal Double Stochastic, and that because of the code optimization, it loads and refreshes practically instantaneously.
This indicator offers the user a trade-off between recalculating indicator values at every tick versus calculating them at bar-close. You control the number of times the indicator values are calculated in a bar via the Sampling Frequency Parameter. This is useful for indicators which perform a lot of calculations but do not require the value to be updated at every tick, especially when used for larger time-frame bars.
To create a sampled indicator, derive your custom indicator from the AviatSampledIndicator class. Replace the standard NT virtual functions with their corresponding Aviat versions (e.g. OnBarUpdate => AviateOnBarUpdate). The download contains the base indicator and an illustrative example which shows how to convert the TSI indicator to its Sampled version.
The indicator has been tested on NT7 ONLY, and only on single time-frame indicators.
I originally wrote code for solving NP-type problems and performance was the one benchmark we were measured on. When I originally started writing my trading system, I was surprised to see that most commercial libraries do not use data-persistence and …
This indicator does three things: #1 paints an inside bar at bar close #2 paints an outside bar in real time (does NOT wait for bar close) and #3 paints reversal bars at bar close. The reversal bar is calculated by the size of the wick. This wick size is adjustable. (2/3 +- bar size for wick)
For NT7 compatibility, there were 2 new parameters added to one of the DrawText() statements.
I added a compiler switch that will select the correct version of the statement of the DrawText method for either 6.5 or 7.
Indicator should now work in either version of Ninjatrader. However this zip package was created by NT7 so may not import into NT6.5. However, the previous version works fine in NT6.5 so that should not be a problem.
This is identical to the above indicator posted very recently except for the optimization that makes it load and run much faster. Was edited in NT7 but should also work in NT6.5... delete the info.xml file from the installer before importing into 6.5
There is a compiler switch that will set calculate on bar close = false if using NT7.
Again thanks to Richard of MoveTheMarkets.com for his valuable posts on Ninjacator optimization.