fxDreema

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

    Open e Close pending Order

    Questions & Answers
    2
    9
    262
    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.
    • D
      Denim last edited by

      I intend to experiment my first ea with this strategy : Calculate the minimum and maximum from 2.00 to 3:30 am and set two pending buy and sell orders on these two values ​​with the trade closing at 20:00. the stop loss should be 10/15 pips and go to breakeven if the direction is in profit in the opposite direction (in profit). I've now sketched out (with very little FX experience) something like this, but it opens many trades (not just two) and doesn't close at the specified time. moreover, the last trades in the backtest do not close them at all. I am attaching the code diagram. I would also like to implement a trailing for profitable positions and the consequent breakeven for the opposite position. If anyone could help me figure out the steps, the functions to insert, and what's missing in the logic I'd be grateful.

      shared/pHuPOi6Lb

      1 Reply Last reply Reply Quote 0
      • D
        Denim last edited by

        https://fxdreema.com/shared/pHuPOi6Lb

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

          @Denim You need some changes. Firstly, you need to modify the launcher. According to your initial description, you will need something like this:

          01.png

          That way there will be just one only buy and one only sell.

          (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
          • D
            Denim last edited by

            Thank you for the explanation! I applied the filter and now it works almost fine. The only thing I still haven't figured out is how to close the order that remains open (if it's not in profit) by 10pm on the same day at the latest. If it doesn't close that one, it doesn't open others.

            https://fxdreema.com/shared/av7dknNFc

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

              @Denim Then you need to apply a second time filter like this:

              01.png

              You will need to coordinate the one you are already using with this one in order to avoid conflicting each other.

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

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

                @l-andorrà Sorry for the constant questions. I tried to apply the suggested filter but evidently I didn't quite understand how to apply it in the scheme to close open or pending operations. I also have another question: pending orders away from the current price. can they progressively "move" closer to the current price to either close or open?

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

                  Let's move step by step. Can you please share the link to your last version of the project? I will take a look at it.

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

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

                    @l-andorrà The project is this. Maybe I didn't quite understand how to implement closing an order for minimum loss and how to set the movement of pending orders closer to the current price. Here is the project (if you can call it that..)

                    https://fxdreema.com/shared/DZFLPX0Bd

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

                      The end time of your time filter block needs to be later that the start time. This is why it doesn't work.

                      (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

                      E
                      R
                      S
                      A
                      B
                      N
                      M
                      A
                      T
                      V
                      M
                      A

                      23
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors