Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1267

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
Thanks again for the tip, but ..... in the Reference Manual it says that this function only applies to dynamic arrays. And my code is NOT a dynamic array, but a regular one.
I will be very grateful if you tell me (or, better, show me) how to change the size of a regular array in the first dimension.
Thanks again for your help.
You can't, it's static, because the dimension doesn't change.
Dynamic array, it does not mean that its size must be changed every time. It's just an opportunity to change it if necessary.
Got it, thanks. Is there any way to set the size of the array using a variable?
Try it like this:
You can't, it's static because the dimension doesn't change.
Dynamic array does not mean that its size must be changed every time. It just means that you can change it if necessary.
Thank you for your help.
Try it like this:
Is define a variable?
Evening.
Is there a simpler way to determine whether the bar high or low has come first?
Thank you!
Is define a variable?
it is a substitution. That's how it's written and understood. Only (didn't check) declaring an array with simultaneous assignment of the last element ... don't know if it's correct or not.
Hi all, where is there a tutorial on MT4 programming? For dummies, that is completely from scratch. I found it for MT5 at https://www.mql5.com/ru/articles/100 , but as far as I understand it, due to some differences, written for MT5 simply will not work on MT4. I need it for MT4.
Sergei Kovalev's textbook on MQL programming. Look it up, it's easy to find. The only thing there are no additions after 2016, OOP, today's enumerations. But it's okay to start with. What you found is a good article, not a textbook at all.