fxDreema

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

    BUG get candle Time

    Bug Reports
    2
    7
    1441
    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.
    • O
      owneroxxor last edited by

      What the heck is this time I'am getting from the ID 0 Candle?
      http://prnt.sc/ago42o
      I need the Candle's hour. I'am using hour charts, how could I do?

      ty

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

        I will try to do something with Value -> Time. But Candle Time always appears as a numeric value, because... it's hard to explain

        1 Reply Last reply Reply Quote 0
        • O
          owneroxxor last edited by

          how can I read this numeric value? I didnt figure it's pattern. Like, for 11h candle, what is the number? 😎

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

            http://www.epochconverter.com/

            In a program it's easier to deal with such a number. Of course, you don't understand it, you have to convert it as a string for your eyes. I just did that for the **Alert **block. If the input value has data type such as datetime, which is the case in Value -> Time, then in the **Alert **block this value will be converted to string. But for Candle Time, the problem is that all values in this category have the same data type - double

            1 Reply Last reply Reply Quote 0
            • O
              owneroxxor last edited by

              Dreema, is there a way to edit a text time variable, inside fxDreema like:

              "2016.12.11 17:24"

              I want just the 17.

              thanks!

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

                Conversions are not easily possible in fxDreema. But you want the current hour, use this function - https://docs.mql4.com/dateandtime/hour - just write Hour() where you need it.

                1 Reply Last reply Reply Quote 0
                • O
                  owneroxxor last edited by

                  Wow!!!

                  Exactly what I wanted

                  thanks.

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

                  Online Users

                  G
                  M
                  K

                  14
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors