Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 388
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
Good afternoon, everyone.
I'm learning about arrays.
Can you please tell me how to remove the value I need from an array?
As I understand it, after deleting a value, the size of the array will be reduced and probably
the new array size value will also need to be specified.
I haven't found the function that would delete an array value in the Reference Manual. Can you please show me what the whole procedure looks like?
so that after deleting, the array will continue to function.
Thank you.
Here is a concrete example of what I need.
Good afternoon, everyone.
I'm learning about arrays.
Can you please tell me how to remove the value I need from an array?
As I understand it, after deleting a value, the size of the array will be reduced and probably
The new array size will also need to be specified.
I haven't found the function that would delete an array value in the Reference Manual. Please show me how the whole procedure looks like. to delete an array value,
So that after deleting, the array will continue to function.
Thank you.
Here's a concrete example of what I need.
You can copy an array "into itself" and then resize the array by decreasing it by 1. An example with deleting the zero index of the array and filling in the last one, but you can copy from any index any number of elements.
The second option is to overwrite the last value in the "freed" space and also reduce the size of the array.
You can copy an array "to itself" and then resize the array by decreasing it by 1. An example is deleting the zero index of the array and filling the last one, but copying can be done from any index with any number of elements.
The second option is to overwrite the last value in the "freed" space and also reduce the array size.
Hello!!! Explain to me, even though I'm not a beginner, but I'm terribly sick of one single problem. I am calling the indicator from the indicator. When I receive a new bar with one value, I get completely different values when I recompile it right away. The delay in the calculation of the indicator by time leads to nothing. As a result, there is no automatic function at all. The question. WHY???? I'm so fed up I'm exhausted. What is this incredible glitch... I'm sick of it...
Hello! I can't solve the problem of moving the signal levels when the price goes beyond them. At the moment of compilation everything is OK, but in the tester, when the "suitable" condition comes, nothing changes. Please advise what is wrong with the condition of price moving beyond the signal levels?
The"UrA" or"UrB" level should be moved to the last candle's maximum on m15, but it doesn't happen. Does anyone know why?
Hello! I can't solve the problem of moving the signal levels when the price goes beyond them. At the moment of compilation everything is OK, but in the tester, when the "suitable" condition comes, nothing changes. Please advise what is wrong with the condition of price moving beyond the signal levels?
The"UrA" or"UrB" level should be moved to the last candle's maximum on m15, but it doesn't happen. Does anyone know why?
What's wrong with ObjectMove()?
What's wrong with ObjectMove()?
Thank you!!!)
What's wrong with ObjectMove()?
The function is great! But the condition is not fulfilled for some reason! Does anyone know the reason?
Can someone explain what is the error, please?Hello!
I am just starting to learn MQL4. I cannot figure out why the script ignores the"Allow automatic trading" button in MT4 (ver. 4.0 build 1090)
I can't get a handle on this kind of construction:
I don't push the button, but it still shows a window with alert. When I set an order in a script, it fires it on every tick without stopping, whether the Autotrade button is pressed or not.
I have tried such a construction:
At first it seemed to work, but in the process of complicating the script it also stopped working...
I don't know if it is supposed to be like this, but I don't feel the fluency of EA's work: when I change EA, the old one keeps working as if in the background, but maybe I haven't figured it out yet.
Hello!
I am just starting to learn MQL4. I cannot figure out why the script ignores the"Allow automatic trading" button in MT4 (ver. 4.0 build 1090)
I can't get a handle on this kind of construction:
I don't push the button, but it still shows a window with alert. When I set an order in a script, it fires it on every tick without stopping, whether the Autotrade button is pressed or not.
I have tried such a construction:
At first it seemed to work, but in the process of complicating the script it also stopped working...
I don't know if it is supposed to be like this, but I don't feel the fluency of EA's work: when I change EA, the old one keeps working as if in the background, but maybe I haven't figured it out yet.