fxDreema

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

    Server Time

    Questions & Answers
    2
    7
    1452
    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
      Trader3487 last edited by

      I added a comment block with Market Properties > Time (Current) > Server Time in order to display the current server time at each tick but it is printing values like this: 1236049513 instead of the actual time.

      Any ideas?

      Thanks 🙂

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

        This is the UTC (integer) format of the time. I don't know for the new MT4, the old one is doing this - outputs the time in it's integer form, but MT5 converts it in human readable format, so because now MQL4 is similar to MQL5 I think it's possible to do the same.
        Otherwise to convert this time format to human readable format this function is used: http://docs.mql4.com/convert/timetostr ... but directly into Comment block try this: http://prntscr.com/2r7i95

        1 Reply Last reply Reply Quote 0
        • T
          Trader3487 last edited by

          ok great, I'll give it a try

          1 Reply Last reply Reply Quote 0
          • T
            Trader3487 last edited by

            ok, it's sticking now but unless I forgot something the dynamic values are not working like they did before (I had gotten them working correctly) as discussed in this forum post: topic/2114

            I tried using different variations of +TimeToStr(TimeCurrent()) to no avail: http://fxdreema.com/shared/ce0AX4jbc

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

              I think that "+function+" is not working long time ago, what worked is ""+function+"" with double ", but these are tricks and I don't pay big attention to them 🙂 And at the end it's all my fault because tricks are used when there is no normal way to do it 🙂

              1 Reply Last reply Reply Quote 0
              • T
                Trader3487 last edited by

                thanks - working again now! When do you plan to update the desktop version?

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

                  Uploaded

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

                  Online Users

                  E
                  S
                  N
                  O
                  M

                  18
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors