Pointer next to type or before the variable. Should that make a difference?
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/
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.
This works for all variables
This only works for " _open " variable ( others don't seem to get the pointer )