As I understand it we can't update the sim account size per historical trade in backtesting in the analyzer.
I'd like to use an AccountSize variable which updates at the end of each trade, in order to apply money management techniques to the strategy. For instance, my variable begins at $100,000 and updates with each trade to match the final result of the backtest (minus 100K, obviously).
I've been working with:
Trade lastTrade = SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1];
and
lastTrade.ProfitCurrency;
However, I'm unable to grasp how to use these in the proper place to update my AccountSize variable only once per trade in the backtest. If you could help me with a clue or point to a method group to clarify, that would be great. Any advice to get me where my simulated account growth to match the final sim101 account growth would suffice, and I could take it from there.
thanks,
David

Comment