Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1855
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.