Any help?
There's no difference and that's why it only works for first one
Navdeep Singh #: Lol this increased my confusion ( maybe I am missing something ). If there is no difference, shouldn't the second one work too?
Only the first one is correct! The asterisk "*" (pointer declaration) has to be used with the variable name and not with the data-type (inherited from "C" convention).
FYI: It is missing in the MQL5 documentaion, but it's called a Dereference operator (*) .
Here is a reference from the C++ documentation — https://cplusplus.com/doc/tutorial/pointers/
Fernando Carreiro #:
FYI: It is missing in the MQL5 documentaion, but it's called a Dereference operator (*) .
Here is a reference from the C++ documentation — https://cplusplus.com/doc/tutorial/pointers/
Thanks for the help.
Comments that do not relate to this topic, have been moved to "Off Topic Posts".

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
This works for all variables
This only works for " _open " variable ( others don't seem to get the pointer )