fxDreema

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

    Not allowed to trade after and before a specific hour

    Questions & Answers
    3
    8
    1650
    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.
    • D
      DGRL last edited by

      Dear forum members

      made a block that will close all open trades at lets say 21:30
      How can i make my EA that it will not open a new trade after 21:30 and lets say before same or next day 08:00?

      Thanks in advance

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

        0_1557562275305_Screenshot_1.png

        1 Reply Last reply Reply Quote 0
        • D
          DGRL last edited by

          LOL
          Feel ashamed for not seeing this earlier LOL

          1 Reply Last reply Reply Quote 0
          • D
            DGRL last edited by DGRL

            It needs to allow from sunday evening 23:30 until friday eveninf 21:30
            Between friday 21:30 and sunday 23:30 not

            0_1557564517334_8e09988d-84f2-44e5-95be-4cc809ef6d2f-image.png

            1 Reply Last reply Reply Quote 0
            • D
              DGRL last edited by

              @vish

              Solved it like this

              0_1557567417473_5b006455-5761-4b5d-a776-80f390211304-image.png

              1 Reply Last reply Reply Quote 0
              • D
                DGRL last edited by

                @vish

                How about this?
                0_1557576269725_b1cc50a6-36b5-49ce-b1f6-6e326071cdae-image.png

                1 Reply Last reply Reply Quote 0
                • D
                  DGRL last edited by

                  Or maybe instead of a time filter i wil use a condition filter
                  if server time is above timestamp then ...

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

                    If you want to make very custom rules and using less blocks, you can always use some of the MQL4 time functions (https://docs.mql4.com/dateandtime) in the second Condition block

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

                    Online Users

                    A
                    D
                    E
                    N
                    N
                    F
                    M
                    A
                    L
                    O

                    19
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors