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)
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.
I converted the minute data cunparis uploaded to the Pacific time zone using this attached tool. If you want the data converted to another time zone you can use this tool yourself. This is a Visual Studio C# project. If you don't want to deal with Visual Studio you can just run the .EXE file in the /bin/Debug folder. Once it converts your data it saves it in the same folder as your source file with the same name with the extension ".converted" appended to it.
June 12th, 2016 10:25 AM dilbert618 awesome tool, thank you
July 13th, 2015 06:20 AM bebop Thank you!
November 30th, 2012 05:16 AM dilbert618 Thanks shodson, very useful tool.
October 3rd, 2010 08:24 PM zacharydw00 dadof3and3 fixed this similar program, that is on NT's forum, for me. He fix a couple if issues with it. The original
version didn't convert all 24 hrs of data. It stopped at 4:15 and skipped to the next day. Also, it crashed on files l
arger than 300MB. In addition to the fixes, he increased the number of time zones to add or subtract. To answer BM;s q
uestion, I've used it to convert 600MB tick files. I'm not sure where he posted the fixed version, or if he did post i
t. Check NT's forum.
June 13th, 2010 07:35 PM Big Mike Thanks for this, a lot of people needing this. But will it work for tick data as well?