Flags switching value
-
Evening, i regret that i have to open a new topic for such a simple thing, but as i didn't found any response to that in any categories of the forum, i hope it will be useful to the others.
I'm building an EA using Fibonacci method, and used "set flag" and "check flag" blocks, to separate respective conditions, in time.
Once conditions pointing to "set flag" are validated the new boolean value is "true" and it passes to the "check flag" fixed on "true" as well. But this "true" value stays like that, until, you change it by yourself i guess. It continues running blocks below the "check flag" until you do it, but how ?
Aswell, before the "set flag" passes first time, is its value "undefined", or "false" ?
Thanks -
@seb-0 I've never used flags, they are not necessary if you use variables.
Just make some (boolean) variables and set their values to TRUE/FALSE (or 1/0) according the logic. -
I concur with roar. Dealing with variables mey be more clumsy initially, but I strongly recommend you to use them That will empower you in your later projects.
-
@roar
@l-andorrà
You right i managed to do with variables in 30 minutes, what i was trying to do with flag since few days..
Thanks for the advice