MQL doesn't have pointers in the traditional sense (even though they are called such). MQL "pointers" are actually 8 byte object descriptors.
You can create a class containing your basic data types, and use those in conjunction with MQL "pointers".
Perhaps you should read the manual. GetPointer
Note
Only class objects have pointers.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
Is possible to use pointers to basic data types like int, long, double, etc.?
There are many excellent libraries of C functions and it is very frustrating and disappointing to get a default C code and try to convert it to MQL, in addition to being very tiring.
Examples of pointers in standard C:
Thanks for some advice