TIMisthebest:
use construction if - else
command " GO TO " is define in mql5 ?
if not ; how can do as same as it?
Konstantin83:
use construction if - else
use construction if - else
this is not completely enough .
the user friendly maybe like:
. . . if(...) GO TO STATION 999; . . . STATION 999; . . .
TIMisthebest:
this is not completely enough .
the user friendly maybe like:
You don't have to tell to "go to there or here", just tell the location.
if (big > small) { STATION_999(); } else { STATION_001(); } STATION_999() { } STATION_001() { }
phi.nuts:
i second that
You don't have to tell to "go to there or here", just tell the location.
thank you.
Language Basics
© 2000-2011, MetaQuotes Software Corp.
40
Syntax
As to the syntax, THE MQL5 language for programming trading strategies is very much similar to the
C++ programming language, except for some features:
no address arithmetic;
no goto operator;
an anonymous enumeration can't be declared;
constructors of classes and structures can't have parameters;
no multiple inheritance.
See also
Enumerations, Structures and Classes, Inheritance
© 2000-2011, MetaQuotes Software Corp.
40
Syntax
As to the syntax, THE MQL5 language for programming trading strategies is very much similar to the
C++ programming language, except for some features:
no address arithmetic;
no goto operator;
an anonymous enumeration can't be declared;
constructors of classes and structures can't have parameters;
no multiple inheritance.
See also
Enumerations, Structures and Classes, Inheritance
TIMisthebest:
this is not completely enough .
the user friendly maybe like:
In MQL5 there is no operator similar to GOTO, but you can use another construction, e.g.:
. . . bool GotoStation=false; if(...) GotoStation=true; // GO TO STATION 999; if(GotoStation==false) { . . . } else { STATION 999; }
As for me I also would like to have operator GOTO in MQL5.
paladin800:
thank you.
In MQL5 there is no operator similar to GOTO, but you can use another construction, e.g.:
As for me I also would like to have operator GOTO in MQL5.
TIMisthebest:
Language Basics
© 2000-2011, MetaQuotes Software Corp.
40
Syntax
As to the syntax, THE MQL5 language for programming trading strategies is very much similar to the
C++ programming language, except for some features:
no address arithmetic;
no goto operator;
an anonymous enumeration can't be declared;
constructors of classes and structures can't have parameters;
no multiple inheritance.
See also
Enumerations, Structures and Classes, Inheritance
is there a Specific reason for this , why mql5 does not have goto operator ?!Language Basics
© 2000-2011, MetaQuotes Software Corp.
40
Syntax
As to the syntax, THE MQL5 language for programming trading strategies is very much similar to the
C++ programming language, except for some features:
no address arithmetic;
no goto operator;
an anonymous enumeration can't be declared;
constructors of classes and structures can't have parameters;
no multiple inheritance.
See also
Enumerations, Structures and Classes, Inheritance
TIMisthebest:
is there a Specific reason for this , why mql5 does not have goto operator ?!
What to do ?
is there a Specific reason for this , why mql5 does not have goto operator ?!

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
command " GO TO " is define in mql5 ?
if not ; how can do as same as it?