Hello. Can you give me a hint? The trading terminal has such a concept as ALERT. That is, we put it on theprice scaleand set conditions for reaching this price. But it turns out it is disposable. The trading robot is not a one-time event and the alert is not a one-time event.
valentin104 The trading terminal has such a concept as ALERT. That is, we put it on theprice scaleand set conditions for reaching this price. But it turns out it is disposable. The order is similar to the alerts but they are reusable, i.e. they keep on working until they are deactivated.
The code is for MQL5. The function is based on the assumption that the indicator has the same function as in MQL5 and in MQL5 it is based on the same function as in MQL5.
The matter is that comparing the opening price for today with the opening price for yesterday seems to cause spread colocation and then there are further problems in the code. Either only bai or sells are traded because iOpen prices are not correct on some days.
The matter is that comparing the open price for today with the open price for yesterday seems to cause spread colocation and then I get into problems in the code. I can trade either only bids or sells because iOpen prices are not correct on some days.
Sergey Dymov a multi-currency EA, everything is working as planned except for opening orders. Please tell me what the problem is.
I don't get any error, it just does not open orders
OrderSend
Returned value
Returns ticket number assigned to the order by the trade server or -1 in case of failure. To get errorinformation , you need to call GetLastError().
Even the compiler tells you that Ordersend should be checked.
The purchase is done with Ask. But it may work with Bid as well, if the slippage is at least equal to the spread, which may make it harder to find this bug.
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.
Yes - output it yourself
the key word here is "like". There's your own data there, not from a third-party indicator.
Greetings. Can you give me a hint?
In the mt5 robot I need to put a curve like a moving average on the chart. Is there a more "civilized" way to display it than drawing it from objects?
Drawing values on CCanvas.
the key word here is "like". There's your own data there, not from a third-party indicator.
Hello. Can you give me a hint? The trading terminal has such a concept as ALERT. That is, we put it on theprice scaleand set conditions for reaching this price. But it turns out it is disposable. The trading robot is not a one-time event and the alert is not a one-time event.
The code is for MQL5. The function is based on the assumption that the indicator has the same function as in MQL5 and in MQL5 it is based on the same function as in MQL5.
A word of advice. I'm stumped on a question.
How doesiOpen count for Ask or Bid?
The matter is that comparing the opening price for today with the opening price for yesterday seems to cause spread colocation and then there are further problems in the code. Either only bai or sells are traded because iOpen prices are not correct on some days.
The matter is that comparing the open price for today with the open price for yesterday seems to cause spread colocation and then I get into problems in the code. I can trade either only bids or sells because iOpen prices are not correct on some days.
The chart is based on Bid price
Guys, please advise.
I'm writing a multi-currency EA, everything works as planned except for opening orders. Please tell me what the problem is.
I don't get any errors, I just don't open orders
I don't get any error, it just does not open orders
Returned value
Returns ticket number assigned to the order by the trade server or -1 in case of failure. To get errorinformation , you need to call GetLastError().
Even the compiler tells you that Ordersend should be checked.
The purchase is done with Ask. But it may work with Bid as well, if the slippage is at least equal to the spread, which may make it harder to find this bug.