private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
{
Print( e.Time);
Print(e.Quantity);
Print(e.Price);
Print(e.MarketPosition);
Print(e.Operation);
Print(e.OrderId);
Print(e.IsSod);
Print(e.StatementDate );
Print(account.Get(AccountItem.CashValue,Currency.U sDollar));
}
The picture below will give the correct information, but the account balance is the same.
the start account balance and the end account balance are equal.
when I start a new trade it will show the updated price.
How do I get the updated account balance when closing a trade?
I am planning to have a trade recorder for myself for analyisis
Comment