Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1597
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I changed the password, rebooted, but nothing works.
The program logs the following
2021.08.23 11:54:18.236 MQL5 Market failed downloading product 'MACD Intraday Trend'(www.mql5.com:443 send failed [426: ])
Regards, Olga
Is your terminal not MT4?
I changed the password, rebooted, but nothing works.
The program logs the following
2021.08.23 11:54:18.236 MQL5 Market failed downloading product 'MACD Intraday Trend'(www.mql5.com:443 send failed [426: ])
Regards, Olga
Isn't the terminal MT4 by any chance?
What is the operating system?
10
32 or 64?
check your message
Hello.
Trying to change the original fractal indicator in MT4. I want it to be based on 3 bars and not 5 as it is now.
I haven't found anything in the code... There are just redirections... Where to change it?
Thank you.
Hello.
Trying to change the original fractal indicator in MT4. I want it to be based on 3 bars and not 5 as it is now.
I haven't found anything in the code... There are just redirections... Where to change it?
Thank you.
Write your own. On a 5-7-(or whatever you need)
a regular indicator, two buffers.
In the loop look at the last N and based on the position of the extremum (and on the Williams extra conditions, but this was also nullified in the original Mt4/5) you put a tick in the buffer, i.e. a non-empty value.
Please advise, can we be sure that market orders are stored in the terminal in an orderly fashion?
In other words, if the broker does not change the order tickets during rollovers and the trader does not touch them at all, can we rely on the fact that each time we go through the orders in the terminal and save their tickets and opening times in the arrays, we will get identical arrays ordered in ascending order?
Here is the code like this, for instance:
After this fragment, can we be sure that the order of elements in the arrays Ticket and OpenTime will always be the same (at every tick), and the elements of these arrays (or at least one of them) will be arranged in ascending order?
Please advise, can we be sure that market orders are stored in the terminal in an orderly fashion?
In other words, if the broker does not change the order tickets during rollovers and the trader does not touch them at all, can we rely on the fact that each time we go through the orders in the terminal and save their tickets and opening times in the arrays, we will get identical arrays ordered in ascending order?
Here is the code like this, for instance:
After this fragment, can we be sure that the order of elements in the arrays Ticket and OpenTime will always be the same (on every tick), and the elements of these arrays (or at least one of them) will be arranged in ascending order?
not guaranteed, there's nothing in the documentation, the developers also wrote that don't rely on undocumented features
Although there is an opinion that your code will work correctly, I think@fxsaber wrote it once
ZZY: sort by yourself, imho, it's not critical, MQL is very productive now.
ZZZY: here's an example of sorting written byhttps://www.mql5.com/ru/forum/357565#comment_19656851
not guaranteed, there's nothing in the documentation, the developers also wrote that don't rely on undocumented features
Although there is an opinion that your code will work correctly, I think@fxsaber wrote some time ago.
ZZY: sort by yourself, imho, it's not critical, MQL is very productive now.
SIZE: here's an example of sorting written byhttps://www.mql5.com/ru/forum/357565#comment_19656851
Just to add, it is NOT GUARANTEED that the terminal has and will give a sufficient history.
If an EA uses "historical" orders for some calculations (e.g. volume), then it is better to save them independently and always have them at hand.