please help me how I can write this code
You can't get the variable's address in MQL! Are you maybe trying to pass a parameter by reference? Is that what you want?
Please explain your query or show same code that better explains what it is you are trying to achieve!
For exam
int i;
what is the address of this variable in ram?
I think you are right we can not get that.
this code is for c#
int a = 99;
int* ptr = &a;
int* ptr2 = ptr;
MessageBox.Show($"Value of a is {*ptr}");
MessageBox.Show($"Address of a is {(int)ptr2}");
But I don't know what is code for mql
For exam
int i;
what is the address of this variable in ram?
I think you are right we can not get that.
this code is for c#
int a = 99;
int* ptr = &a;
int* ptr2 = ptr;
MessageBox.Show($"Value of a is {*ptr}");
MessageBox.Show($"Address of a is {(int)ptr2}");
But I don't know what is code for mql
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys
I want to get a variable address but I don't know how I can get that!
please help me how I can write this code