|
Increasing lots with EA
I've been using a peice of code that Trevman posted a while back to increase your lots as your balance grows and it works well! However, I'm hoping to find a way to add something to it that would keep it from decreasing the number of lots as the account balance goes down. For example, something that would look at the code Trevman posted and also looking at the number of lots on the previous order and use the larger of the two. I'm only a beginner trying to learn here, so any help will be greatly appreciated!
Here's the code I have now:
double Lots = NormalizeDouble(AccountFreeMargin()/(500/0.1),1);
Thanks again for the help! =)
|