Download MetaTrader 5

Handles are pointers?

To add comments, please log in or register
Sign up for MQL5.community to post your Forum topic
attila.okcu
152
attila.okcu 2016.11.10 18:52 

All the indicators return an int value, called handle.

Do they mean pointers?

Stanislav Korotky
17933
Stanislav Korotky 2016.11.10 19:47  
attila.okcu:

All the indicators return an int value, called handle.

Do they mean pointers?

No. There is no pointers in MQL. This is exactly the handles.

Even those types that are defined using "poiner" notation existing in C++ -- (typename *) -- those are also handles, not pointers.

You can't get address memory of any variable/array in MQL. 

attila.okcu
152
attila.okcu 2016.11.10 22:07  
Stanislav Korotky:

No. There is no pointers in MQL. This is exactly the handles.

Even those types that are defined using "poiner" notation existing in C++ -- (typename *) -- those are also handles, not pointers.

You can't get address memory of any variable/array in MQL. 

Thanks a lot Stanislav.

I've just noticed that those functions returns 10, 11, etc ... integers like so.

To add comments, please log in or register