It's written, it's necessary for increasing the tenf. When the low bar of the current tenf coincides with the low bar of the current tenf, the cycle should be interrupted.
It is written that if the low bar of the currentfactor matches the low bar of the currentfactor, the cycle should be interrupted.
the switch is ok, it does what it should - increase thef
However, you are lazy and do not trust those who you ask, in this script by analogy the alert should return 15, but it will return 43200 (see the script below).
void start(){
int per=5;
switch (per) {
case1: per=5; // тут должны быть break;case5: per=15;//тут должны быть break;case15: per=30;
case30: per=60;//тут должны быть break;case60: per=240;
case240: per=1440;//тут должны быть break;case1440: per=10080;
case10080: per=43200;
}
Alert(per); //15 да уж нет 43200 почему?
}
Please do not criticize, but study.
If not, no one will want to have a dialogue with you and will continue the monologue!
Please, you don't understand mcule4, rephrase the question.
If there is a problem that you cannot solve, then ask for advice, but in a language that everyone can understand.
Let's put it this way:
- I need to find a pattern (repeating combination of candlesticks..bars) with three-bar binding on a certain timeframe (H1 is interesting), namely .....
And what do "crooked quotes" have to do with it, even if there aren't any at all? If they were flat, that would be different (just makes me laugh for some reason) ;)
The point is - it's looking for a minimum on the current timeframe, which is indicated on another timeframe - and there is either no such data or it doesn't match... Because MT4 does not build bars on higher timeframes from minutes... as for example in MT5...
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.
why do I need a break in the switch?
It's written, it's necessary for increasing the tenf. When the low bar of the current tenf coincides with the low bar of the current tenf, the cycle should be interrupted.
Read and learn https://book.mql4.com/ru/operators/switch
If the condition is not fulfilled the break will not work.
why do I need a break in the switch?
It is written that if the low bar of the currentfactor matches the low bar of the currentfactor, the cycle should be interrupted.
the switch is ok, it does what it should - increase thef
However, you are lazy and do not trust those who you ask, in this script by analogy the alert should return 15, but it will return 43200 (see the script below).
Read and learn https://book.mql4.com/ru/operators/switch or see EXAMPLE below (practical).
Please do not criticize, but study.
If not, no one will want to have a dialogue with you and will continue the monologue!
Picture
Please, you don't understand mcule4, rephrase the question.
If there is a problem that you cannot solve, then ask for advice, but in a language that everyone can understand.
Let's put it this way:
- I need to find a pattern (repeating combination of candlesticks..bars) with three-bar binding on a certain timeframe (H1 is interesting), namely .....
"We'll see about that in the morning...
and in the hover there will be... because of inconsistent data on different TFs... the quotes seem to be out of whack in the database...
no problem :) -
And what do "crooked quotes" have to do with it, even if there aren't any at all? If they were flat, that would be different (just makes me laugh for some reason) ;)