Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I have recently had a indicator turned into a EA not being a programmer I am only capable of reading and understanding some code not writing it.
I am looking for some code snipets to do the following so that i can backtest and decide on the best way forward.
at present my EA just runs at a fixed lot size.
I am looking for code i can add to do the following.
1/ after a loss increase the lot size by xx untill a win then return to original size
2/ take the account balance and a risk required say 2% of balance and then work out the lot size, adjusting it for each trade.
Thanks in advance for any help offerd.
Console.
console_2002@yahoo.co.uk
here is the EA code i am using.