fxDreema

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

    Modify (Move) Pending Order to certain price level

    Questions & Answers
    2
    36
    14761
    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.
    • N
      nitin2468 @fxDreema last edited by

      @fxdreema I built a profitable ea that works on aggressive candle I am testing with strategy test and got amazing results in one year but it not working live
      link text

      1 Reply Last reply Reply Quote 0
      • K
        kevin last edited by

        Greetings,

        Please, would it be possible, and if how, using fxdreema, to specify a certain (fixed) price level and if pending orders are not there, move them to that level?

        I am placing a lot of pending orders and because of slippage, they tend to place a small bit apart of themselves. With this method, I would move the pending orders that are deviated from a price level to their correct place, in other words, eliminate slippage.

        (Excuse me if a topic on this is already started somewhere)

        Thank you.

        1 Reply Last reply Reply Quote 0
        • K
          kevin last edited by

          I cant really see how to specify a price level and then apply a modify pending order block to move the pending order to that price level. Help please?

          If necessary, I can describe the project more...

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

            For each Pending Order -> slide order

            But why... I don't think that slippage happens on pending orders, why don't you just place them on the correct price from the first time

            1 Reply Last reply Reply Quote 0
            • K
              kevin last edited by

              __For each Pending Order -> slide order

              But why... I don't think that slippage happens on pending orders, why don't you just place them on the correct price from the first time[/quote:2s0ydv5n]

              I will describe my project a little more to explain where the slippage occurs. Basically, I open three buy pending orders above the price in a grid with 5 pip increments and three sell pending orders below the price with a 5 pip increment. The stoploss of all buy orders is 5 pips below the last sell pending order and the take profit 5 pips above the highest buy pending order (vice versa for sells).

              Now, as the price moves and triggers, lets say buy pending order 1, the EA creates another 3 sell pending orders at the levels of the initial sell pending orders, and the same applies when it hits buy pending orders at level 2 and level 3. Basically, the EA multiplies positions to the other side, each time a pending order is hit (triggered). This is basically a cleverly hidden martingale, but lets not discuss the strategy drawbacks right now.

              The problem is, when price triggers e.g. buy pending order, slippage occurs and thus the ea misplaces the 3 sell pending orders by a small bit. Therefore, I would like to adjust these displaced pending orders to the initial level, where they should be. I dont think that blocks for each pending order -> slide order are correct, because I dont know if the order will be displaced up or down. I would need something like truly, modify pending order -> move to certain level.

              It is possible to see how the grid gets thicker because of misplaced pending orders by a small bit each time. I would like to keep them all stacked at the initial levels. http://imgur.com/LhdV3SV

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

                But this is the block who can modify the position of pending orders 🙂 You set the open price and orders should be moved at that price. Maybe the block should be named "modify pending order", but "slide order" works for me

                The other block who can move pending orders is Trailing pending orders.

                1 Reply Last reply Reply Quote 0
                • K
                  kevin last edited by

                  __But this is the block who can modify the position of pending orders 🙂 You set the open price and orders should be moved at that price. Maybe the block should be named "modify pending order", but "slide order" works for me

                  The other block who can move pending orders is Trailing pending orders.[/quote:221glj9i]

                  Yes, Ive meddled with the slide order and trail pending orders for a while. But how do I define the open price? I need that open price to be equal to the levels of the grid, that is Level (Group) 1,2,3 of buys and Level (Group) 1,2,3 of sells (Look at the attached imgur picture please, I think that should clarify a lot). If I use a variable that defines the grid size, can this variable be also used to define the price level as the initial one where I want the orders to be placed, in the block "slide order" under "price relative to custom price level" ?

                  Im sharing it for you to see how its built. Here: https://fxdreema.com/shared/FaLwS0nAd

                  P.S. I know it a little complicated and Im too fast in the explanations but I really appreciate your help and solving this would make the ea much more efficient. Thank you very much.

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

                    This EA doesn't even export. Better don't use these checkboxes when you have Constants in the input field. Constants are already input parameters, there is no need to make them input parameters twice

                    These are the blocks for modifying pending orders. I don't know other blocks for that now that I'm thinking

                    1 Reply Last reply Reply Quote 0
                    • K
                      kevin last edited by

                      __This EA doesn't even export. Better don't use these checkboxes when you have Constants in the input field. Constants are already input parameters, there is no need to make them input parameters twice

                      These are the blocks for modifying pending orders. I don't know other blocks for that now that I'm thinking[/quote:33mgi4yo]

                      Yes, Yes, Ive had numbers in there before I shared it with you and forgot to uncheck it. It should export now. The constants are there to replace the numbers and define the grid size, respectively levels. Could these constants also be used as the level to which the pending order would be "slid" ? Or should I make them as variables? Also, in the slide order block, what is the "Positive direction for SELL" for? And why would I include "slide with pips" if I have a specific level to which I want it to move. I dont know how many pips will the pending order be deviated, and wether above or below the level because slippage is unpredictable 😛

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

                        ____This EA doesn't even export. Better don't use these checkboxes when you have Constants in the input field. Constants are already input parameters, there is no need to make them input parameters twice

                        These are the blocks for modifying pending orders. I don't know other blocks for that now that I'm thinking[/quote:13uvvn3w]

                        Yes, Yes, Ive had numbers in there before I shared it with you and forgot to uncheck it. It should export now. The constants are there to replace the numbers and define the grid size, respectively levels. Could these constants also be used as the level to which the pending order would be "slid" ? Or should I make them as variables? Also, in the slide order block, what is the "Positive direction for SELL" for? And why would I include "slide with pips" if I have a specific level to which I want it to move. I dont know how many pips will the pending order be deviated, and wether above or below the level because slippage is unpredictable :P[/quote:13uvvn3w]

                        if you have specific level, then use the "Custom (price level)" option.

                        I think you don't need to touch the direction option, and if you use price level it will probably have no effect anyway. This option is only for Sells.

                        Variables are... variables. They can be modified and everything. Use Constants only if you want them to appear in the input parameters and don't try to modify them.

                        1 Reply Last reply Reply Quote 0
                        • K
                          kevin last edited by

                          Ok, thank you. I will try to play with this a little more, test and see how it goes, if anything, I will probably report back here. Thank you very much for your support, Im enjoying fxdreema a lot! 🙂

                          1 Reply Last reply Reply Quote 0
                          • K
                            kevin last edited by

                            Well, I tested the slide order and it does not seem to do anything, but (I guess) that is because it does not have a specified level. So, the question is that, is there any way to specify the price level of a pending order in fxdreema? Basically, in code terms, what I need is this:

                            IF pending order price level != (does not equal) initial pending order price level, THEN: move pending order to the price level of the initial pending order.

                            Any ideas how to get this done please? Thanks.

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

                              If you try to put an order at the same price where it's currently placed, then nothing should happen anyway, so you don't have to ask.

                              I think that your EA is overcomplicated, because it has many similar groups of blocks. Anyway, now the problem is that the real names of the objects are not exactly what you want, so try with these settings: http://prntscr.com/btfe8w

                              1 Reply Last reply Reply Quote -1
                              • K
                                kevin last edited by

                                __If you try to put an order at the same price where it's currently placed, then nothing should happen anyway, so you don't have to ask.

                                I think that your EA is overcomplicated, because it has many similar groups of blocks. Anyway, now the problem is that the real names of the objects are not exactly what you want, so try with these settings: http://prntscr.com/btfe8w[/quote:1clqsoc3]

                                I believe the EA is perfectly logical and organized.
                                Im not sure if we understand each other though. Its not about trying to put an order at the same price where its currently placed. Its about placing another, separate order at that price. I need to have several orders at the very same price level, on top of each other. Take a look at this picture: http://imgur.com/iHWkcSH

                                The blue lines represent an initial set of pending orders. Now, another set of pending orders should be created on top of them, but it isnt. It is a little bit "displaced". I would like to move these orders to the exact same level as the blue lines. For some reason, slide order and even trailing pending orders dont really do anything, or at least, maybe I am using them wrong. This is what I would need help fixing.

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

                                  Ok, orders over orders. Here is some example where I create 3 Buy pending orders and then I open another 3 Sell orders on top - https://fxdreema.com/shared/pQBJHt5ud

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kevin last edited by

                                    __Ok, orders over orders. Here is some example where I create 3 Buy pending orders and then I open another 3 Sell orders on top - https://fxdreema.com/shared/pQBJHt5ud[/quote:3fnqikdz]

                                    Well now this is interesting, I will try something and report back, even though I worry a little because it is a little more complex than that... I have sent you a PM though. Thank you.

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      kevin last edited by

                                      Simply this. This shows how I have the pending orders grouped currently, and what the EA should do.

                                      http://imgur.com/AFZHEig

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

                                        You want to put 3 new sell orders above the existing 3 pending orders 😕 Why not deleting them and make only 3 orders with bigget lot size.
                                        And if triggering 1 pending order produces 3 new orders, you will quickly end up with too many orders 😮

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          kevin last edited by

                                          __You want to put 3 new sell orders above the existing 3 pending orders 😕 Why not deleting them and make only 3 orders with bigget lot size[/quote:1b84imrr]

                                          That is the point, I cannot delete them, I have to put new orders there and keep the lotsize equal at all times. It is the beauty of the EA 🙂 How will I manage to do that?

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

                                            But you can delete them 😮

                                            I don't know what to tell you. This is only 1 step that you are explaining. But if there are more steps, the way to do things can be very different. Otherwise in my latest example I think I'm showing how to put 3 orders over 3 another orders. Of course, mine are all from the same Group.

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

                                            Online Users

                                            K
                                            M
                                            B
                                            A
                                            C
                                            A
                                            X

                                            18
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors