fxDreema

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

    (Solved) How to stop horizontal Line from dynamic moving after someting happen.?

    Questions & Answers
    3
    12
    1152
    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.
    • J
      JobotGold1 last edited by JobotGold1

      Hi.
      I have a problem to stop horizontal Line from moving. Please Help

      • My 2 Hori Line (as seen in the orange box in the chart) I gave them some distance Highest and Lowest price of current day if the Highest and Lowest price have changed the lines will move to keep the distance. (the value of distance changes everyday)

      ** I want to Stop them Both from moving at current price " when the current price Hit one of them either Up or down Hori line and then change the color of them both to notice that one of them are hitted" ...

      0_1631372949635_1631372888150.jpg

      Thank you I am looking forward for your help.

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

        @jobotgold1 Not completely sure what you mean. If those lines are supposed to be set a specific distance every day it is obvious that the will move every day according to new prices today. When are those lines supposed to be 'stopped' exactly?

        (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.

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

          @l-andorrà

          Apologize for unclear writing. I am from Thailand and not so good at English .

          I will explain the line strategy now .

          The up line and down line made from The ADR (Average Daily Range) calculated by last 14 daily candles to find the Average Range the graph move in one day in pips.

          @Condition1
          When I got the Average daily Range in pips..
          It will draw 2 Hori lines.

          THE UP LINE made from Today's Lowest price +plus ADR (pips)

          THE DOWN LINE made from Today's Highest price -minus ADR (pips)

          #Delete both of them at 22.00 sever time everyday
          #This condition will start at 01.00 am server time everyday

          V
          V
          V
          "The problem is" I want to stop these 2 lines immediately when price hit one of the lines and change their color.
          And then delete them both at 22.00 server time

          Tomorow it will start run @condition1

          I also try to delete them and draw new line instead at the old lines point. But it is not working as picture in the next comment.

          Thanks for your responding.

          jstap J 2 Replies Last reply Reply Quote 0
          • jstap
            jstap @JobotGold1 last edited by

            @jobotgold1 The logic you have written should work, you can use custom code to change colour but this can be difficult and depends on weather MT4 or MT5, if you put a shared link here someone can look and see what's happening.

            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! 😊

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

              @jstap Ok I am going to share Thank you

              1 Reply Last reply Reply Quote 0
              • J
                JobotGold1 @JobotGold1 last edited by JobotGold1

                @jobotgold1 said in How to stop horizontal Line from dynamic moving after someting happen.?:

                @l-andorrà

                Apologize for unclear writing. I am from Thailand and not so good at English .

                I will explain the line strategy now .

                The up line and down line made from The ADR (Average Daily Range) calculated by last 14 daily candles to find the Average Range the graph move in one day in pips.

                @Condition1
                When I got the Average daily Range in pips..
                It will draw 2 Hori lines.

                THE UP LINE made from Today's Lowest price +plus ADR (pips)

                THE DOWN LINE made from Today's Highest price -minus ADR (pips)

                #Delete both of them at 22.00 sever time everyday
                #This condition will start at 01.00 am server time everyday

                V
                V
                V
                "The problem is" I want to stop these 2 lines immediately when price hit one of the lines and change their color.
                And then delete them both at 22.00 server time

                Tomorow it will start run @condition1

                I also try to delete them and draw new line instead at the old lines point. But it is not working as picture in the next comment.

                Thanks for your responding.

                It is MT4
                My 2 delete lines methods which are not working . the lines still same lines not deleted and not creating the new line after hitted.

                • https://fxdreema.com/shared/UrbRYd1Kb
                • https://fxdreema.com/shared/AcIgSdcKc
                jstap 1 Reply Last reply Reply Quote 0
                • jstap
                  jstap @JobotGold1 last edited by jstap

                  @jobotgold1 Have a look in HERE you'll see a few things I've added that are probably of use to you, not sure why your constants/variables didn't copy but you'll get the idea, I've not tested any. The reason why your versions weren't working is because your condition was expecting a candle to close exactly on a line, a quite unlikely situation.

                  ||||On a side note, I will put conditions into a boolean variable and place in a comment so I can visually check what is or isn't working. Hope this helps

                  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! 😊

                  J 2 Replies Last reply Reply Quote 0
                  • J
                    JobotGold1 @jstap last edited by

                    @jstap Thank you so much .. But I think it doesn't work . I tried many ways by your helping Example shared. but it doesn't work I really don't know what I missed.
                    Here are the hole project share link :
                    https://fxdreema.com/shared/YpQj56LVc

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

                      @jstap This one Worked !!! https://fxdreema.com/shared/GTYhPegFc
                      Thank you so much for you help . But I Converted into MQL5 and delete objects must contains the line color and adjust some on and off block.

                      By the way... I have learned something new from you . I am very new to FXDREEMA and learning by searching other's problem in the forum.

                      Thanks again

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

                        @jobotgold1 LINK, I couldn't get the custom code (strange because this work's on buttons I use) changing the line, but it works in a similar way to your buttons. You had the lines being drawn two ways and this was causing a name confliction, have not completed all to get working but have done enough for you to see what you need to do, check names because I changed a few just to get working, also changed style, just for visual effect.

                        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! 😊

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

                          @jstap Ohhh Thank you so much ^^

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

                            @jobotgold1 Your welcome

                            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
                            • 1 / 1
                            • First post
                              Last post

                            Online Users

                            N
                            C
                            F
                            N

                            10
                            Online

                            146.8k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors