fxDreema

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

    Increase lots after x losses

    Questions & Answers
    4
    30
    5707
    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.
    • J
      jzfusion last edited by

      I want to be able to increase lots based on the number of times I've lost. The current martingale options don't allow that.

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

        @jzfusion I assume you mean consecutive losses.
        https://fxdreema.com/builder/shared/fuIrvWswc

        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

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

          @roar Can u help me to prevent EA from entering another trade until X time if it had two consecutive losses?

          1 Reply Last reply Reply Quote 0
          • R
            ranjayforex last edited by

            https://fxdreema.com/shared/4wXuUDw2c

            wondering is this can work

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

              @ranjayforex Skipping ticks is full of bugs, I dont use it.
              This is one solution.. If you have further questions, maybe you should create separate thread for it.
              https://fxdreema.com/shared/xbUhhi7Hd

              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

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

                @roar i did yes.. Im PM u

                1 Reply Last reply Reply Quote 0
                • J
                  jzfusion last edited by

                  @roar
                  Can we make 0.1 and 0.01 variables? Will that work?
                  0.1 + lost*0.01

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

                    @jzfusion sure. I would make two constants:

                    baselot = 0.1
                    multilot = 0.01

                    then just copy-paste this function inside the "fixed volume" field:
                    baselot + lost*multilot

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

                      If you want to get creative, you can make it an exponential function so that lots grow more when there is more lost trades (I dont recommend this but its fun to backtest):

                      MathPow(baselot + lost*multilot, 2)

                      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
                      • J
                        jzfusion last edited by

                        @roar
                        Is "lost" an internal function?

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

                          @jzfusion its a variable
                          0_1587293803210_502785af-c875-4001-9426-f985ffdf0152-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
                          • J
                            jzfusion last edited by

                            @roar
                            Thanks
                            I'm unable to fit all three (baselot + lost*multilot) into one constant for the Lot field

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

                              @jzfusion baselot and multilot are constant numbers.
                              Create these constants and variables:

                              Constants:
                              baselot = 0.1 (or whatever you like)
                              multilot = 0.01 (or whatever you like)

                              Variables:
                              lost = 0 (variables always 0, they change it automatically)

                              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
                              • J
                                jzfusion last edited by

                                @roar
                                Logic wise is this how everything should be hanging together? Where the modified one is on the yellow?

                                0_1587298106422_Screenshot 2020-04-19 at 13.07.33.png

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

                                  @jzfusion This is the sell side:
                                  0_1587299086237_1715ea4d-285d-441c-89e4-71faaa3e6b8a-image.png

                                  The consecutive losses block is just for figuring out the exact number of losses, when its work is done, we take exit from the yellow output and continue to opening the sell trade. You dont need second "sell now" block in any case.

                                  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
                                  • J
                                    jzfusion last edited by

                                    @roar
                                    It works however I noticed that there's no option to reset after a number of increments like you can do with the built-in martingale so it keeps going with no regard for the equity 🙂

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

                                      @jzfusion You can tweak it here. For example, when over 5 losses, start over. You can put any two numbers you like, 5 -> 0, or 10 -> 5, or 3 -> 2, whatever you like:
                                      0_1587300776132_710e998b-ce6d-4092-9dc5-2abff2a65852-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
                                      • J
                                        jzfusion last edited by

                                        @roar
                                        How does the user increase "lost" ? It's not exposed as an input variable

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

                                          @jzfusion its a variable, you are not supposed to change it manually. You can control it with block 7. You can also make constants for the numbers 5 and 0 in the above picture so that you can manage them directly from metatrader.

                                          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
                                          • J
                                            jzfusion last edited by

                                            @roar

                                            Does this look right?
                                            https://fxdreema.com/shared/8v2dRexUd

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

                                            Online Users

                                            A
                                            I
                                            E
                                            D
                                            O
                                            A
                                            J
                                            M
                                            R

                                            27
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors