fxDreema

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

    Multiple Open Positions Issue

    Questions & Answers
    4
    7
    35
    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.
    • P
      Peter911 last edited by

      Hello everyone,

      I would appreciate your assistance with an issue I am experiencing.

      Strategy:

      • When a candle closes above the 12 EMA, a buy position is opened.
      • If, while that buy position is still open, a new candle closes below the 12 EMA, a sell position is opened.

      Problem:
      After the sell position is opened, every new candle that crosses back above the 12 EMA, then below the 12 EMA and closes, creates additional sell positions. This results in multiple sell trades being opened instead of just one.

      Question:
      How can I prevent this from happening? I only want one active position per direction until either the stop loss or take profit is reached. I have already tried using the "Once Per Bar" block, but it has not resolved the issue.

      Any advice would be greatly appreciated. Thank you!

      1 Reply Last reply Reply Quote 0
      • P
        Peter911 last edited by

        Here is the link to the project https://fxdreema.com/shared/1moIlMrV

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

          You need to specify buys only or sells only on the 'no position' block. That way you will be able to stop all new buys and all new sells as far as the first one each is still active.

          (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.

          P 1 Reply Last reply Reply Quote 1
          • P
            Peter911 @l'andorrà last edited by

            @l-andorrà thank you for your response. I just tried that, but its still doing the same thing. Opening multiple positions.

            1 Reply Last reply Reply Quote 0
            • L
              Lacone last edited by

              Hi Peter,
              actually, it does work—see the EA in the attachment. So, something else must be wrong.

              Test2 (1).ex5

              1 Reply Last reply Reply Quote 0
              • B
                Byens last edited by

                You need to add close position block

                https://entrepreneurstart.pw | https://www.mql5.com/en/users/byens8199

                1 Reply Last reply Reply Quote 0
                • P
                  Peter911 last edited by

                  Hi guys, thanks for the assistance, yes the error was on my side, There was a setting that was left unchanged. All is well now. Thanks for the help. I appreciate it.

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

                  Online Users

                  P
                  E
                  F
                  A

                  10
                  Online

                  147.2k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors