fxDreema

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

    Minutes before market closing

    Questions & Answers
    2
    3
    1212
    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.
    • tcanuto
      tcanuto last edited by

      Hello fxDreema. All right? As you can imagine, I am currently preparing to operate in the future market.

      I need to know with what I do to close all positions 5 minutes before the daily market closes. I researched and discovered the exact function for this, which is SymbolInfoSessionTrade - https://www.mql5.com/pt/docs/marketinformation/symbolinfosessiontrade.

      I also know that in Marketing Properties, in Symbol Trade Time (for Futures) says about the initial day until the contract expires, but I need to close every day 5 minutes before the daily close.

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

        This option applies for all symbols actually. It's interesting function, I will take a look at it. But why they decided to use "from" and "to" that way... If the function itself was made in a way to return the value you want, it would be easier to use it directly.

        If you are hurry, you can create your own function that uses this one, but returns the amount of minutes until the end of the session... if you know MQL4 a little bit đŸ™‚

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

          I still do not know MQL4.

          Wonder! I'll be waiting for this new feature. It will be very useful to me and I will be updating all my AEs.

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

          Online Users

          M
          Z
          S
          S
          T
          O
          G
          B
          A
          P
          I
          M
          M

          23
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors