I am seeking to print the AccountItems in my strategy. Here is my code:
protected override void OnAccountItemUpdate(Account Sim101, AccountItem.TotalCashBalance accountItem, double value)
{
Print(string.Format("{0} {1} {2}", Sim101.Name, AccountItem.TotalCashBalance, value));
}
But I get this error: "TotalCashBalance does not exist in the type NinjaTrader.Cbi.AccountItem
Please let me know what I am doing wrong. Also, I'd like to subscribe to get all account items, not just the total cash balance. How can I do this?
Comment