fxDreema

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

    close all when total profits reach

    Questions & Answers
    7
    15
    3391
    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
      dragonfly617 last edited by dragonfly617

      Hi everybody;
      I want it to get 1usd profit for each order.
      1st order could not make 1 USD profit 2. When the order will be opened, total 2 USD profit will be closed at the same time. The order has not been able to make a total profit of 2 USD. 3rd order will be opened and all orders will be closed when a total of 3 USD has been profited.
      how can I do that ? thank you for your help!

      ![0_1581668882655_fx.jpg](Uploading 100%)0_1581668916417_fx.jpg

      https://fxdreema.com/shared/1wB59iC8e

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

        go and see my answer to someone else i gave last night
        its in the interrupt negotiations question of 2 days ago

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

          1 order = 1 usd
          2 order = 2 usd
          3 order = 3 usd
          4 order = 4 usd
          5 order = 5 usd
          as.
            Close
          determine the price based on the order

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

            Not sure I understand you. Do all orders have the same open price but different TP levels?

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

              Hello;
              I want each order to get a certain gain.
              for example 1 USD.
              if the opened order reaches 1 usd, it will close.
              I have 5 open orders open, if total profit reaches 5 * 1 = 5 usd, all will be closed.

              1 Reply Last reply Reply Quote 0
              • P
                paragorundu last edited by paragorundu

                @dragonfly617 I think you may try to use the block named "Check profit (average)" which has profit mode option to check pips & money.

                Just a kind warning:

                I used pips as profit mode, but this block just simply divide gained pips to number of orders. It does not take lot size into calculation. Which may lead you get unexpected results.

                I hope this helps.

                Regards.

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

                  Thank you for the help.
                  but I'm looking for something like this
                  order = n
                  n * 1 usd = close all orders.

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

                    @dragonfly617 Mql4 function OrdersTotal() will return the number of trades, so you can make a block like this:
                    0_1581950504617_9866dfdb-f84d-49e8-9844-b3d85b36a113-image.png
                    Note that the function will also count the pending orders.

                    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

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

                      @roar Just for my interest, why do you multiply the function result times 1?

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

                      roar 1 Reply Last reply Reply Quote 0
                      • roar
                        roar @trader.philipps last edited by

                        @trader-philipps just to illustrate where the "* 1 usd" will come into play, and that there you can also change the dollar amount to "OrdersTotal() * 2", for example.

                        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 1
                        • D
                          dragonfly617 last edited by

                          Thank you very much for your help.

                          1 Reply Last reply Reply Quote 1
                          • D
                            dragonfly617 last edited by

                            Hello; roar
                            gave this error

                            0_1582105618688_d2a7fc00-fe01-4de6-a995-ad0e41962043-image.png
                            0_1582105609825_5157b926-4ef3-4f11-a00d-4ce2649bbca1-image.png

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

                              @dragonfly617 The method doesn't work with that tick box, for some reason. You have to untick it.
                              0_1582115413654_bff0f8c3-5064-484f-9135-bff4364d1b57-image.png

                              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
                              • B
                                bliinkboy @roar last edited by

                                @roar said in close all when total profits reach:

                                @dragonfly617 Mql4 function OrdersTotal() will return the number of trades, so you can make a block like this:
                                0_1581950504617_9866dfdb-f84d-49e8-9844-b3d85b36a113-image.png
                                Note that the function will also count the pending orders.

                                how did you put custome code at section?at profit amount?

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

                                  @bliinkboy Take your keyboard and write it there. You can put custom code to anywhere. Anywhere. Just try it out

                                  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

                                  N
                                  S
                                  T
                                  A
                                  Y

                                  15
                                  Online

                                  146.7k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors