aik3e: Hi, I'm learning OOP on MQL4 and I am stuck on the following code. Can anyone please assist? I am new to MQL4 and this is my first post here kindly correct me if I may have broken any of the rules. I already searched quite a bit on this forum and also on stack overflow but I could not find an answer.
You can't loop through members of a "struct" nor a "class". They are not part of some kind virtual array of members nor a list of virtual pointers. They are only directly addressable as member variables (or member functions if it be the case).
Fernando Carreiro:
Thank you @Fernando. I was suspecting that that was the case but was hopeful there was a workaround.
You can't loop through members of a "struct" nor a "class". They are not part of some kind virtual array of members nor a list of virtual pointers. They are only directly addressable as member variables (or member functions if it be the case).
![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
Hi, I'm learning OOP on MQL4 and I am stuck on the following code. Can anyone please assist? I am new to MQL4 and this is my first post here kindly correct me if I may have broken any of the rules. I already searched quite a bit on this forum and also on stack overflow but I could not find an answer.