fxDreema

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

    How can I find the average opening price for the last two positions?

    Questions & Answers
    6
    44
    6374
    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.
    • TipsyWisdom
      TipsyWisdom @jstap last edited by

      @jstap hahaha...the good ol sleep medicine.

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @TipsyWisdom last edited by

        @tipsywisdom Yep : )

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • khalids222
          khalids222 @jstap last edited by

          @jstap
          The last two deals have not been closed
          0_1627563438709_6b8f14f8-dc66-42b0-9f7b-cbae65c5cf1c-image.png

          jstap 1 Reply Last reply Reply Quote 0
          • khalids222
            khalids222 @LadyDolares last edited by

            @ladydolares
            It's not your fault
            The issue is not resolved

            bk7 1 Reply Last reply Reply Quote 1
            • jstap
              jstap @khalids222 last edited by jstap

              @khalids222 To be honest placing blame is not helping any one, the current issue is all to do with logic, at the moment only 1 trade fits the pips away logic, so you need to work out what fit's the logic the logic to close second trade. To me something like, if 2nd trade is always a set distance from the first then, branch off the 1st pips away with another pips away and the distance the 2nd trade will be, with a pink close block.

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

              khalids222 1 Reply Last reply Reply Quote 0
              • bk7
                bk7 @khalids222 last edited by

                @khalids222

                so you still need the average price of the last 2 openend positions?

                do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?

                khalids222 1 Reply Last reply Reply Quote 0
                • khalids222
                  khalids222 @jstap last edited by

                  @jstap I'm very sorry, I didn't mean anything, my goal was to open the topic only for participation. It was not my intention to blame or otherwise.
                  I thank you for your time and effort

                  1 Reply Last reply Reply Quote 0
                  • khalids222
                    khalids222 @bk7 last edited by

                    @bk7 said in How can I find the average opening price for the last two positions?:

                    so you still need the average price of the last 2 openend positions?
                    do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?

                    First of all, I apologize for the delay in responding, due to the death of a dear friend of mine.
                    Yes, I want it for each one individually
                    1 avg for buys and 1 for sells

                    bk7 2 Replies Last reply Reply Quote 0
                    • bk7
                      bk7 @khalids222 last edited by

                      @khalids222 oh sry to read this.. the next 2 days i am super busy so if forget about it please send a reminder in 3 days if nobody else helped you by then.

                      1 Reply Last reply Reply Quote 0
                      • bk7
                        bk7 @khalids222 last edited by

                        @khalids222

                        here this should work for the buy side:

                        https://fxdreema.com/shared/3bPGBaSWc

                        khalids222 1 Reply Last reply Reply Quote 0
                        • khalids222
                          khalids222 @bk7 last edited by

                          @bk7 Thank you and where will the closure be?

                          bk7 1 Reply Last reply Reply Quote 0
                          • bk7
                            bk7 @khalids222 last edited by

                            @khalids222
                            i just read about the price, which closure logic you want to apply?

                            khalids222 1 Reply Last reply Reply Quote 0
                            • khalids222
                              khalids222 @bk7 last edited by

                              @bk7 If the price exceeds two buy deals, I want to close these two deals that are less than the price

                              bk7 1 Reply Last reply Reply Quote 0
                              • bk7
                                bk7 @khalids222 last edited by

                                @khalids222
                                for me there are open questions:
                                how many open buy positions you have max ?
                                exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
                                ist just price a factor or volume as well?
                                you take swaps/commissions into account or just price ?

                                khalids222 1 Reply Last reply Reply Quote 0
                                • khalids222
                                  khalids222 @bk7 last edited by

                                  @bk7 said in How can I find the average opening price for the last two positions?:

                                  for me there are open questions:
                                  how many open buy positions you have max ?
                                  exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
                                  ist just price a factor or volume as well?
                                  you take swaps/commissions into account or just price ?

                                  Suppose I have one buy transaction, and when it go down, I will increase it by one as well. When the price exceeds the value of the buy before the last, I want to close the last two deals.

                                  1- buy = 1250
                                  2- buy = 1235
                                  ave buy price now = 1242.50
                                  when price highest = 1244
                                  i want close 2 position this rule for all

                                  bk7 1 Reply Last reply Reply Quote 0
                                  • bk7
                                    bk7 @khalids222 last edited by

                                    @khalids222

                                    okay so you will never ever have more thant 2open buy positions at the same time, correct?

                                    is this with an application of min profit

                                    https://fxdreema.com/shared/OsFmOGVEc

                                    khalids222 2 Replies Last reply Reply Quote 0
                                    • khalids222
                                      khalids222 @bk7 last edited by

                                      @bk7 okay so you will never ever have more thant 2open buy positions at the same time, correct?

                                      yes it is correct
                                      I will try it

                                      1 Reply Last reply Reply Quote 0
                                      • khalids222
                                        khalids222 @bk7 last edited by

                                        @bk7 https://fxdreema.com/shared/z7qGaVZE

                                        0_1628263884056_609e8258-b1a2-443d-be53-b911727f6ad0-image.png

                                        bk7 1 Reply Last reply Reply Quote 0
                                        • bk7
                                          bk7 @khalids222 last edited by

                                          @khalids222

                                          how you open the second trade?
                                          this way buy is just once there is no trade
                                          and what does the closing logic do or should do?

                                          khalids222 1 Reply Last reply Reply Quote 0
                                          • khalids222
                                            khalids222 @bk7 last edited by

                                            @bk7
                                            0_1628265764295_da365df9-a138-4798-927d-ff29dbad03f8-image.png

                                            Whenever the price drops ten points, a buy deal will be opened.
                                            When the price goes up, there will be only two options:
                                            Let me explain better

                                            1- buy = 1280 lot = 0.01
                                            2- buy = 1270 lot = 0.02
                                            3- buy= 1260 lot= 0.03
                                            4- buy = 1250 lot = 0.04 the price here now
                                            when price rise from 1250 to 1260 i want close number 3 &4 >
                                            Then there will be two options, the price continues to rise and deals are closed

                                            The second option is to continue going down, and there will be a certain limit, then it will enter the sell

                                            bk7 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post

                                            Online Users

                                            S
                                            G
                                            L
                                            K
                                            H

                                            19
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors