I am backtesting a strategy on the Sim101 account which has $100,000 assigned to it.
I use some logic that risks 1.5% of this amount on every trade.
cashValue = myAccount.Get(AccountItem.CashValue, Currency.UsDollar); AccountRisk = (0.015)*cashValue;
I would expect this number to update (rise and fall) as the strategy takes trades.
Account value should be = account value +/- Cumulative Net Profit.
I also tried TotalCashBalance, but this returns zero.
Any idea how I can access the equity throughout the life of the backtest instead of just the static starting value of 100k ?
cashValueNet = myAccount.Get(AccountItem.TotalCashBalance, Currency.UsDollar);
AK
Comment