an If Loop New comment Louis Stoltz 2008.02.15 12:00 Hi I need some help on coding in mql: for(int x=0;x<2;x++) { if( ( var < i ) && ( var > z ) ) || } I need to create a long if statement with a for loop. I want to end up with ie. if( ( var < i ) && ( var > z ) ) || ( var2 < i ) && ( var2 > z ) || ( var3 < i ) && ( var3 > z ) ){ do this } I have not Idea how to put it together like this in mql or if its even possible. Strategy tester Multidimensional on the Second Dimension CSV Signals how to read LesioS 2008.02.15 13:47 #1 if(....) { do_this; break; } Louis Stoltz 2008.02.15 14:17 #2 Not what I meant but its cool I found an alternative route. int m=0; for(int x=0;x<2;x++) { if( ( x < i ) && ( x > z ) ) )m=0; } New comment
I need to create a long if statement with a for loop.
I want to end up with ie.
I have not Idea how to put it together like this in mql or if its even possible.