fxDreema

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

    Indicator notifying about the price level

    Questions & Answers
    2
    7
    734
    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.
    • L
      Lomcio last edited by Lomcio

      Hello. I created a simple indicator.
      link text
      The principle of operation is simple:

      The indicator is to inform when the price exceeds the EMA 20 or EMA50 from the top or bottom, in addition, it is to inform about the arrangement of these EMAs, long or short but only once per candle to avoid continuous notifications.

      The problem is that the price exceeds the EMA and does not get notification, for example in the photo, the price has exceeded the EMA 20 from the bottom and no notification.

      0_1617807915587_EMAPRICE.png

      1 Reply Last reply Reply Quote 0
      • L
        Lomcio last edited by

        I deleted the "Once per bar" blocks and it only works that the notification comes every second, it is tiring, how to make 1 notification come per candle?

        M 1 Reply Last reply Reply Quote 0
        • M
          miki @Lomcio last edited by

          @lomcio https://docs.mql4.com/common/alert

          Alert() function does not work in the Strategy Tester. If you see in the journal it's write:
          0_1617824346650_Immagine.png

          L 1 Reply Last reply Reply Quote 0
          • L
            Lomcio @miki last edited by

            @miki I threw it in the tester and it also popped up.
            The general problem is that when the price is close to a given EMA on the M5, the price exceeds this EMA from the bottom and top several times during those 5 minutes. I get a notification every second.
            I would like during the formation of the candle, when the price exceeds the EMA, regardless of which side it came from, that one notification was sent, and the next only when the next candle formed.

            1 candle = 1 notification

            0_1617867935450_alertetster.png

            M 1 Reply Last reply Reply Quote 0
            • M
              miki @Lomcio last edited by

              @lomcio once per bar block is required

              L 1 Reply Last reply Reply Quote 0
              • L
                Lomcio @miki last edited by

                @miki Fixed, figured out why it wasn't working.
                Well, I moved the "Once per bar" block in front of the "Alert message" block.
                Previously, "Once per bar" covered all conditions, now only displaying messages.

                M 1 Reply Last reply Reply Quote 0
                • M
                  miki @Lomcio last edited by

                  @lomcio well done

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

                  Online Users

                  S
                  A
                  R
                  B
                  N
                  M
                  A
                  T
                  V
                  M
                  A
                  A
                  R
                  S

                  33
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors