Features of the mql4 language, subtleties and techniques - page 27
![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
The indicator is called with the wrong set of parameters
Yes, the indicator has quite a lot of parameters, is there any way to make sure that iCustom fills the memory? It takes about 2 hours to fill the memory, so testing an empty iCustom and adding one parameter at a time will take a long time. Any advice?
P.S. I will go through all the parameters visually as well.
Yes, the indicator has quite a few parameters, but is there any way to make sure that iCustom fills the memory exactly?
There will be a lot of indicators in the logs
Yes, I know what you mean, I have seen this in the strategy tester too, when a lot of indicators appear after a test. But everything works fine in the strategy tester here. And everything is displayed correctly in the logs.
Yes, the indicator has quite a few parameters, is there any way to make sure iCustom fills the memory? It takes about 2 hours to fill the memory, so testing an empty iCustom and adding one parameter at a time will take a long time. Any advice?
P.S. I will go through all the parameters visually as well.
Leave the call without parameters (then they will take the defaults), and observe. If the leak disappears, then that's what's wrong.
The EA eats up memory that builds up little by little.
How much is "a little"?
Maybe it really is a bit and this is the quote history that has appeared since the launch?
"Little by little" - how much?
Maybe it really is just a little, and it's the quote history that has appeared since the start?
I start MT4 with several EAs, enable memory logging. Where the arrow shows there is a crash, "not enough memory for EX4 file".
Leave the call without parameters (then they will take the defaults), and observe. If the leakage disappears, then that's what's wrong.
Ok, I'll do it this way.
I start MT4 with several EAs, enable memory recording. Where the arrow shows there is a crash, "not enough memory for EX4 file".
How much 40% of how much is being used?
It's growing linearly, looks like a crooked indicator call, yes.
40% of how much is used?
Grows linearly, looks like a curve indicator call, yes.
Seems to be a problem with the parameters. Thank you!
On MT4 this situation is possible (we will not talk about the reasons):
This is a very rare situation that is caused by a confluence of many circumstances. But it can occur, even though the probability is about zero.
I suggest that all combat robots must have a mechanism for identifying such situations.
For this purpose, it is necessary to memorize the tickets of open orders and check their presence in the trade history in case of their disappearance. If they are not in the trading history, Alertim!
The function of such protection.