cornelius:
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);
Mehdi_Sobhani:
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!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
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