Good morning,
I want to be able to set my position size according to x% risk of the available capital in my account. I have read this money management code.
Instead of having to manually declare the variable Capital = x, is there no way for pro order to lookup the amount automatically?
I will need to use pro order to automate more than one strategy so it seems like strategyprofit wouldn’t work, it would only update from a single strategy and not include the value of the others?
It seems to defeat the purpose of automation if I have to manually update the capital after every trade is closed?
Thanks.