int a = 2;
int b;
double StopLoss = Low[a];
for(b=3;Low[b] < StopLoss;a++)
{
b++;
Alert("Стоп = ",StopLoss);
}
There are six rising candlesticks, this loop is supposed to assign to the variable StopLoss the value of minimum, as long as the previous minimum is lower, but this loop does not work, for some reason it reaches only the third one.
sss2019: Why? Is it not allowed to ask about the code here? I think I'm putting everything in one thread on purpose so as not to clutter it up
Vladimir, you don't need to create a new thread for that. There is a branch for newcomers, go there and write. You will find more experienced people there.
I wonder if I'm just beginning to learn what level of questions I should have, like a pro.
you see, the beginning of a question is like "this cycle should be ...." and the end is ".... but this cycle doesn't work". is at most an answer to "what are you doing here, boy? Are you playing with toys or programming?"
I am trying to make it clear that you are able to get answers to these questions on your own. The developers have given you the Print and Comment tools to do this. It is your task, as a programmer, to look for and catch errors. Everybody spends 50% of their coding time on it. You must be able to do it and learn to do it first of all. Otherwise you'll just be begging for answers from passersby.
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.
Ah I see, but somewhere I've seen a condition like mine. And how do I make the condition to be fulfilled after opening an order?
Thank you. How do I view the Magic Number of open orders in the terminal?
And how and in what format should I set the expiry date of the order, please advise, because I have some errors
Why does this loop not work?
There are six rising candlesticks, this loop is supposed to assign to the variable StopLoss the value of minimum, as long as the previous minimum is lower, but this loop does not work, for some reason it reaches only the third one.
Why? Is it not allowed to ask about the code here? I think I'm putting everything in one thread on purpose so as not to clutter it up
Your questions are of schoolboy level. I don't recommend it.
You have schoolboy-level questions. I don't recommend that level.
I wonder if I'm just starting to learn what level my questions should be, a pro or something.
I wonder if I'm just beginning to learn what level of questions I should have, like a pro.
is at most an answer to "what are you doing here, boy? Are you playing with toys or programming?"
I am trying to make it clear that you are able to get answers to these questions on your own. The developers have given you the Print and Comment tools to do this. It is your task, as a programmer, to look for and catch errors. Everybody spends 50% of their coding time on it. You must be able to do it and learn to do it first of all. Otherwise you'll just be begging for answers from passersby.