fxDreema

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

    Automatic Stop for the day and Restart next day

    Questions & Answers
    3
    8
    894
    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.
    • B
      Bogdaiki last edited by

      Hello,

      Is there a way to automatically stop the EA for the day (say at a percentage of profit hit) then restart next day?

      I can only do this with the Terminate function (with a Variable setup and a Once a Day condition to close all trades when Variable value is hit) - but would have to restart manually next day.

      The problem is we can't backtest this..

      Any suggestion would help. Thank you!

      B

      screenshot-fxdreema.com-2023.09.18-14_46_26.jpg

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

        Instead of terminate use a flag, reset once a day and check above buy sell, if you want you can close all trades when you set flag false.

        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! 😊

        B 1 Reply Last reply Reply Quote 0
        • B
          Bogdaiki @jstap last edited by

          @jstap said in Automatic Stop for the day and Restart next day:

          Instead of terminate use a flag, reset once a day and check above buy sell, if you want you can close all trades when you set flag false.

          Thank you J! Been looking for this for so long.. I hope I set it up correctly, seems to work, I gotta test further. screenshot-fxdreema.com-2023.09.18-16_36_34.jpg

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

            That should work perfectly, if you have problems, set once per day to act over a minute, just ensures a tick happens to cause the reset. You likely do not need the once per day to set flag to off.

            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
            • B
              Bogdaiki last edited by

              Yes, I have the ON Once a Day setup at 1:05.

              I have the flag OFF setting because I assumed that if condition is met (Equity > Target), it will close all positions and take take the profit, but then will continue to enter trades if the other criteria is met (as flag would still stay ON). I wanted it to completely stop trading for the day. Am I wrong?

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

                Ok but do you want a condition to set it or time? If you add a shared link inside blocks can be looked at

                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
                • B
                  Bogdaiki last edited by

                  I want a condition to set it to OFF for the rest of the day, and time to ON at the start of next day. Trades are only taken if ON.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fana tumi last edited by

                    Hi guys I created a robot is opening trades but is not closing when it's time to close I need help

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

                    Online Users

                    A
                    E

                    15
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors