fxDreema

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

    Stop 2nd trade in same direction / signal. (Wants one trade in each direction)

    Questions & Answers
    2
    9
    276
    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
      Safeer992 last edited by Safeer992

      hi

      https://fxdreema.com/shared/vZqVX7OUb

      My demo EA is opening 2nd trade in same direction after TP reached,

      I need EA not to open second trade in same direction and wait Candle to close opposite direction of MA for searching new trade.

      Current Scenario:
      Open trade when
      candle above ma 200 and RSI is above 700_1653149209418_Error.PNG

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

        @safeer992 There are various ways, the easiest is probably, every time a trade is placed turn off the flag and turn on another, when the oposite trade is placed turn on/off the opposite flags, this will make the EA buy then sell then buy then sell etc.

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

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

          @jstap thank you so much for your valuable reply.

          Where is the flag block for MT5!

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

            @safeer992 On the left in green, easiest is the bool true/false flag.

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

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

              @jstap thank you so much
              I am little confuse. Should i add flag block on start or on end because i am new to usage of this block.
              Further, do i need variables for add flag block on this EA

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

                @safeer992 Above buy/sell check flag, below buy/sell set flags.

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

                S 2 Replies Last reply Reply Quote 0
                • S
                  Safeer992 @jstap last edited by

                  @jstap Thanks

                  I added the flags but I think i select wrong criteria.
                  It is only buying at 1st opportunity and then not taking any trade. Not on buy side nor on sell side.

                  https://fxdreema.com/shared/MFDbF6cGd

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

                    @jstap I think I got it.
                    Let me test and will advise

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

                      @safeer992 Set them like this.

                      0_1653160720395_ac9dc4b8-1ab2-4588-9beb-aa6f94d3b8f1-image.png

                      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

                      X
                      J
                      A
                      N
                      S
                      E
                      A
                      M
                      T
                      M

                      22
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors