fxDreema

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

    Disable Trading At Market Open Only

    Questions & Answers
    3
    5
    1388
    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
      samachold last edited by

      Hi,

      How do I create a condition that stops all trades during say 00:00 and 05:00 (market time) on a Monday morning but allows trading all other times and days?

      I know about time, hour and day blocks but if you try you'll find they don't combine to restrict a block of hours on only one day while letting the trading happen freely the rest of the week.

      I might just have to disable all of Monday and let the EA trade the rest of the week but that is a loss of a whole days trading (versus just the first few hours).

      Cheers,

      Sam

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by josecortesllobat

        You should combine a "Weekday" & "Hours" filter block for that.

        0_1539075857549_4a9b3bc1-40bc-42c1-87ac-1a044411641a-image.png

        If Weekday == Monday && Hours == 00:00 - 05:00 -> No Trade (because there is nothing connected to the True output of the Hours filter)

        If Weekday is Monday && Hours is not 00:00 - 05:00, False output is activated on the Hours filter allowing to trade on Monday.

        If Weeday is not Monday, False output is activated on the Weekday filter allowing to trade the rest of the weekdays.

        It should work.

        S 1 Reply Last reply Reply Quote 1
        • S
          samachold @josecortesllobat last edited by

          @josecortesllobat

          Genius - thanks.

          Would you know of a way to create a drop down menu to select which day (or even days) the nominated No-Trade hours should apply to?

          Possibly a drop down list for the seven days of the week to choose "Allow/Reject' but preferably just one list of the seven days to nominate one day from.

          Regards,

          Sam

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

            You want such list in the EA input properties? I know that anyone can create enumeration that will appear there as a drop-down, but then only 1 value can be selected, not multiple.

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

              come to think of it (over night) i don't really need to select the day - just fix monday and then allow to set start and finish hours (using constants).

              No drop down list needed for these settings.

              I have programmed drop downs for some time frame inputs and money management inputs - these would be nice if FxDreema could do itself without the need to manually edit in metaeditor but it's no biggy!

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

              Online Users

              S
              O
              K
              M
              M
              C

              14
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors