Me again ... I wanted to ask you about the LotsOptimized function. I've noticed that it hasn't changed much since last version, still based on AccountFreeMargin().
What I have been thinking about is what are you thoughts about making it based on AccountEquity()?
If you trade this EA on the full set of currencies then you may have up to 12 orders open (in v4.2). No objections to that, in fact it's quite good as it gives you diversification over the pairs, and when there is no major market moves then orders come and go and the lot size remains fairly constant between orders. The margin remains at around 150%-200%. However when you get major days like NFP then the market swings wildly and it make take out your half of your orders and all of a sudden your margin jumps up to 500%-700% and then when you take on new orders you unnecessarily take on larger lot sizes (larger risk) when your account hasn't actually grown in equity to justify a larger position. Now if your orders actually TP then your are sweet, but if your orders SL, then you are loosing equity unnecessarily which you wouldn't have if you based your MM on equity. This behavior of the EA is especially apparent when you start up with a clean account where your margin is maximum because you have no open orders.
What does everybody think about this?
This would also mean that your MaximumRisk setting would actually reflect the account value, which is what you had probably intended?
What I have been thinking about is what are you thoughts about making it based on AccountEquity()?
If you trade this EA on the full set of currencies then you may have up to 12 orders open (in v4.2). No objections to that, in fact it's quite good as it gives you diversification over the pairs, and when there is no major market moves then orders come and go and the lot size remains fairly constant between orders. The margin remains at around 150%-200%. However when you get major days like NFP then the market swings wildly and it make take out your half of your orders and all of a sudden your margin jumps up to 500%-700% and then when you take on new orders you unnecessarily take on larger lot sizes (larger risk) when your account hasn't actually grown in equity to justify a larger position. Now if your orders actually TP then your are sweet, but if your orders SL, then you are loosing equity unnecessarily which you wouldn't have if you based your MM on equity. This behavior of the EA is especially apparent when you start up with a clean account where your margin is maximum because you have no open orders.
What does everybody think about this?
This would also mean that your MaximumRisk setting would actually reflect the account value, which is what you had probably intended?
Just my 2 pips worth