It's a pity that there are no ready-made solutions, we'll have to make all sorts of twists with arrays anddatetime data again...Seemingly elementary things... why did they have to be removed when switching from MQL4?
Примечание
Функцию нельзя вызывать из пользовательских индикаторов, так как индикаторы выполняются в интерфейсном потоке и не должны его тормозить.
writing in the script
voidOnStart()
{
intMessageBox(
string text="text",// текст сообщенияstring caption=NULL, // заголовок окнаint flags=MB_YESNO// определяет набор кнопок в окне
);
}
I get .
'MessageBox' - function can be declared only in the global scope
I put it before OnStart() - no errors, no window either.
How to use this box correctly, handling YES/NO, for example (agree = continue script execution or refuse = abort).
Doesn't remove the pair in the market overview. And does not add if true and it is not in the symbol list. Does not return an error. No open charts or positions on the symbol.
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.
The current time is the second date (it should be clear from the help)...
It will probably work like this
It does work)). Hmmm... I must have misunderstood something here:
The elements from the starting position are counted from the present to the past, i.e. a starting position equal to 0 means the current bar.
So I'm bubbling over)))
Can you please tell me which MQL4 analog of Day() and Hour() function is there in MQL5(the return values should be int)?
https://www.mql5.com/ru/docs/dateandtime
all that is known to science so far.
https://www.mql5.com/ru/docs/dateandtime
all that is known to science to this day.
Question on MessageBox. In the help
writing in the script
I get .
I put it before OnStart() - no errors, no window either.
How to use this box correctly, handling YES/NO, for example (agree = continue script execution or refuse = abort).
why did you put int ?
to fight the compiler?
why did you put int ?
to fight the compiler?
Print stubbornly prints 2 at a time, what is it?
And another question. Is there any way to clear the oldAlertlist? I don't think there was one in 4. I could be wrong, haven't used it.
Print stubbornly prints 2 at a time, what is it?
And another question. Is there any way to clear the oldAlertlist? I don't think there was one in 4. I could be wrong, haven't used it.