fxDreema

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

    Line Alert

    Questions & Answers
    0
    10
    878
    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.
    • B
      Bandito7 last edited by

      Hello!
      I would like to receive an alert for each line. But for some reason it doesn't work. What could be the problem? Please help me!
      https://fxdreema.com/shared/RXkzNfFrb0_1674254400743_MT5.jpg

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @Bandito7 last edited by

        @bandito7 I think you would be better drawing a horizontal line on 0, not sure how this trend line option works.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • B
          Bandito7 last edited by

          Thanks!
          How can I filter dashed line "for each object"?

          fxDreema 1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema @Bandito7 last edited by fxDreema

            @bandito7 Not in "For each Object", but after that in Condition you can check the style. However, it's not very intuitive, because you have to know the constant of the style of the line. Take a look:

            https://fxdreema.com/shared/uggHdlLbd

            Make a horizontal line on the chart, set its style, run this EA (the blocks are in Init, so it works more like a Script) and if there is a dotted line, it will alert a message.

            You can see I used a constant named STYLE_DOT. There are tons of predefined constants like this in MQL, for different purposes. In this particular case, there are 5 constants for line style. Here they are:

            https://www.mql5.com/en/docs/constants/indicatorconstants/drawstyles#enum_line_style

            STYLE_SOLID - Solid line
            STYLE_DASH - Broken line
            STYLE_DOT - Dotted line
            STYLE_DASHDOT - Dash-dot line
            STYLE_DASHDOTDOT - Dash - two points

            As integer values, I can assume that STYLE_SOLID is 0, STYLE_DASH is 1 and so on... but they didn't follow this rule everywhere.

            If for some reason you want to make a Constant (input parameter), make it like this:

            0_1674495617451_5bbcc5df-97a1-4049-8e9d-5f7775f05b02-image.png
            Here the data type is ENUM_LINE_STYLE (not fully visible). You can see this type name just above the table of 5 line styles in the link above.

            1 Reply Last reply Reply Quote 0
            • B
              Bandito7 last edited by

              Thank you Administrator!
              Can you help me? Why is none of them giving a signal? When I put it on the chart, sometimes it beeps, sometimes it doesn't. Nothing after that. Please help me make one that indicates the purple lines (trend by angle).
              https://fxdreema.com/shared/o0HO5EZHd

              1 Reply Last reply Reply Quote 0
              • B
                Bandito7 last edited by

                This way I get a continuous beep, so it works. If I add any two blocks, it doesn't work. How to condition it with another block to indicate when the line is crossed?
                https://fxdreema.com/shared/ENkfkYvWb

                l'andorrà 1 Reply Last reply Reply Quote 0
                • l'andorrà
                  l'andorrà @Bandito7 last edited by

                  @bandito7 You should select 'horizontal line' instead of 'trendline' option. That will make available the 'proce level 1' option that will allow the block to identify the crossing.

                  (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                  (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                  (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bandito7 last edited by

                    It doesn't work with horizontal lines either. Surely there is a solution to this.

                    roar 1 Reply Last reply Reply Quote 0
                    • roar
                      roar @Bandito7 last edited by roar

                      @bandito7 try with these 4 changes. You should also check the actual object type from your objects list on the chart.
                      0_1674744655411_2f69dd66-4f3a-4f65-bd61-5640bfc3e796-image.png

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bandito7 last edited by

                        Thank you very much!!!!!!!!!!!!!! He is working!!!!!!!!!!

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

                        Online Users

                        N
                        E
                        M
                        C
                        F
                        S
                        S
                        S
                        K
                        P
                        E

                        21
                        Online

                        146.8k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors