read about "Union"
https://www.mql5.com/en/docs/basis/types/classes
Documentation on MQL5: Language Basics / Data Types / Structures, Classes and Interfaces
- www.mql5.com
Language Basics / Data Types / Structures, Classes and Interfaces - Reference on algorithmic/automated trading language for MetaTrader 5
Taras Slobodyanik:
read about "Union"
https://www.mql5.com/en/docs/basis/types/classes
Thank you!!!
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
Hello to everyone,
I have encountered problems with the code written before the build versione 1599 of Mediaeditor. The code for casting between structures is no longer accepted.
What I'm saying is verifed. I still have a version of Metaeditor build 1562 and if I compile the following code is regularly compiled:
By compiling the same code with the updated versione of the metaeditor (build 1599) I get this error message:
Now I would like to see if this is a bug for the metatrader or it was decided to implement a different casting form, especially for Union operations between structures that were not explicitly contemplated but could be realized as described in this documentation:
https://docs.mql4.com/basis/types/casting
Personally I need this feature on indicators that are very important to me
Do you know anything about it?