re the NT7 beta thread here http://www.ninjatrader.com/support/f...ight=saltminer
I can confirm the cause.
To summarise, Closes[0][0] in a strategy is returning Typicals[0][0].
After much testing, I traced it to an indicator the strategy was calling, in the form
value = MyIndicator(Closes[0], ....)[0];
The indicator had the following lines in the Initialise()
PriceTypeSupported = true;
PriceType = PriceType.Typical;
This corrupted the strategy somehow, changing the strategy's Closes forever after into Typicals.
This would not be intended NinjaTrader behaviour. It did not occur in Ninja 6.5 with identical code.
Cheers,
saltminer

Comment