Multiple alerts once arrow starts to appear
-
Hello..
Once my indicator detects a new trend it draws an arrow but continues to draw the same arrow for the next 5 to 10 candles.
My EA sends me the same alert until the arrow stops from appearing.
How can i instruct my EA only to alert on the first arrow and ignore the rest and then wait for a new batch and take only the first arrow again?
Many thanks
-
You can use once per bar block with a higher time frame?
-
The signal is on M5 TF only.
Even if i use once per bar then the next bar also has the signal info, so i get an alert for the second bar as well.
-
make a bool variable, once the arrow block fires put that variable to false. before the draw arrow and alert block put a condition block that will fire only if the variable is true. then on your main condition block make the variable go true once the yellow dot fires aka the condition is false.
doing this will register that your main condition was true the first time it fires. then it will stop your draw arrow or alert block form firing till the condition isn't true anymore and then it will allow it on the next run.
