On 10, the memory consumption of the Terminal is shown to be high. On Windows Server it is much less.
Apparently, calculation of memory consumption depends on OS.
I have a feeling that the server is not quite correct on Windows Server.
Or, more precisely, graphics settings are constantly being reset and it depends on memory shortage. At the same time everything seems to be normal in dispatcher. Either vpc is limited or mt5 is more voracious.
gives a result of 16388. How can I do the reverse procedure: substitute the value 16388 and get a string with the period namePERIOD_H4? Is there a built-in function or should I write my own converter? If there is no built-in function, what would a custom function look like? Would it be necessary to write something like a key-value match?
gives a result of 16388. How can I do the reverse procedure: substitute the value 16388 and get a string with the period namePERIOD_H4? Is there a built-in function or should I write my own converter? If there is no built-in function, what would a custom function look like? Would it be necessary to write something like a key-value match?
I am trying to allow the user to select both timeframes and their number from the menu of the indicator setup window:
enum PERIOD
{
NO_PERIOD=0, // NOT USED
P1=PERIOD_H1, // H1
P2=PERIOD_H2, // H2
P3=PERIOD_H4, // H4
};
input PERIOD TIMEFRAME_1=P1;
input PERIOD TIMEFRAME_2=P2;
input PERIOD TIMEFRAME_3=P3;
ENUM_TIMEFRAMES PArray[3]={P1,P2,P3};
and I want the selected periods to go directly to PArray. But from the above example it turns out that I assign to the array the values pre-set in the program and not the values entered by a user. In addition, the compiler generates warnings:
implicit conversion from 'enum PERIOD' to 'enumENUM_TIMEFRAMES' test.mq5 2328
'ENUM_TIMEFRAMES::PERIOD_H1' will be used instead of 'PERIOD::P1' test.mq5 2328
implicit conversion from 'enum PERIOD' to 'enumENUM_TIMEFRAMES' test.mq5 2331
'ENUM_TIMEFRAMES::PERIOD_H2' will be used instead of 'PERIOD::P2' test.mq5 2331
implicit conversion from 'enum PERIOD' to 'enumENUM_TIMEFRAMES' test.mq5 2334
'ENUM_TIMEFRAMES::PERIOD_H4' will be used instead of 'PERIOD::P3' test.mq5 2334
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.
On 10, the memory consumption of the Terminal is shown to be high. On Windows Server it is much less.
Apparently the calculation of memory consumption depends on the OS.
This is the kind of feature that, even if you knew it, you have to bring up the whole layer in your head all over again.
Here I was making a self-reported presence determination. It seemed to work when switching TFs.
I didn't really get into it, but judging by these lines:
indicator name (in the 0th parameter) is not used in creating the signature, which is quite strange.
On 10, the memory consumption of the Terminal is shown to be high. On Windows Server it is much less.
Apparently the calculation of memory consumption depends on the OS.
I didn't really get into it, but judging from these lines:
the indicator name (in parameter 0) is not used in creating the signature, which is quite strange.
Yes, I have encountered it. Validate starts the first pass, the following ones do not. Start button doesn't start.
Debugged - it runs. Did debugging in release, everything is supposedly fine, but it doesn't work.
Now I specially launch debug version. It presses the Start button without any problems.
Couldn't figure out the reason for the bug.
Heh recently saw this answer.
As I understand it's my local agents not starting, why not figured out. It seems to start better in the latest versions of the terminal.
On 10, the memory consumption of the Terminal is shown to be high. On Windows Server it is much less.
Apparently, calculation of memory consumption depends on OS.
I have a feeling that the server is not quite correct on Windows Server.
Or, more precisely, graphics settings are constantly being reset and it depends on memory shortage. At the same time everything seems to be normal in dispatcher. Either vpc is limited or mt5 is more voracious.
gives a result of 16388. How can I do the reverse procedure: substitute the value 16388 and get a string with the period namePERIOD_H4? Is there a built-in function or should I write my own converter? If there is no built-in function, what would a custom function look like? Would it be necessary to write something like a key-value match?
gives a result of 16388. How can I do the reverse procedure: substitute the value 16388 and get a string with the period namePERIOD_H4? Is there a built-in function or should I write my own converter? If there is no built-in function, what would a custom function look like? Would it be necessary to write something like a key-value match?
It turns out there is. That's a relief. Thank you.
I am trying to allow the user to select both timeframes and their number from the menu of the indicator setup window:
and I want the selected periods to go directly to PArray. But from the above example it turns out that I assign to the array the values pre-set in the program and not the values entered by a user. In addition, the compiler generates warnings:
When I try to replace the last line with:
the compiler generates an error altogether:
Also, NO_PERIOD=0 meansPERIOD_CURRENT, and I don't need that, I need something like false or EMPTY_VALUE, but they don't fit at all.
How to fix it?