I have a strategy with three time frames. Only one instrument is traded. Trading is only done on the third dataseries (if BarsInProgress==2).
Bug 1:
EntriesPerDirection=1 is not effective. I assume this is because EntriesPerDirection is tied to Positions[0] (only looking at the primary series). Documentation http://www.ninjatrader.com/support/h...rdirection.htm does not say this only works for primary series. Note that I have Unmanaged=false.
Bug 2:
Position is not operating in current BarsInProgress context
The documentation http://www.ninjatrader.com/support/h...nstruments.htm says it should
Due to this false result my code places more orders (and these all pile up since EntriesPerDirection=1 is not working).
So it looks as though in NT NT 7.0.0.22 Position only reports the status of the primary series (ie is tied to Positions[0] and is not operating in the current context as per documentation).
Workaround: I found that using Positions[2].MarketPosition gives the true result. But here the documentation http://www.ninjatrader.com/support/h...?positions.htm is confused because it says Positions
Comment