{
foreach (Account acct in Cbi.Globals.Accounts)
{
Print("--------------------------------------");
Print("acct: " +acct.Name);
Print("acct: " +acct.GetAccountValue(AccountItem.CashValue, Currency.UsDollar));
Print("--------------------------------------");
}
}
This code doesn't work on indicator. The output is always $0.00. Someone could help me to get the account value of account where the indicator is running. For example, if the account in the chart trader is sim101 then I want that my indicator will output a cash value of sim101 account.
Comment