
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
No - you can pass arrays, structures and objects to functions
Thank you @ R4tna C, that's what I understood.
The documentation has more info: Documentation on MQL5: Language Basics / Functions / Passing Parameters
I'll take the time to read this quietly during the week.
I rarely use object pointers
That was the question about pointers, If someone could give me a concrete example of a use, For example, a concrete case where you have to use a pointer and can't do otherwise ?
Your answer goes a bit in my direction, I have the impression that you have a good level in programming, and you yourself say that you rarely use them,I think that one day I'll come across a case where I'll have to use these pointers for objects, but right now with my level I can't see where to use them or concretely how or why to use them, and that's what would have interested me to know so that I could leave this little explanation to my subconscious 😅.
if you master these basics you will find you can do mostly everything you need.
I don't think this will be a problem for mastering, I like a Chinese proverb that says : "Living until death and learning until death", But at the same time I also like a French proverb that says : "The best is the enemy of good", In other words, why make things complicated when you can make them simple?
The same goes for you Fernando Carreiro , if you have any good Portuguese proverbs I'd love to hear them, because my wife is Portuguese and the few times I've been to Portugal I know a lot more than she does 🤣.
Your answer goes a bit in my direction, I have the impression that you have a good level in programming, and you yourself say that you rarely use them,
I have a decent level of programming but certainly not like many people here (there are some serious MT guru's here with many more years of experience).
I have used pointers in C++ many decades ago but once Java came along in the mid 90's, I don't remember having to do so again.
So don't worry about it so much - learn the fundamentals as described in this thread, and just code. The more you write, the more you will learn with each step - if in doubt, test the concept in isolation in a script and use the documentation to find good examples.
And if you finally hit a requirement where only a pointer will do, you will be equipped to tackle it.
With the MQL5 language, I have a lot of fun with all the possibilities available and I try to do things right, because I'm in front of my computer almost all the time.
that is man cave :
Thank you for your answer, I learned to program by myself about ten years ago php, html, css, SQL, Ajax, Unfortunately I learned by myself as an autodidact and my learning was not really structured,
With the MQL5 language, I have a lot of fun with all the possibilities available and I try to do things right, because I'm in front of my computer almost all the time.
that is man cave :
Cool - good luck!