fxDreema

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

    How can I create an EA to place an order for buying above current price?

    Questions & Answers
    4
    28
    6933
    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.
    • 7
      7r4d3rSG last edited by

      Hello,

      I am new to FXdreema and seeking help to create an EA to place a buy order at a higher price than market price.
      Reason is to replace stop loss of an existing sell trade with countering "buy" trade. Kinda recovery hedging to a loosing "sell" trade, in hope of recovering at later time.
      Really appreciate your help!

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

        Do you want a buy now or a pending buy? And then at what exact distance from current price?

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

        7 2 Replies Last reply Reply Quote 0
        • A
          ambrogio @7r4d3rSG last edited by

          @7r4d3rsg Hi, try this

          0_1573760852510_s.JPG

          7 ForexS 3 Replies Last reply Reply Quote 0
          • 7
            7r4d3rSG @l'andorrà last edited by

            @l-andorrà , it should be buy now when the market price hits the configured target price. It is a rescue effort and thus I will wait until the last tick to execute this.

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

              @l-andorrà , Thanks for help. I will try and let you know soon.

              1 Reply Last reply Reply Quote 0
              • 7
                7r4d3rSG @ambrogio last edited by

                @ambrogio , Thanks for help. I will try and let you know soon.

                1 Reply Last reply Reply Quote 0
                • 7
                  7r4d3rSG last edited by

                  I think I should explain better. Please see in picture. Assume I manually sell at certain price (with TP, but w/o SL) and immediately run EA to place a BUY order at higher price (instead of using SL). Will you guys please help to resolve this? I know hedging does not always work, but something like I want to buy time to watch the situation for sometime, rather than stopped out straight away.

                  0_1573836502826_c89e5ea0-b900-4b7a-bd8b-0e371b556a6d-image.png

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @7r4d3rSG last edited by

                    @7r4d3rsg
                    0_1573837844360_s.JPG

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

                      Try what ambrogio suggests. Also you can add any condition block between blocks 27 and 26 if you want to open that buy at a specific distance from your current 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
                      • ForexS
                        ForexS @ambrogio last edited by

                        @ambrogio This creates too many orders.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          ambrogio @ForexS last edited by

                          @forexs Please, share your project and i'll take a look on it

                          ForexS 1 Reply Last reply Reply Quote 0
                          • 7
                            7r4d3rSG @ambrogio last edited by

                            @ambrogio said in How can I create an EA to place an order for buying above current price?:

                            @7r4d3rsg Hi, try this

                            0_1573760852510_s.JPG

                            0_1573867227181_5e5105ca-ed39-415c-ab66-53eb611b375d-image.png

                            @ambrogio @l-andorrà , I really appreciate your guidance. But I'm struggling to understand the variable "Stop-Loss" in "Buy pending order" block. What I want to do is to set a target buy price manually in that pending order, also pls note that I do not have SL in original order. I am sorry if it is too silly to ask such question, but I do not have experience in either FXD and any kind of programming EA. Hope you guys can understand and help. Thanks!

                            A 1 Reply Last reply Reply Quote 0
                            • ForexS
                              ForexS @ambrogio last edited by ForexS

                              @ambrogio Thanks a lot

                              Here it is,

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

                                I'm a bit lost now. Are both of you asking for the same project? Just confused.

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

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

                                  @l-andorrà Not at all. 😄 . I started this with very simple question.

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    ambrogio @7r4d3rSG last edited by

                                    @7r4d3rsg said in How can I create an EA to place an order for buying above current price?:

                                    @ambrogio said in How can I create an EA to place an order for buying above current price?:

                                    @7r4d3rsg Hi, try this

                                    0_1573760852510_s.JPG

                                    0_1573867227181_5e5105ca-ed39-415c-ab66-53eb611b375d-image.png

                                    What I want to do is to set a target buy price manually in that pending order

                                    0_1573981197410_Cattura.PNG

                                    1 Reply Last reply Reply Quote 0
                                    • 7
                                      7r4d3rSG last edited by

                                      @ambrogio , I have done before. It didn't work. Here is my project. https://fxdreema.com/shared/4cRND7wIb . Kindly comment. My take is that the broker does not accept placing "buy pending order" above the current market price. Only way is to use condition and "buy now". Sadly, that one also did not work ( https://fxdreema.com/shared/KcmW6IoR ). Pls correct me if my idea is wrong. Thanks!

                                      A 1 Reply Last reply Reply Quote 0
                                      • 7
                                        7r4d3rSG last edited by 7r4d3rSG

                                        Just to update. I tested starting from condition check and it did place MANY orders. Then I added "Turn Off Blocks" and manage to stop it at single order.

                                        0_1573988461937_ad41583d-e673-42e6-8d26-ca489e86b798-image.png

                                        Will you guys please teach me how to terminate the EA itself after executing once and also delete the objects created by EA. Thanks!

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          ambrogio @7r4d3rSG last edited by

                                          @7r4d3rsg said in How can I create an EA to place an order for buying above current price?:

                                          @ambrogio , I have done before. It didn't work. Here is my project. https://fxdreema.com/shared/4cRND7wIb . Kindly comment. My take is that the broker does not accept placing "buy pending order" above the current market price. Only way is to use condition and "buy now". Sadly, that one also did not work ( https://fxdreema.com/shared/KcmW6IoR ). Pls correct me if my idea is wrong. Thanks!

                                          It's not about brokers, it's about logic. Start testing this in the tester

                                          https://fxdreema.com/shared/Y8kuW2jWc

                                          7 1 Reply Last reply Reply Quote 0
                                          • 7
                                            7r4d3rSG @ambrogio last edited by

                                            @ambrogio , Thanks for update. I will try testing soon. But just wonder, since creating pending buy order above market price is not possible, why do you keep going for it? I have tested using buynow and it works at basic level (screenshot attached). Anyway, I will definitely test your update and post back here. Cheers!

                                            0_1574206397277_6dd9dee7-0cac-40d4-a20b-f205b2e6ac54-image.png

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

                                            Online Users

                                            E
                                            R
                                            S
                                            A
                                            B
                                            N
                                            M
                                            A
                                            T
                                            V
                                            M

                                            23
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors