I have 2 questions about MT4 and MQL4:
1. Can the function return more params than one? I know it is possible to do it by merging params into one string but maybe is better solution?
2. Is it possible to open in MT4 a window without choosing the symbol? The chart would be drawn by indicator.
Thank you,
cornelius
about first question, you can send parameters byrefrence like this :
void Myfunction(int& a,int& b)
{
a=10;
b=24;
}
int a,b;
Myfunction (a,b);
Alert(a);
Alert(b);
about first question, you can send parameters byrefrence like this :
void Myfunction(int& a,int& b)
{
a=10;
b=24;
}
int a,b;
Myfunction (a,b);
Alert(a);
Alert(b);
Thank you, Mehdi.
Works!
I have 2 questions about MT4 and MQL4:
1. Can the function return more params than one? I know it is possible to do it by merging params into one string but maybe is better solution?
2. Is it possible to open in MT4 a window without choosing the symbol? The chart would be drawn by indicator.
Thank you,
cornelius