fxDreema

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

    Skip a day

    Questions & Answers
    2
    7
    287
    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.
    • C
      Cameron101 last edited by

      Hi all. I have a bot that will set pending orders on hour after London open on the US 30. The problem I have is that I sometimes want to skip a day (for example when the UK is on holiday and the US is not. How would I write a block that for example would run on April 18th 2023 and not run19th of April 2023 and then resume on the 20th of April 2023. I have tried all time, filters, month day etc and searched all the forums however I can seem to get this going. Can anyone give me some advice?

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

        You can do if you are going to add the date manually, condition block date =! xxxx.xx.xx you need a constant that you can change the date in

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 1
        • C
          Cameron101 last edited by

          Thanks for the reply. I am still struggling to get this to work. Would you please take a look at my project? I have created a condition called test condition called testcondition and created a variable with the date however it still trades this day.

          shared/vdnKGR4Z

          Thanks so much for your assistance

          1 Reply Last reply Reply Quote 0
          • C
            Cameron101 last edited by

            Sorry this is the full link

            https://fxdreema.com/shared/MoCDKDDBd

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

              You need to get the date from custom code, the standard also includes time and probably in seconds, so was always different to your date. Run this on back test so you can see what this code returns: https://fxdreema.com/shared/p1K7AdsLb

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

              1 Reply Last reply Reply Quote 0
              • C
                Cameron101 last edited by

                That works. Thanks so much.

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

                  Your welcome

                  Learn fxDreema Without the Wait!

                  My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                  The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                  Don’t miss out

                  Click here➡️ https://mybook.to/fxDreema to get your copy today!

                  Enjoy! 😊

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

                  Online Users

                  S
                  D
                  H

                  19
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors