fxDreema

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

    Buy and Sell Alternately

    Questions & Answers
    2
    6
    217
    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.
    • K
      kable0987 last edited by

      Hi, I have created my EA but would like it to enter a buy and follow my conditions but then not open another buy even if the conditions are met untill it opens a sell and follows the conditions again not opening any other sells untill a buy signal and so on. Appreciate your help. Thanks

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

        You can use flags or variables to stop EA from doing something until your conditions say taking a trade is viable.

        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
        • K
          kable0987 last edited by

          Thanks for the reply, but i am struggling to understand the variable and flag tabs. do they need to be linked in any particular order or can they lay separately? could you possibly give an example that I could play around with?

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

            Flags are easiest to understand, above buy/sell check the flag, in a separate tree set the flag true, and in another tree set the flag false. What you use to set the flag is whatever make a trade make sense. Once you have this together you can add a shared link and say what's mot working as expected.

            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
            • K
              kable0987 last edited by

              Sorry, im trying to follow what you have said and getting myself confused now. Are you able to make something up quickly for me to add and understand better please? having a hard time here brains hurting lol.

              1 Reply Last reply Reply Quote 0
              • K
                kable0987 last edited by

                i managed to do it just by putting a 'check type (last closed)' tab

                Thank you for your time

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

                Online Users

                D
                G
                D
                D
                T
                E
                P
                S
                A

                16
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors