fxDreema

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

    How/what blocks can i use the blocks to structure this problem?

    Questions & Answers
    6
    17
    2340
    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.
    • F
      fxgjg last edited by

      Thanks in advance.
      I want to say.
      If there is/when ever there is a TRADE on the SELL order
      Then place a pending BUY order.

      The issue i am having is that it is placing multiple BUY order trades. i would just like it to place on pending BUY order for every SELL order that becomes an order.

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

        Use this on the 'On trade' tab:

        0_1579725415975_01.png

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

          hmm.. thats strange.
          That 'trade created' block doesn't seem to exist on my version of fxdreema..
          Is there any other way this can be done?
          thanks

          A S 2 Replies Last reply Reply Quote 0
          • A
            ambrogio @fxgjg last edited by

            @fxgjg 0_1579734410445_Cattura.png

            1 Reply Last reply Reply Quote 1
            • S
              seb 0 @fxgjg last edited by

              @fxgjg
              ^^ You are on the "on Tick" tab, click the "on Trade" one.
              As well "on tick", i think you can do it this way : https://fxdreema.com/shared/ZzlAeTyGb

              1 Reply Last reply Reply Quote 0
              • F
                fxgjg last edited by

                @seb-0
                I've just realised.... in the link youve sent above you are showing me blocks for mql5.... I am using mql4...
                The '(on Trade) filter specific event option has now just appeared on my dropdown...
                I will put the blocks together and update you....
                many thanks

                1 Reply Last reply Reply Quote 0
                • F
                  fxgjg last edited by

                  Bingo... ive done the Trade created block then attached the pending buy order block... It works... any only places one buy order for every new sell order created....
                  thanks again....

                  1 Reply Last reply Reply Quote 0
                  • F
                    fxgjg last edited by

                    0_1579916869642_678b28e5-4da1-4e76-b970-10be57f91cda-image.png

                    So im also tryiny to close out the pending buy order once the sell order has closed... in the same order but it seems not to be working

                    1 Reply Last reply Reply Quote 0
                    • F
                      fxgjg last edited by

                      Ok i made an error... now fixed using the close pending orders block instead of close trade block.

                      How can i close each pending buy order that was opened with each sell order (once the sell order is closed) i.e. the pending sell order that got triggered and became a sell order which then opened a buy order.. but when that sell order is closed (whether by take profit or stop loss) i would like the corresponding pending buy order to be closed NOT to close out all the other pending buy orders.

                      thanks in advance

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

                        It depends. How many orders can ther be open at the same time. Linking each one to 'its own' pending can be solved with arrays. Sadly that is something that can't be done with fxDreema, so I can't either :(.

                        However, roar craeted a wonderful example not long ago and maybe could geive you a hand.

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

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

                          @l-andorrà ok thanks...
                          is roar a member of this forum?
                          Can anyone here code up that part of the EA/Script for me... i would be happy to pay $

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

                            Yes, he is one of the most active members here.

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

                              OK i will await Roars return...

                              in the meantime this is a visual of what i would like to achieve...
                              i want to be able to link the Pending SELL/BUY blocks to the Trade closed blocks...
                              Whenever i try it doesn't even close the pending orders... so i have left it detached (however, leaving it detached closes ALL the pending orders on screen)

                              0_1580261637822_58ea9582-153e-4691-983a-856c74d38d78-image.png

                              roar 1 Reply Last reply Reply Quote 0
                              • roar
                                roar @fxgjg last edited by

                                @fxgjg Hi!

                                I would connect the buy and sell orders with the group ID.
                                I use a variable tradeID for that in my example. Just make sure you use the same group ID for the orders (open the orders at the same time).
                                Now you can check if there is a running buy/sell, if not, delete pending orders with the corresponding group #.

                                https://fxdreema.com/shared/6fyWNh4ae

                                Need small help? Tag me in your post
                                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fxgjg last edited by

                                  Thanks @roar
                                  I'll give it a try now.
                                  I think i have to explain a bit more... for the issue is when i have multiple Pending BUY or Pending SELL orders placed... i only wish to close specific ones. (i.e. the ones that directly correlate to the current market conditions and not the ones away from the current market conditions.
                                  0_1580297567955_2e6ee3e3-2ca4-4231-9b9b-332087ada22a-image.png

                                  0_1580297821494_0c65a46c-9356-457c-a842-abb412630d0c-image.png

                                  As you can see above, once the sell order (red arrow) was closed (yellow arrow) then all 3 pending buy orders (blue arrows) were instantly closed (pink arrows)

                                  What i would wish to happen is for the last/lowest (closest) pending buy (blue arrow) to be closed when the sell is closed leaving the other 2 pending buys open until their sell orders are closed.

                                  T roar 2 Replies Last reply Reply Quote 0
                                  • T
                                    trader.philipps @fxgjg last edited by

                                    @fxgjg Sounds like you are more opening and deleting pending orders than trade them. However, is the number of pending orders fix or variable? You might count through the open orders and close that much that you no need anymore. But I need to understand what's the intention first - especially static vs variable rules.

                                    I like to share my knowledge, but expect the others to contribute as well.

                                    1 Reply Last reply Reply Quote 0
                                    • roar
                                      roar @fxgjg last edited by roar

                                      @fxgjg said in How/what blocks can i use the blocks to structure this problem?:

                                      Thanks @roar
                                      I'll give it a try now.
                                      I think i have to explain a bit more...
                                      As you can see above, once the sell order (red arrow) was closed (yellow arrow) then all 3 pending buy orders (blue arrows) were instantly closed (pink arrows)

                                      What i would wish to happen is for the last/lowest (closest) pending buy (blue arrow) to be closed when the sell is closed leaving the other 2 pending buys open until their sell orders are closed.

                                      So, in a nutshell: buys and sells are done in pairs. This is why I would use some specific group number for each pair.

                                      I wouldn't care to keep such a precise track myself, though.
                                      I would just limit the number of pending orders, using the "check pending orders count" block.

                                      Need small help? Tag me in your post
                                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                                      Online Users

                                      O
                                      J
                                      B

                                      16
                                      Online

                                      146.7k
                                      Users

                                      22.4k
                                      Topics

                                      122.6k
                                      Posts

                                      Powered by NodeBB Forums | Contributors