1) a function to return the margin required for a given number of lots. A lot of experts testing for tradeability based on remaining margin, have to assume the amount of margin that is needed. It would be nice not to have to assume the amount. Something like the following function signature:
double MarginRequiredFor(int lots);
2) a function or built-in variable that specifies the minimum trade lot size. I'm not sure if there is other brokers that do the following: but the broker I go through has the mini accounts specify the number of mini lots as multiples of 1.0 lots, not 0.1 lots. It would be nice to be able to determine this within an expert and not either guess at it or require the user to specify 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.
1) a function to return the margin required for a given number of lots. A lot of experts testing for tradeability based on remaining margin, have to assume the amount of margin that is needed. It would be nice not to have to assume the amount. Something like the following function signature:
double MarginRequiredFor(int lots);
2) a function or built-in variable that specifies the minimum trade lot size. I'm not sure if there is other brokers that do the following: but the broker I go through has the mini accounts specify the number of mini lots as multiples of 1.0 lots, not 0.1 lots. It would be nice to be able to determine this within an expert and not either guess at it or require the user to specify this.