Good afternoon! Please help me get my terminal up and running - the market is not working. I want to download a free indicator from the market and I can't.
I changed the password, rebooted, but nothing works.
Good afternoon! Please help me get my terminal up and running - the market is not working. I want to download a free indicator from the market and I can't.
I changed the password, rebooted, but nothing works.
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:
int Ticket[];
datetime OpenTime[];
int k = 0, total = OrdersTotal();
for (int i = 0; i < total; i++) {
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if (OrderType() > 1) continue;
ArrayResize(Ticket, k+1);
ArrayResize(OpenTime, k+1);
Ticket[k] = OrderTicket();
OpenTime[k] = OrderOpenTime();
k++;
}
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.
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.
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.