Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 682
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 have a large programme with the same type of objects. I mean many types. But they are repeated in different modules of the program. And in the logs, after testing is complete, for example, I get xxx undeleted objects. And so on several types.
How can I find out where I'm not deleting objects? Is there some toolkit for this?
I have a large programme with the same type of objects. I mean many types. But they are repeated in different modules of the program. And in the logs, after testing is complete, for example, I get xxx undeleted objects. And so on several types.
How can I find out where I'm not deleting objects? Is there some toolkit for this?
Bug of the 1930 build.
I was surprised to find that MQl5 supports OpenCL
Hasn't anyone written an optimiser for robots during this time, so that millions of runs would not go on for centuries, but at least for years? :)
it means you are counting on every tick the code you submitted and not initializingSredRazmax andSredRazmin variables
It's a good habit to initialize variables before using them - that's what they teach at universities, it reduces the time it takes to find bugs ;)
I initialised them at the beginning, and in the comment you can see another array element by element (to check and 0 does not change, so the formula should work,) Here is the full code:
Bug from build 1930.
What is it? I have MT4. Build 1090.
What is it? I have MT4. Build 1090.
I initialised them at the beginning, and the comment outputs another array element by element (to check to see and 0 does not change, so the formula should work,) Here is the full code:
You didn't initialize them at the beginning or anywhere else, you just declared them
I wrote before using, i.e. if you have variables SredRazmax, SredRazmin, Sredn are sums of array values, then to correctly calculate the sum, you need to zero the variable and then add the array values and save them in this variable
i.e.
And the second, what you have a question, in the indicator every tick will callOnCalculate() and it means you will constantly count the tops of ZigZag at every tick, i.e. approximately 40-60 times per second
An object created by new must either be attached to an object array or deleted by itself in OnDeinit()
Thank you for the enlightenment. But you should at least read my question.
Thank you for the enlightenment. But you should at least read my question.