Hi NT,
I am working on a Strategy which utilizes tick data and in that I am facing a huge issue with Ninjatrader Strategy code.
My strategy works on First Tick Of Every Bar and I tried using the IsFirstTickOfBar default method which is giving me inaccurate results. For every candle the code should output only one string but as you can see in the 2.PNG for a candle it is returning 3 strings (Generally for first few ticks it is giving wrong results ).
Also I tried to replace the IsFirstTickOfBar method with my own and I found out that sometimes the Close[1] (Previous candle close value) is not matching the real close of the previous candle.
I request you to please look into the issue.
I am using ** Calculate = Calculate.OnPriceChange; ** (Tried OnEachTick too but the results were same )
Please refer to the final.PNG for details about my code.
Comment