Imadethis changeto change the statusof Afaleto true:
int A = false;
int N1 = 1+i;
A= Close[N1] < Sell;
//Indicator Buffer 1 Sell if (a1)
while
( A==false )
{ N1--;}
// AgainI can notexit the loop,then Iaddedthis optionbut theeditorgives meerror thatexpressionhas no effect:
{ N1--; N1 <= 10;} //expression has no effect
Imadethis changeto change the statusof Afaleto true:
Before you can code in MQL4, you should first learn how to code in general. A "while" loop is one of those basic things that you should learn how to use properly.
Here is a link on Wikipedia on the subject with a graphical flow diagram that might help you understand. It also shows how the "while" loop is used in many, many languages. Have a look at the one for C & C++ as that is the form used by MQL4 too.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
also you need an escape in case nothing will change it to true.
I made this change to change the status of A fale to true:
I'm sorry to be blunt, but it seems that it is impossible to help you.
We can't keep repeating the same thing over and over, you are just wasting the time of people that are trying to help you.
I made this change to change the status of A fale to true:
Before you can code in MQL4, you should first learn how to code in general. A "while" loop is one of those basic things that you should learn how to use properly.
Here is a link on Wikipedia on the subject with a graphical flow diagram that might help you understand. It also shows how the "while" loop is used in many, many languages. Have a look at the one for C & C++ as that is the form used by MQL4 too.
Also, here are a few links for sites that offer tutorials and learning for "C" that will also help: