I have a problem with strategy position update. When i run strategy on real time sim account or backtest everything works fine. But when i run it on real account my strategy position lags behind acct.position for one execution. It shows my strategy position like it was one execution back. Below i posted a picture first one is in sync that runs real time sim account, second runs on my real account.
I cant get my strategy position in sync
my script uses OnBarUpdate calculation
please help
Comment