fxDreema

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

    How to Calculate only buy orders

    Questions & Answers
    2
    8
    1644
    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.
    • W
      wolamen last edited by

      I am working on hedge EA .. i am opening 8 orders .. 4 buy and 4 sell
      I want the EA calculates the SUM of profit and lose for all buy orders .. and calculates the SUM of profit and lose for all sell orders .

      And if all buy orders hit TP close only buy
      And if all sell orders hit TP close only sell

      My issue is how to make the EA calculates only buy orders and calculates only sell orders separately .

      Any help ...

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

        @wolamen You can use some of this structure:

        https://fxdreema.com/shared/lrcTsr7Id

        It is for MT5 but can be used for MT4 if you change the appropriate blocks. You shouls also change the settings of blocks 4 and 5. They are for buys and sells. You will need to duplicated them. One for buys and another one for sells. Additionally, blocks 9 and 10 are not necessary.

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

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

          @l-andorrà i do not think this can help my case

          i have many open orders buy and sell
          how can i calculate all buys .
          how can i calculate all sells .

          if all buy hit TP close only buys.
          if all sells hit TP close only sells.

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

            @wolamen My example can calculate the overall profit/loss of all open trades right now. No matter how many are open right now. You simply need top duplicate it: one structure for buys and another one for sells.

            Same with closing. You can specify only buys or sells to be closed when your profit target is reached.

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

            W 3 Replies Last reply Reply Quote 0
            • W
              wolamen @l'andorrà last edited by

              @l-andorrà Thanks for help but i am still do not get that example or there is a misunderstood between us .

              any way i am simply want to calculate 2 variables

              First variable named (SUM BUY) : Calculates the summation (profit + loss) of all opened buy orders.
              Second variable named (SUM SELL) : Calculates the summation (profit + loss) of all opened sell orders.

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

                @l-andorrà i get it now .. it is working .. thank u very much

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

                  @l-andorrà plz from your examble .. how can i calculate the commission to get clear profit ?

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

                    @wolamen I'm glad you got it. This is the way to include swap and comissions:

                    0_1620891143400_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
                    • 1 / 1
                    • First post
                      Last post

                    Online Users

                    J
                    B
                    M

                    12
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors