fxDreema

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

    Hedging Grid Mix Lots @ Boxxocode

    Questions & Answers
    4
    38
    3871
    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.
    • B
      bigfoot @jstap last edited by

      @jstap Yes but also close the profitable ones as well so the nett closing of the largest loser is positive whilst leaving any remaining positions open and running.

      From trying to solve this is seems quite complex to do?

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

        It is quite complex, first you will need a list of least profitable and profitable running trades, then check the open time, then close the relevant least profitable and a profitable trade.

        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! 😊

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

          Where do I put this block? I tried as the 1st block and also above all open trades sequences and it stops all orders on tester?

          2b2bef5c-de7e-4bec-bf3a-90d2449c2aba-image.png

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

            @jstap I've tried a few variations but on testing just seems to create issues I can't understand. For a testing point of view it would be nice to solve but in reality I can always review open trades at the end of the day and close manually.. also I think checky the value in money might be unstable so I might be better checking the value in pips. Food for thought 🙂

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

              You will need to set up a test project, something like every bar a random trade is placed (buy or sell), then get the 2 lists, you are probably best to use an array for this (I am not good with arrays) if only a small number standard variables would do, then you could check vales using the ticket number, and commit any actions you want.

              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! 😊

              B 1 Reply Last reply Reply Quote 1
              • B
                bigfoot @jstap last edited by

                @jstap I think it might have to go on the too difficult to do list for me at this time....

                1 Reply Last reply Reply Quote 0
                • B
                  bigfoot @bigfoot last edited by bigfoot

                  0c7b5154-506a-4a66-a7fa-3da11b28b66e-image.png

                  So to use this I will need to move all open trade trees and all close trade trees to on init?

                  And then put a once per trade block above each open trade tree and each close trade tree?

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

                    It will work on any tab but, it needs an if trade/order block above, on trade is more a way of saying if this happens do this...

                    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! 😊

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

                      @jstap So I would just need one block as the 1st block before everything else?

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

                        Pink blocks are like 2 to make 1, for each (dark pink) selects the trade/order to work with, the next (normally light pink) commits (or starts) the action you want to do.

                        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
                        • B
                          bigfoot last edited by bigfoot

                          So thiswould be it?

                          image.png

                          I need a purple for each trade at the start of each open trade sequence followed by the pink once per trade command with the allow this to work with trades created before ticked to yes?

                          And would this also count the previous trades as and close them as well as per the ea or would this just open new ones? So I would need to put these blocks in front of the close blocks?

                          https://fxdreema.com/shared/glhLubdab

                          1 Reply Last reply Reply Quote 0
                          • B
                            bigfoot last edited by bigfoot

                            I'm testing this now. A way around this would be to count number of open trades, as long as it counts preious trades (which it should if thy have a magic number) then I don't have a problem as i'm using the trade count to close open trades....? my internet connection is dodgy so it's not unusual for mt4 to disconnect and reconnect, which it has just done.. 1st trade on and then it registered the 2nd trade opened.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              borhanEA last edited by

                              hi every one
                              and you @jstap
                              i have grid strategy in my bot
                              when my trade goes into loss, the bot stars to grid
                              i want the pips scaping in the grids to increase exponentially
                              for example:
                              1st Grid= 5pip
                              2nd Grid = 10pips to 1st Grid
                              3d Grid = 15pip to 2nd Grid

                              so i need calculate pips between trades
                              but i don't know how
                              pleas help me to create
                              thanks

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

                                To put this simply you want to start grid trading after a set action, can you get a test project to place the correct grid trades, and can this start after said action? Once you can get things doing this, you can add to your main project

                                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
                                • B
                                  borhanEA last edited by

                                  https://fxdreema.com/shared/sTsXf1bab

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    borhanEA last edited by

                                    Screenshot (51).png
                                    Screenshot (52).png

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bigfoot last edited by bigfoot

                                      If it was me I'd probably use the count trade blocks. If more than one sell then use grid one at 5 pips if more than 2 then use grid pip distance more than 10 etc...

                                      So I'd add grid nearby pips as constants... grid5, grid10, grid20... not sure if it would work but that's where I would be looking

                                      image.png

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        bigfoot @bigfoot last edited by bigfoot

                                        @bigfoot Live tested this and magic number does the job and closes the trades as normaleven when turning the terminal off and on agin after the weekend. Solved thanks for your help guys! 😊

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

                                        Online Users

                                        R
                                        F
                                        S
                                        D
                                        V

                                        24
                                        Online

                                        146.7k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors