fxDreema

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

    Close pending order before midnight and Reopen it after Midnight

    Questions & Answers
    4
    20
    2523
    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
      didymario7 last edited by didymario7

      Hello guys,

      I am trying to create blocks that will auto delete pending order before midnight (to avoid been in a trade with large spread) and reopen it at a certain time after midnight. See shared link
      https://fxdreema.com/shared/f4aiDB1cd

      The challenge for me now is when I use the once per trade/order block, it reopens deleted pending order just once and once forever. if for example the blocks on the left is true 2days later, the blocks on the right does not re-open the pending order.

      How do I arrange the blocks on the right such that each time a pending order is closed before midnight, it reopens it after midnight, every time and not just one-off.

      Thanks

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

        0_1627511206522_482101f7-64ba-4ae1-a0c6-2d3c557c9eb8-image.png

        this might work

        Logic says pending order or not,
        between the hours of: 2330 to 0030 server time
        Delete pending orders and turn off your buy and sell blocks, else (2330-0030) turn on buy and sell blocks.

        You will need to fill in the blocks yourself. This is MT5, I dont do MT4.

        D 2 Replies Last reply Reply Quote 0
        • l'andorrà
          l'andorrà @didymario7 last edited by

          @didymario7 Do you need they to be reopened at the exact same price level? If so you will need variables to store that info.

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

            quick question, whats the theory and purpose of turning them off?

            D 1 Reply Last reply Reply Quote 0
            • D
              didymario7 @TipsyWisdom last edited by

              @tipsywisdom said in Close pending order before midnight and Reopen it after Midnight:

              0_1627511206522_482101f7-64ba-4ae1-a0c6-2d3c557c9eb8-image.png

              this might work

              Logic says pending order or not,
              between the hours of: 2330 to 0030 server time
              Delete pending orders and turn off your buy and sell blocks, else (2330-0030) turn on buy and sell blocks.

              You will need to fill in the blocks yourself. This is MT5, I dont do MT4.

              This was helpful. I used a variation of this to get it to work. The key was the turn on/off block.
              Thanks

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

                @l-andorrà this brings me to another question i have been battling with.. Lets say i have closed 3 previously opened pending orders..How do I

                1. Save the open price of each of the closed pending orders in 3 variables.
                  2.how do I place a pending order to reopen each of the 3 closed pending orders 2 hours or a day later.

                Example blocks will be helpful.

                Thanks

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

                  @tipsywisdom said in Close pending order before midnight and Reopen it after Midnight:

                  quick question, whats the theory and purpose of turning them off?

                  Some times at exactly midnight spread become very high. I close pending orders before midnight and reopen them after midnight when the spread normlises to avoid triggering a trade due to very high spread.

                  TipsyWisdom 1 Reply Last reply Reply Quote 0
                  • TipsyWisdom
                    TipsyWisdom @didymario7 last edited by

                    @didymario7 exactly what I though. Id suggest going simple with a spread filter. But glad that other iteration works as well

                    1 Reply Last reply Reply Quote 0
                    • D
                      didymario7 @TipsyWisdom last edited by didymario7

                      @tipsywisdom said in Close pending order before midnight and Reopen it after Midnight:

                      0_1627511206522_482101f7-64ba-4ae1-a0c6-2d3c557c9eb8-image.png

                      this might work

                      Logic says pending order or not,
                      between the hours of: 2330 to 0030 server time
                      Delete pending orders and turn off your buy and sell blocks, else (2330-0030) turn on buy and sell blocks.

                      You will need to fill in the blocks yourself.

                      Lets say i have closed 3 previously opened pending orders..How do I

                      Save the open price of each of the closed pending orders in 3 variables.
                      2.how do I place a pending order to reopen each of the 3 closed pending orders 2 hours or a day later.
                      Example blocks will be helpful.

                      Thanks

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

                        i wouldnt suggest that, i would opt back to looking for your conditions to be true again because you never know what has happened to the market in that time. Thats why I'd also suggest a spread filter. In general a spread filter is a good rule of thumb to have one. i.e., using the spread filter in place of a time filter to turn off and on blocks if thats the better way.

                        but as far as doing it either way, ill see if one of my group have a solution built for that.

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

                          @didymario7 For question 1 you can create three variables, one for each closing order and simply store the value of all closed ones via 'on trade' tab. No matter how many are closed, you'll only the get the last ones. Once hose values are stored you can reopen themwhen you want buy using time filter blocks.

                          (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
                            didymario7 @l'andorrà last edited by

                            @l-andorrà please help me with example blocks. Thanks

                            bk7 1 Reply Last reply Reply Quote 0
                            • bk7
                              bk7 @didymario7 last edited by

                              @didymario7

                              or simply check at a certain time like 23:30 which open order you have
                              in a first step increase the sl (double)
                              second step open counter positions with a group id
                              third step at 01:00 for example close the counter orders (close all with selected group id)
                              fourth step return the sl to the original value

                              D l'andorrà 2 Replies Last reply Reply Quote 0
                              • D
                                didymario7 @bk7 last edited by

                                @bk7 said in Close pending order before midnight and Reopen it after Midnight:

                                @didymario7

                                or simply check at a certain time like 23:30 which open order you have
                                in a first step increase the sl (double)
                                second step open counter positions with a group id
                                third step at 01:00 for example close the counter orders (close all with selected group id)
                                fourth step return the sl to the original value

                                Could you please create sample blocks to illustrate this? Would be very helpful.

                                Thanks

                                bk7 1 Reply Last reply Reply Quote 0
                                • bk7
                                  bk7 @didymario7 last edited by

                                  @didymario7 the next 2 days i am super busy and hardly have time, if nobody helped you by then please send me a quick reminder in 3 days, if i forgot to make a quick draft

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    didymario7 @bk7 last edited by

                                    @bk7 OK, Thanks

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

                                      @bk7 I agree this is a more effective and easier solution than mine.

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

                                        @didymario7
                                        i just reread the whole task and i saw it is about pending orders so the solution is even a bit easier. I recommend that you move the order away by a certain number of pips before 23:30 and move it back at a certain time like 00:25 or whichever time you choose. I recommend using a timespan and run once (23:25-23:30) because if there are no ticks at a certain time it can't run. You can also make it run at a fixed time (23:30) if that is super important for you.

                                        here is a sample for buys:

                                        https://fxdreema.com/shared/DvuUnzpFd

                                        1 Reply Last reply Reply Quote 1
                                        • TipsyWisdom
                                          TipsyWisdom last edited by

                                          his largest worry is spread as he said, simplest solution would be to use a spread filter.

                                          I wonder if you are keeping yourself out of winning trades by cutting out a portion of time.

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

                                            Thanks guys, I really appreciate your input.

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

                                            Online Users

                                            M
                                            P
                                            S
                                            A
                                            E
                                            M
                                            F

                                            20
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors