I’m having some challenges with AccountSize.
I’m planning to use the methodology discussed on another thread to calculate position size based on remaining account equity. Notably,
[COLOR=blue][FONT=Courier New]double[/FONT][/COLOR][COLOR=black][FONT=Courier New] CAccountSize = AccountSize + Performance.AllTrades.TradesPerformance.Currency.CumProfit;[/FONT][/COLOR]
Unfortunately, I am getting an account size of 0 when testing. I’ve checked this setting in the Control Centre -> Options -> Simulator (Initial Cash) where I assume this number is obtained – see screen shot. It should be starting with AccountSize equal to 10,000.
The output from the following lines of code is 0.
[COLOR=black][FONT=Courier New]Print([/FONT][/COLOR][COLOR=maroon][FONT=Courier New]"Account Size = "[/FONT][/COLOR][COLOR=black][FONT=Courier New]+ AccountSize);[/FONT][/COLOR]
Thanks,
Dan

Comment