I'm working with NTv6.0.0.5 developing a custom strategy in NinjaScript. I'm getting a compile error ("The name 'MarketPosition' does not exist in the current context.") on this line in OnBarUpdate:
if (Position.MarketPosition != MarketPosition.Flat) {}
It's complaining about the 'MarketPosition.Flat', has something changed since the Help file was created? How can I check the current market position being long, shortor flat?
Thanks.
Comment