foreach (Account acct in Cbi.Globals.Accounts)
{
if ( acct.Name == "Uxxxxxx")
{
PositionCollection positions = acct.Positions;
foreach (Position pos in positions)
{
if (pos.Instrument.FullName == "$EURUSD")
{
if ( Position.MarketPosition != pos.MarketPosition || Position.Quantity != pos.Quantity )
{
SendMail ("[email protected]", "[email protected]", "URGENT: UNSYNCED ACCOUNTS! ", Position.MarketPosition.ToString() + " " + Position.Quantity.ToString()+" Versus IB " +pos.MarketPosition.ToString()+ " " + pos.Quantity.ToString());
}
}
}
}
}
1. Has NT8 some syncing procedure or method that I'm not aware of to check, or even more, to sync Strategy and Position accounts´after a connection recover?
2. Is there any snippet substitute for NT8, as I posted above for NT7 ?
Isthis info reliable as the real position account and is it available everywhere?
Print("The position is " + PositionAccount.MarketPosition);
Thanks in advance

Comment