I would like to access the monetary value of the backtest account while backtesting strategies. I was able to get the account value of "Backtest" and "Sim101" to print out, but the values of these accounts do not seem change from trade to trade in the output window. I have used the following code found in another thread:
Account a = Account.All.First(t => t.Name == "Sim101");
double value = a.Get(AccountItem.CashValue, Currency.UsDollar);
Print(value);
How can i get the backetesting account to return to me the updated value of the account after each trade?
Thanks.
Comment