privatebool Flat { get { return Position.MarketPosition == MarketPosition.Flat; } }
I am asking because it seems that if the strategy opens a position, then it will not return TRUE until the strategy closes the position (is this correct ?)
And if it is correct, how can I tell from within the strategy that the position is no longer open (so I can have the strategy stop managing the trade) ?
This seems to be the case also if a position is open from a historical bar and then it catches up to the latest bar - but keeps the position open when in reality there is no open position).

Comment