fxDreema

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

    For each Closed Trade no working?

    Questions & Answers
    3
    9
    1174
    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.
    • S
      smajbr last edited by

      I'm trying to use the block "For each Closed Trade " en bloc then the formula > in loop > close team.
      to find the time to bo last closing trade
      unsuccessfully

      ......
      imagem.JPG

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

        I tried this thing and it works for me. But it depends on the datatype of the variable. For Time it's "datatime" normally. What do you want to do with that value?

        1 Reply Last reply Reply Quote 0
        • S
          smajbr last edited by

          I want to compare the last trade closing time with the opening trade today

          1 Reply Last reply Reply Quote 0
          • S
            smajbr last edited by

            After trying about 4 different ways I finally finished otherwise hope not to miss the form posted in the forum. But if they finish the forum with a solution to this problem I'll thank very
            hugs

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

              There is pink block "check age", otherwise I would not use Formula blocks, directly using this value in Condition should be enough

              1 Reply Last reply Reply Quote 0
              • S
                smajbr last edited by

                You mean the (Check age ) ? I tried to use it , but it indicates age.
                eg
                It remained for 1 hour, 10 seconds , 30 days ....
                enough already that I would like to know the closing time only
                I am wrong?

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

                  The closing time is easy, somewhere in Condition - (in loop)... or directly with OrderCloseTime(). But this is unix format - the number of seconds since 1.1.1970 http://www.epochconverter.com/

                  1 Reply Last reply Reply Quote 0
                  • M
                    MetaTrader last edited by

                    I emailed to you....
                    I have almost the same problem. OrderCloseTime returns an unix Time Stamp. To compare this time later on with the current server time we need to convert wether the close time in a dateTime or the dateTime in a unix ts.
                    Is there any blöock for that?

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

                      There are obviously 0 blocks for converting, otherwise you will see some category called "Converting" or something.

                      It looks that now I must think for these things as well... Anyway, just in case, there are some native conversion functions like this one - https://www.mql5.com/en/docs/convert/stringtotime

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

                      Online Users

                      B
                      A
                      J
                      D
                      E

                      22
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors