fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Multiple alerts once arrow starts to appear

    Questions & Answers
    3
    4
    959
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mustafafr010 last edited by

      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

      1 Reply Last reply Reply Quote 0
      • vish
        vish last edited by

        You can use once per bar block with a higher time frame?

        1 Reply Last reply Reply Quote 0
        • M
          mustafafr010 last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Spuzy
            Spuzy last edited by Spuzy

            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.

            0_1557490295740_f80ddcda-22a3-4e14-a255-c58c9e475e24-image.png

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            P
            R
            S
            R
            E
            M
            P
            C

            20
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors