I am able to run the following but it seems to be based on the current strategy NOT aggregate "Accounts" tab...
protected override void OnAccountItemUpdate(Account account, AccountItem accountItem, double value)
{
Realized = (double)AccountItem.RealizedProfitLoss;
UnRealized = (double)AccountItem.UnrealizedProfitLoss;
Print(Realized + " " + UnRealized);
}
Comment