Gentlemen programmers. I have a question. I am testing one EA on aforex.ru demo account. I sometimes get an error when I open order 138 "New prices". I have not understood why. I open orders through the function below. I have to find the reason of error during the opening. What are your thoughts?
evillive: little, slippage is better to make it dynamic, for example, if the initial value leads to 138 - double it.
Great idea, I just double-checked it now, when the 138 error pops up, then 129 Wrong price appears. I.e. if we increase Slipage, the price should fall into the new corridor. I am also thinking to tweak the code and check the price at each step of opening while loop, it seems to me that it will be more effective.
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.
Gentlemen programmers. I have a question. I am testing one EA on aforex.ru demo account. I sometimes get an error when I open order 138 "New prices". I have not understood why. I open orders through the function below. I have to find the reason of error during the opening. What are your thoughts?
What does it equal ?
Slipage, //уровень допустимого реквотаI'm not a super-professional, but I would first ask myself what tp equals.
What does that equal?
Slipage I put 20 pips on a five-digit quote.
little, slippage is better to make it dynamic, for example, if the initial value leads to 138 - double it.
little, slippage is better made dynamic, e.g. if the initial value leads to 138 - double it.
3-5 spreads, if at that it won't open, it won't open
Slipage I put 20 pips on a five-digit quote.
can you give me an example of what number you put
20 or 0.00020 ?