I was converted NT 7 UniRenko BarType(downloaded from NT 7 forum. http://ninjatrader.com/support/forum...d=4&linkid=560 )
to NT 8 Bar Type and the converted source code is attached here.
I renamed(save as) the SampleMACrossOver strategy to TEST1 and added two Print Statement inside OnBarUpdate method and its source code is attached here.
Also attached the bartype and Staretgy settings screen shot.
My Problem is below,
I Open a UniRenko Chart and run TEST1 Strategy on Intrabar (set Calculate = On Each tick , Connection = Simulated mode).
So on each tick, Instead of Printing current bar number the print statement will print from 0th Bar number to current Bar.
May i Know Why this?.
In NT 7 it will Print only the Current Bar Number for this case.
Print statement from Strategy is below
Print("FIRST LINE BAR NUMBER ="+CurrentBar.ToString()+ " CLOSE ="+Close[0]+" PC Time ="+DateTime.Now.ToString());
But when I set Calculate = "On Bar Close" from strategy setting screen , then it will show only current bar number .
May i Know Is this issue from my strategy or my Custom Bar Type ? I attached both here.
Kindly Please verify this and give me a solution about this.
Comment