" GO TO " is define in mql5 ?
command " GO TO " is define in mql5 ?
if not ; how can do as same as it?
use construction if - else
this is not completely enough .
the user friendly maybe like:
. . . if(...) GO TO STATION 999; . . . STATION 999; . . .
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() { }
You don't have to tell to "go to there or here", just tell the location.
© 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
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.
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.
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 ?!
command " GO TO " is define in mql5 ?
if not ; how can do as same as it?