fxDreema

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

    **EA Trading Logic: One Trade Per 4H Candle (No Re-entry After Take Profit)

    Questions & Answers
    4
    10
    41
    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.
    • stonegoldtz
      stonegoldtz last edited by

      I was unable to succeed in what I was trying to understand, so I am asking if someone can help create a solution for me.

      My issue is that I need the EA, after placing a trade on a 4-hour candle, to stop trading again on that same candle even if the order closes by take profit. It should only wait and trade when the next candlestick appears.

      I was given some instructions, and I managed to build it like this, but it is not working. May I get some assistance?

      https://fxdreema.com/shared/FuvCKAbnd

      b6f31a7e-386a-49af-8b90-55808a0aa0b5-image.png

      פוקפורקס Ltd

      A 2 Replies Last reply Reply Quote 0
      • A
        ambrogio @stonegoldtz last edited by

        @stonegoldtz should work this way

        Immagine 2026-04-18 113819.png

        remove all blocks in "on trade" tab

        stonegoldtz 1 Reply Last reply Reply Quote 0
        • A
          ambrogio @stonegoldtz last edited by

          @stonegoldtz also this way

          Immagine 2026-04-18 123859.png

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

            This depends on what you mean by re-entry, if you mean wait for a new signal, you will need to set a flag for the signal.

            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
            • stonegoldtz
              stonegoldtz @ambrogio last edited by

              @ambrogio

              What I want is this:

              The EA can place multiple orders within a candle if conditions are met.
              However, if any order is closed by Take Profit, the EA should stop placing new orders for the rest of that candle.
              It should then wait until a new candle opens before allowing new trades again.

              In short, I only want to block trading after a Take Profit is hit, not after every order placement.

              פוקפורקס Ltd

              A 1 Reply Last reply Reply Quote 0
              • A
                ambrogio @stonegoldtz last edited by

                @stonegoldtz

                Immagine 2026-04-18 163921.png

                Immagine 2026-04-18 164020.png

                In on trade it check positive result
                Block #87 check the profit before any trade
                Once per bar H4 resets profit variable
                Please, check it

                https://fxdreema.com/shared/J4bGOXYyc

                stonegoldtz 1 Reply Last reply Reply Quote 0
                • stonegoldtz
                  stonegoldtz @ambrogio last edited by

                  @ambrogio Thank you very much, brother. I’ve succeeded. Be blessed.

                  פוקפורקס Ltd

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @stonegoldtz last edited by

                    @stonegoldtz you're welcome!

                    1 Reply Last reply Reply Quote 0
                    • R
                      RICHAGRIPPA last edited by

                      I need help with an EA that opens multiple positions for scaling, for I am a buyer position trader

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

                        @RICHAGRIPPA Start a new question for this and say what you want yore EA to do...

                        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

                        H
                        J
                        E
                        T
                        E
                        B

                        17
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors