fxDreema

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

    exit trade on next candle close

    Questions & Answers
    2
    5
    905
    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
      PipTheRipper last edited by

      Hi, I want to make a system that enter positions on pending stop orders above/below each candle. Once a position is opened, i want the ea to exit the position on the very next candle close.

      I am trying to make a variable that changes digit once a position has been opened. The new number assigned to the variable will allow the "close position" block to run. I have set the close position block to once per bar. What I am looking for is something like "once for every candle close", not once per bar, as this block also can run in the middle of a candle.

      Does anyone know how I can make it so that the EA closes the open position on next closed candle?

      https://fxdreema.com/shared/ZV5FidTjc

      0_1632086156907_bar counter.png

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

        @piptheripper said in exit trade on next candle close:

        on the very next candle close

        What do you exactly mean by 'on the very next candle close'? The clsong of the same candle in which the trade waas open or the closing of the immediate candle AFTER the the one the trade was open?

        (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 0
        • P
          PipTheRipper @l'andorrà last edited by

          @l-andorrà trade has to be closed on the close of the candle that activated the pending order. Thanks!

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

            I figured out a way, I share it here in case anyone in the future needs something similar: https://fxdreema.com/shared/qgX8pwIbe

            I created a variable called "bar counter"
            on init i set the bar counter to 5 (just needs to be a number higher than 2 in this case)
            once per candle i add 1 to bar counter
            once per position i set bar counter to 1
            when bar counter is 2 -> close trade

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

              @piptheripper Interesting solution. Thank you for sharing.

              (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

              K
              A
              S
              B
              A

              20
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors