fxDreema

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

    Drawing lines at specific round numbers

    Questions & Answers
    4
    30
    2102
    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.
    • T
      tec.nacks last edited by

      Hey @ambrogio

      How you doing?

      Remember the logic you wrote about lines at round numbers ... so following up on that, I want to reset the lines when price closes below the last one and redraw a new set to the most recent price

      But the issue i see is that the number extension that is added to object names when more than one is drawn, increases also upon deletion and rewriting variables to zero.

      How can I have it such that the redraws restart from the initial number 1-10 depending on the number of lines drawn

      https://fxdreema.com/shared/uzTZsw4Sb

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio last edited by

        i think is better leave up from the name of the lines

        1 Reply Last reply Reply Quote 0
        • A
          ambrogio @tec.nacks last edited by

          @tec-nacks this is what i elaborated, but i'm pretty sure that someone else more good brain than mine can make the same with less blocks 😁

          Immagine 2025-01-17 162229.jpg

          Immagine 2025-01-17 161809.jpg

          Immagine 2025-01-17 162008.jpg

          Immagine 2025-01-17 162105.jpg

          Immagine 2025-01-17 162202.jpg

          T 1 Reply Last reply Reply Quote 0
          • T
            tec.nacks @ambrogio last edited by

            @ambrogio waow.. pls share the project link

            A 1 Reply Last reply Reply Quote 0
            • A
              ambrogio @tec.nacks last edited by

              @tec-nacks https://fxdreema.com/shared/30TPyXSab

              T 2 Replies Last reply Reply Quote 0
              • T
                tec.nacks @ambrogio last edited by

                @ambrogio thank you

                1 Reply Last reply Reply Quote 0
                • T
                  tec.nacks @ambrogio last edited by tec.nacks

                  @ambrogio Hey,

                  I realized that the lines are not exactly drawing in the rounded number anymore.

                  Why is that? And how can this be correct?

                  For example; if you place the EA on chart now it's likely you won't get the right rounded numbers 30mins later place it on another chart window, it will be different levels

                  How can we have it to be consistent across on a rounded psychological number ?

                  Especially for pairs like JPYs , GOLD, Cryptos

                  1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio last edited by ambrogio

                    it depends where the first psychological level is, assign a different color to the first line and you can see

                    T 1 Reply Last reply Reply Quote 0
                    • A
                      ambrogio last edited by ambrogio

                      https://fxdreema.com/forum/topic/4454/draw-horizontal-line-and-calculate-round-numbers-from-open-price/3

                      2025-01-22 191734.jpg

                      1 Reply Last reply Reply Quote 0
                      • T
                        tec.nacks @ambrogio last edited by

                        @ambrogio Yea, i figured that 0.01 will not work for some assets because of varieties of broker's tick size ... so I had to fetch the data out and adjust to the accurate round numbers but it's looking like the not so correct ones is doing the job better

                        Still checking though

                        Thanks

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

                        Online Users

                        H
                        A
                        S
                        M
                        A
                        L
                        G
                        N

                        23
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors