fxDreema

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

    Hedging losses or balance of trades/market

    Questions & Answers
    hedge
    4
    20
    4018
    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.
    • S
      StantonHitz last edited by

      Good day to all.
      I am working on a high frequency ea with multiple trades in both directions. I am trying to figure out how to balance the market with a hedge. The ea should read the total sell lots, vs the total buy lots and hedge the difference. So.... I have a bucket of sell trades (in lots) and a bucket of buy trades (in lots) and I have created a formula to find the difference by taking the sells minus the buys to find the difference in lots. But when testing this function, I manually enter 0.10 buy lots and 0.40 sell lots. The difference should be 0.30 lots and a hedge should open for that value. But when I test the system, the hedge opens at 0.60. I am trying to figure out how to find the difference in lots between buys and sells, and use that value as the size for the buy trade. The hedge is meant to make me flat in the market. so doesn't matter if the price goes up or down, I won't loose anymore pips. Does anyone understand what I want and know how to implement it? Here is what I have worked on so far. (P.S. this is one the buy hedge section of my code. I need to get through this hurdle before continuing.) https://fxdreema.com/shared/T8jUJQ9de

      V 1 Reply Last reply Reply Quote 0
      • S
        StantonHitz last edited by

        I noticed that I had the "SellDiff" variable as both the input and the adjustment that's why the hedge was double. My bad I figured it out. Thanks anyway. I can't see how to delete this thread, but thanks anyways I figured it out

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

          Hi! im russian sory for my slang...
          Need chek open random lose position
          and chek profitable position
          open 10 position buy lots 0.01
          open 1 position recovery lots 0.02

          1 position have - 15 pips for curret price
          recovery position have +11 pops lots 0.02 = 22 pips
          +22>-15 = close and have profit
          and use this startegy fo al losses lots
          this really constroction?

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

            @pipsacoin Can you please open a specific tread for your question?

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

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

              @l-andorrà
              this is the answer of the branch creator... can help?
              and this repit my theme earlier
              where did you require the link

              1 Reply Last reply Reply Quote 0
              • V
                varso @StantonHitz last edited by varso

                @stantonhitz
                I understand what you want.
                You have simple mistake in condition.
                You double the lots size here, delete it and keep it empty.

                0_1591705653834_2020-06-09 14_25_12-Window.jpg

                S 1 Reply Last reply Reply Quote 0
                • P
                  pipsacoin last edited by

                  how to make lots closing in parts?

                  pls help

                  V 1 Reply Last reply Reply Quote 0
                  • S
                    StantonHitz @varso last edited by

                    @varso Thanks... I figured it out and couldn't delete the thread. I'm loving how easy this platform is.

                    1 Reply Last reply Reply Quote 0
                    • V
                      varso @pipsacoin last edited by

                      @pipsacoin

                      0_1591782592186_2020-06-10 11_49_06-Window.jpg

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

                        if by 0.05 sell 0.03 all lots open in 1.2000 price... eurusd
                        curret price 1.1000 needs close 0.02 by and 0.03 sell + have profit and open losses 0.03 by... its really?

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

                          @pipsacoin I'm afraid I don't fully understand what you mean.

                          (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
                          • P
                            pipsacoin last edited by

                            It’s realistic to move so that the order with the lot 0.05 is not closed immediately in whole and in parts ... first close 0.02 with the lot 0.04, then repeat ... and close the remaining 0.01 with the lot 0.02 ... so it’s clear ?

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

                              @pipsacoin The block that varso recommend you to use can anly close partially the closest to the specified percentage in it. If you need a different closing ratio you will need to create a calculating tree block to do that.

                              (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
                              • P
                                pipsacoin last edited by

                                you can give example?

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

                                  @pipsacoin What partial closes will you need exactly?

                                  (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
                                  • P
                                    pipsacoin last edited by pipsacoin

                                    hare it with other people

                                    shared/eOhZTeXL

                                    when open 2 postition , open 1 recovery 0.02 lots for close one trade lots 0.01...

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

                                      @pipsacoin Ok. This is how you open trades. Your initial lot size is 0.01. You cannot partially close that minimum volum unless you are working with spacial brokers. If I underatand you correctly, you will open more trades. Right? If so they will be 0.02. Right?

                                      Is this second one the trade you want to partially close?

                                      (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
                                      • P
                                        pipsacoin last edited by

                                        Im open 3 position bay 0.01 lots and random price... nedds close 1 position havent 0.01 lots and close next order for dont have big averege ... recovery lots 0.02 for 1 lots 0.01 ...

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

                                          @pipsacoin Don't get me wrong but I don't fully understand, you sorry. I speak Catalan and Spanish if you prefer to choose any of them.

                                          (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
                                          • P
                                            pipsacoin last edited by

                                            ask ... maybe someone can help

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

                                            Online Users

                                            A
                                            T
                                            M
                                            E
                                            C
                                            B

                                            20
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors