Currently this is peformed manually for backtest purposes then a tally kept...
AccountSize=GetAccountValue(AccountItem.CashValue)
If i have interpreted correctly this will only return during realtime bars
perhaps then:
onInit
{
AccountSize=1000; //default
}
OnBarUpdate()
{
if(!Historical) AccountSize= GetAccountValue(AccountItem.CashValue) == 0 ? AccountSize : GetAccountValue(AccountItem.CashValue);
}
Comment