Friends, help a dummy. The idea is as follows: When the "Ind" variable reaches the set level, switch to waiting for "Value" to change direction while waiting for "Ind" to no longer reconcile.
Friends, help a dummy. The idea is as follows: When the "Ind" variable reaches the set level, we switch to waiting for "Value" to change direction, without checking "Ind" again while waiting.
Глобальные переменные создаются путем размещения их объявлений вне описания какой-либо функции. Глобальные переменные определяются на том же уровне, что и функции, т. е. не локальны ни в каком блоке. Область видимости глобальных переменных - вся программа, глобальные переменные доступны из всех функций, определенных в программе...
Friends, help a dummy. The idea is as follows: When the "Ind" variable reaches a given level, we switch to waiting for "Value" to change direction while waiting for "Ind" not to be checked again.
What is the right way to do it???
Are you sure that the indicator is recalculated during the while loop?
Friends, help a dummy. The idea is as follows: When the "Ind" variable reaches the set level, switch to waiting for "Value" to change direction while waiting for "Ind" to no longer reconcile.
What is the right way to do this?
replace by
...
...
Please insert code correctly:Insert code correctly on the forum
Friends, help a dummy. The idea is as follows: When the "Ind" variable reaches the set level, we switch to waiting for "Value" to change direction, without checking "Ind" again while waiting.
What is the correct way to do it???
I think there is a mistake here :
It has to be:
I think there's a mistake here:
It has to be:
Where on the keyboard is the paragraph symbol? I thought it had been disabled...
I think there's a mistake here:
It should be:
replace with
If I did the right thing (which is doubtful) it hangs, apparently it won't come out of cycle.
Tried it, same thing. When Ind exceeds level, it hangs.
1. Make bool pravda global.(https://www.mql5.com/ru/docs/basis/variables/global)
2. Replace while with if.
3. When if (from step 2) works, return pravda=false.
Friends, help a dummy. The idea is as follows: When the "Ind" variable reaches a given level, we switch to waiting for "Value" to change direction while waiting for "Ind" not to be checked again.
What is the right way to do it???