fxDreema

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

    Increase lot when privious trade hits SL

    Questions & Answers
    3
    13
    629
    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.
    • F
      foxeye last edited by

      hi everyone

      i am having trouble in increasing the lots in this project, i took help of earlier shared post in here, i believe it somewhat working but not working completely. i want to increase the next lot by lot multiplier when SL is hit. i don't understand the lotsReset function completely which i used. here is my project,please check

      https://fxdreema.com/shared/q3MeZqpQb

      Thanks

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

        @foxeye I'm afraid I'm not good at custom code but apparently you want to limit the numer of lots used. Can you please explain how is it supposed to work?

        (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
        • F
          foxeye last edited by

          i want the next lot to decide according to previous loss amount.
          suppose first lot is 0.5
          0.5*10 pips = -5$ SL hit. my question is how many lots should i use next to recover 5$ ? whatever the loss is , it should calculate the lot according to it. i hope you get it what i want to explain.

          1 Reply Last reply Reply Quote 0
          • F
            foxeye last edited by

            I think it's not possible. Is it?

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

              @foxeye I would create a whole structure with variables, so I cannot confirm your custom code is wrong. You would need one variable to store the last closed trade and another one to canlculate the new lot size for the next trade.

              (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
              • F
                foxeye last edited by

                Can you please suggest me the variable & how to set it to get the last closed loss trade? I don't know much coding.A rough idea would be enough, please

                Thanks🙏

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

                  @foxeye Sure! Here you will learn how to create a variable for that last lot size:

                  https://fxdreema.com/instructions/builder/constants-and-variables

                  And here you have the structure to store the value of the last closed trade's lot size into a variable I created:

                  0_1629883905326_01.png

                  Please notice I used those blocks on the 'on Trade' tab. That way you don't need to worry about storing any previous closed trade.

                  (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
                  • F
                    foxeye last edited by

                    thanks for the reply but i don't want to store the value of lot size, i want to store the value of last closed trade (the negative amount) & change the next lot according to it.
                    example - suppose my last close trade is -5$ , my next lot should be 5 lot, if it's -3$ the next lot should be 3 lot.. i hope you understand now.

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

                      @foxeye In this link you will see how to do this, but bear in mind that the last loss will most likely be too large number for the next lot, you can add a formula block in between the custom block and buy/sell to reduce to your desired level. Hope this helps

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

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

                        @jstap 0_1630161713139_SNAPCapture.JPG

                        IS this a correct way? i don't know what this code doing 'lot_buy=(StringSubstr( last_buy_trade_money, 1, 4 ));'

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

                          @foxeye The code is taking digits from the variable, as a loss always starts with -, you have to start 1 after to be able to use. The second part is checking if condition is true, if so it changes the lotsbuy variable to match lotstart variable.

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

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

                            @jstap idk it's not working as i want, after a loss it's still trading with same lot. am i missing something?

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

                              @foxeye Most likely, you need to have buy and sell in on chart, this is what makes EA to buy/sell with the increased lot in this link I have put the mt5 version, if you press the ex5 button then you will get the EA to see working on back test, if you press the MQ5 button you will get it in FXDreema to adjust how 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! 😊

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

                              Online Users

                              Y
                              H
                              R
                              A
                              U

                              19
                              Online

                              146.9k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors