I have noticed that Position.MarketPosition isn't giving the right value after reloading the strategy script (F5). Also setting the value of sync account position to true hasn't helped. MarketPosition is Flat while there's a position in the account which was opened by this strategy.
Is there a way to check the account manually inside the method OnBarUpdate and put correct values into Position?
Thanks.
Comment