fxDreema

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

    Bug? Draw Line Block using time component for the price

    Bug Reports
    2
    6
    1517
    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.
    • A
      albyxx last edited by

      Hi Dreema,

      I believe there is a bug in the Draw Line block when drawing a trend line.
      It may occur for other line types but I have not tested them.

      The problem is produced when using Market Properties -> Highest Price or Lowest Price (Time Period) -> Server Time for the price components.
      The block is returning Local Time instead of Server Time when Server Time is requested.
      The below link can be used to produce the "bug"
      https://fxdreema.com/shared/XRrbApaYd

      To produce the problem simply change your PC date and the line is redrawn to reflect the local PC time instead of server time.

      Could you please have a look at this.

      Thanks,
      Allan.

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

        Nice observation 🙂 I think I fixed it

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

          Hi Dreema,

          Thanks for the reply.
          I made a new test EA and as far as I can tell it is still reading local time, not server time.

          https://fxdreema.com/shared/kT3LjTRUb

          The old blocks are on the left and the new blocks are on the right.
          This time the bug can be reproduced by changing the PC time, not the date.

          Cheers,
          Allan.

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

            I will try to fix this tomorrow

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

              I made some changes. It turned out to be tricky. I used one native function StringToTime() and I expected that it works with the server time, but no, it works with the local time. So I created another function that hopefully will work better, but who knows.
              Also, the native GMT functions are also linked with the local time.

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

                Looks like you've nailed it Dreema.

                Thanks!!! 🙂

                By the way, by creating this builder and giving the ability for non-programmers to build EA's is absolutely wonderful.
                Well done indeed!! 😄

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

                Online Users

                K
                C
                E
                M
                F
                T
                M

                20
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors