trader3000: increase the lot size incrementally by 1 microlot every time that the equity drops incrementally by $200. So if my starting equity is $1000 and it drops to $800, the lot size of the next trade should go from 0.01 to 0.02. Then if the equity rise to say $1200 and drops for a second time by $200, the lot size should go to 0.03.
Lots = NormalizeLots( (Equityhigh - AccountEquity() ) /10000); // (1000-600)/10000 = 400/10000 = 4/100 = 0.04

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Everyone
I'm stuck. I'm trying to write a simple EA that would increase the lot size incrementally by 1 microlot every time that the equity drops incrementally by $200. So if my starting equity is $1000 and it drops to $800, the lot size of the next trade should go from 0.01 to 0.02. Then if the equity rise to say $1200 and drops for a second time by $200, the lot size should go to 0.03. So, both the value of the highest equity (in increments of $200) and the value of the highest lot size (in increments of 0.01 lots) must be saved as a variable. I have tried different ways to accomplish this, but do not get it to work properly. This is what I have at the moment: