fxDreema

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

    How to stop EA trading after it hits x% profit and resume next month?

    Questions & Answers
    2
    4
    534
    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
      shingi94 last edited by

      I want my EA to do the following once x% profit is reached each month:

      • Close open and pending orders

      • Turn off buy and sell blocks

      • Resume trading the following month.

      I understand the basic logic but I'm not sure which time filter to use and how to link the blocks. Thanks in advance!

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

        @shingi94 At the start of the month (once per monthly bar) use a formula block to / balance by 100 and multiply by chosen percent (use a constant if you want this changeable) and put this in a variable, use this variable in a check profit (period of time)=> than variable, before trade (buy/sell) use the same block with < variable.

        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
        • S
          shingi94 last edited by

          Thanks! Just implemented this, working perfectly

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

            @shingi94 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

            E
            B
            A
            N
            L
            A
            M
            E

            24
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors