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.
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)
June 18th, 2010
Size: 1.68 KB
Downloaded: 676 times
499
Jeff Castille
With the help of mrLogik at purelogiktrading.com, the attached iADX turns magenta when the ADX is above the 50 threshold. (I use a very short setting of 5 for daytrading/scalping.) The parameters for the threshold and colors can be changed in the indicator window. Red histogram bars for downtrend, blue histogram bars for uptrend.
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.