fxDreema

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

    Closing one (only) of multiple open trades when specific event occurs for that one trade

    Questions & Answers
    4
    8
    155
    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.
    • L
      lew.sarten last edited by

      Hi all,
      I'm very new to this and was hoping someone could help me with which blocks I should use to achieve the following:

      1. I have no issues with how I get into my trades.
      2. My strategy means I might have multiple trades open on the same chart at any one time.
      3. If the moving average is 'equal to / or greater than' the open price of a trade, then close that trade only.

      Any help would be much appreciated.
      (please remember I'm a rooky with no coding experience but can think logically).

      Cheers
      cf5b722d-f639-4c58-9941-6609d10cc7cf-image.png

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

        Is the trade to close the only trade above/below a moving average value?

        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
        • L
          lew.sarten last edited by

          Hi, yes I think that's what I'm after. If MA > 'trade entry price' then close that trade only.
          I wonder if it should be something like the below?

          • With "for each trade' set from oldest to newest.
          • and condition set to MA => Trade entry price (it this bit im really not sure about)
          • close
            So in my mind this would check each trade one by one and if the criteria is met, it would close only the trade that meets that criteria.
            Am I close? or is there a better way?
            Much appreciated
            image.png
          VHV-Profit-Masters 1 Reply Last reply Reply Quote 0
          • L
            lew.sarten last edited by

            I should possibly mention that in my example sketched above they would be sell trades? (Whether that makes a difference I'm not sure)

            1 Reply Last reply Reply Quote 0
            • L
              lew.sarten last edited by

              Maybe?

              image.png

              l'andorrà 1 Reply Last reply Reply Quote 0
              • jstap
                jstap last edited by

                Yes, that would do it, but above the loop you need a reason to start the loop, the condition needs to look at the in loop value. Add a shared link rather than pictures, block internals can then 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
                • VHV-Profit-Masters
                  VHV-Profit-Masters @lew.sarten last edited by

                  @lew-sarten Quizas si compartieras un hilo del proyecto seria mas facil para los demas irte siguiendo y darte mas ideas

                  1 Reply Last reply Reply Quote 0
                  • l'andorrà
                    l'andorrà @lew.sarten last edited by

                    @lew-sarten Purple options should be connected below a purple block only to make it work correctly.

                    (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                    (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                    (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                    Online Users

                    S
                    C
                    F
                    W

                    15
                    Online

                    146.8k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors