fxDreema

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

    Closing a position once it's n candles old?

    Questions & Answers
    3
    6
    638
    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.
    • T
      tonyramirez last edited by

      This is easy provided you only have one position open but I can't figure how to close only one position when there are several open.

      The 'close position' block allows you to close a trade after n minutes, so I tried converting the candle to minutes. Problem is that all open positions are closed on the following monday after the weekend because time goes on even when the market is closed.

      When I use a 'for each position' loop block to close trades after n bars, all trades are closed that were opened in the past n bars, not just the trades that are n bars old or more.

      Thanks

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

        @tonyramirez The second option should work. Can you please share your project?

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

        T 1 Reply Last reply Reply Quote 1
        • T
          tonyramirez @l'andorrà last edited by

          @l-andorrà said in Closing a position once it's n candles old?:

          @tonyramirez The second option should work. Can you please share your project?

          Thanks for the offer!

          I finally figured out that after a 'for each position' block you need to use the other pink blocks to perform actions like 'close position' rather than the generic blocks.

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

            @tonyramirez Good for you. Congrats! 😉

            (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
            • T
              Tulefi last edited by

              Please will you explain how to do this "When I use a 'for each position' loop block to close trades after n bars". I can't see how to do this. Thank you.

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

                @Tulefi He means creating a loop searching for that info in the past candles.

                (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

                M
                M
                E
                Y
                L
                F
                S
                F
                N
                S

                19
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors