After re-reading my post, i see that i was not realy clear about what i would like, (my fault). The max lot is excellent actually and i will incorporate it into the strategy. But, would there be a way to use a (money filter), like if the account starts at 10000$ and reaches, lets say 50000$, the EA would reset the amout of (lots) back to its original position of 1 lot or whatever the user started out with. We would only need to enter a specifique amount of money reached (user defined).
If anyone is up for it to practice there coding skill, It might help others and especially me (again). :)
Thank you ronaldosim, i am starting to see how things are set up in the code more clearly, wich is a very good start for a newbie like myself, I still have much to learn yet. Your help is very useful.
After re-reading my post, i see that i was not realy clear about what i would like, (my fault). The max lot is excellent actually and i will incorporate it into the strategy. But, would there be a way to use a (money filter), like if the account starts at 10000$ and reaches, lets say 50000$, the EA would reset the amout of (lots) back to its original position of 1 lot or whatever the user started out with. We would only need to enter a specifique amount of money reached (user defined).
If anyone is up for it to practice there coding skill, It might help others and especially me (again). :)
Thank you ronaldosim, i am starting to see how things are set up in the code more clearly, wich is a very good start for a newbie like myself, I still have much to learn yet. Your help is very useful.
Cheers,
Ramy
change MaxLots to say TargetAccount$=50000 and TragetBuffer$=30000
and then compare if (TargetAccount$-AccountBalance()>TargetBuffer$) reset yr lot...
change MaxLots to say TargetAccount$=50000 and TragetBuffer$=30000
and then compare if (TargetAccount$-AccountBalance()>TargetBuffer$) reset yr lot...
Thks, it worked,
Know, how would i make it incremental, like if the account initialy holds 50000$ and it reaches + 2000$, every time it reachead the 2000$ profit mark it would reset the amount of lots? ( ex: 50000 to 52000 = reset the amount of lots, 52000 to 54000 = reset the amount of lots, and so on...).
Know, how would i make it incremental, like if the account initialy holds 50000$ and it reaches + 2000$, every time it reachead the 2000$ profit mark it would reset the amount of lots? ( ex: 50000 to 52000 = reset the amount of lots, 52000 to 54000 = reset the amount of lots, and so on...).
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.
lots mod
Hi,
After re-reading my post, i see that i was not realy clear about what i would like, (my fault). The max lot is excellent actually and i will incorporate it into the strategy. But, would there be a way to use a (money filter), like if the account starts at 10000$ and reaches, lets say 50000$, the EA would reset the amout of (lots) back to its original position of 1 lot or whatever the user started out with. We would only need to enter a specifique amount of money reached (user defined).
If anyone is up for it to practice there coding skill, It might help others and especially me (again). :)
Thank you ronaldosim, i am starting to see how things are set up in the code more clearly, wich is a very good start for a newbie like myself, I still have much to learn yet. Your help is very useful.
Cheers,
Ramy
lots mod
Hi,
After re-reading my post, i see that i was not realy clear about what i would like, (my fault). The max lot is excellent actually and i will incorporate it into the strategy. But, would there be a way to use a (money filter), like if the account starts at 10000$ and reaches, lets say 50000$, the EA would reset the amout of (lots) back to its original position of 1 lot or whatever the user started out with. We would only need to enter a specifique amount of money reached (user defined).
If anyone is up for it to practice there coding skill, It might help others and especially me (again). :)
Thank you ronaldosim, i am starting to see how things are set up in the code more clearly, wich is a very good start for a newbie like myself, I still have much to learn yet. Your help is very useful.
Cheers,
Ramy
change MaxLots to say TargetAccount$=50000 and TragetBuffer$=30000
and then compare if (TargetAccount$-AccountBalance()>TargetBuffer$) reset yr lot...
change MaxLots to say TargetAccount$=50000 and TragetBuffer$=30000
and then compare if (TargetAccount$-AccountBalance()>TargetBuffer$) reset yr lot...
Anyone?