I'm trying to develop an EA, using the online free EA Builder.
I can't seem to make lots size work dynamically. There is a variable in my EA that's the difference between D+ an D- of ADX indicator. I would like to set my EA in such a way that the bigger this variable would be, the larger lot size would be opened. For example, if the variable was 7, the lot size would be 0.1; if the variable was 8, the lot size would be 0.2; and so on.
Can you halp me with this? Is there a simple way to code this?
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.
Hello!
I'm a newbie on trading.
I'm trying to develop an EA, using the online free EA Builder.
I can't seem to make lots size work dynamically. There is a variable in my EA that's the difference between D+ an D- of ADX indicator. I would like to set my EA in such a way that the bigger this variable would be, the larger lot size would be opened. For example, if the variable was 7, the lot size would be 0.1; if the variable was 8, the lot size would be 0.2; and so on.
Can you halp me with this? Is there a simple way to code this?
Thanks in advance!
:)