fxDreema

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

    Resolving the issue of the difference in calculated lot size in capital management 'Risk % of Balance (Volume size depending on Stop-Loss)' between 2 different brokers

    Questions & Answers
    4
    19
    868
    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.
    • AlirezaTrade
      AlirezaTrade last edited by AlirezaTrade

      @fxDreema @l-andorrà @roar

      Hello good time,
      Below are the specification information images for the XAUUSD symbol from two brokers, where broker 1 calculates the lot size correctly, but broker 2 calculates it incorrectly. What can I do to make the bot calculate the lot size for the XAUUSD symbol correctly in both brokers?

      Broker 1 :
      It works correctly.png
      .
      Broker 2 :
      Does not work right.png

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

        You need to use two different versions of the same bot by changing the pip size rules for each broker or asking roar how can be added the '*point' code within the project. Sadly I have no idea how to do the second option.

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

          Is the pip value lower on broker 2?

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

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

            @jstap @l-andorrà

            Information for a demo account on a broker that is experiencing issues with symbol XAUUSD:
            Server: MetaQuotes-Demo
            Login: 74227591
            Password: 8yC@LbZi

            Also, here's a link to a robot that you can test with the strategy tester to see if it risks 1% balance with this broker or not.
            https://fxdreema.com/shared/xDSuiYtSc

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

              Set up a small test project, one that places a trade then closes it on SL, use this to check if you get the same values on both brokers, with the same lot size, also check if you gat the same pip distance with your crosshair. you can do this on back test, ctrl and f will bring this up on MT5. FYI lot siz
              es on FTMO tend to be a lot bigger for the same value.

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

              AlirezaTrade 1 Reply Last reply Reply Quote 0
              • roar
                roar last edited by

                The brokers differ in "Tick value" and leverage setting. So it would be normal that you get different lot sizes for the same "risk". If you let a trade go into SL, do you lose $60 on both accounts?

                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

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

                  @jstap

                  The crosshair is the same on both brokers, and if a fixed pip is entered, the same amount of loss will be calculated on both brokers.

                  This issue arises when using Money Management "Risk % of Balance (Volume size depending on Stop-Loss)" in the robot.
                  2023-09-25 11_57_29-risk % test.png

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

                    @roar
                    No
                    In Broker 1, $60 is lost
                    And in Broker 2, $600 is lost

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

                      @AlirezaTrade you can try using a point value as SL, and then calculating the lot size "manually" in a custom block:

                      https://fxdreema.com/shared/OavmTKGic

                      The example uses 123 point SL with a 1% risk.

                      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

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

                        @roar

                        With your created robot, the 1% risk is not calculated correctly in this broker.

                        Balance = $6000
                        SL = 500 points
                        Risk = 1%
                        Calculated volume = 1.2 lot
                        Loss = $600

                        The correct volume with a 1% risk should be 0.12 lot, so that with a 500-point stop loss, the loss would be $60.

                        2023-09-25 22_09_50-Strategy Tester Visualization _ risk_per_point1 on XAUUSD,H1 from 2023.09.20 to .png

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

                          @AlirezaTrade that's interesting.

                          I added some prints to the EA, check out what values it prints to Experts:
                          https://fxdreema.com/shared/XDU7ADF9b

                          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

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

                            @roar

                            It does not compile.
                            2023-09-26 19_34_40-risk_per_point.png

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

                              @AlirezaTrade add one more bracket here:
                              4d464adb-0ffe-4e3a-a1c1-1d5de0c741fa-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

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

                                @roar

                                TickValue: 0.1
                                TickValue Profit: 0.1
                                2023-09-26 20_57_09-.png

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

                                  @AlirezaTrade the math would add up with this new formula, not sure it applies to all cases: https://fxdreema.com/shared/MeB6yIyMd

                                  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

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

                                    @roar

                                    This formula does not calculate correctly.
                                    The volume is considered 0.01 lot.
                                    2023-09-26 23_20_03-.png

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

                                      And how about this?
                                      https://fxdreema.com/shared/DprjQjg6c

                                      I'm just guessing, difficult to replicate your 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

                                      AlirezaTrade 2 Replies Last reply Reply Quote 0
                                      • AlirezaTrade
                                        AlirezaTrade @roar last edited by

                                        @roar
                                        This formula does not calculate correctly.
                                        The volume of 0.01 lot is considered.

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

                                          @roar
                                          Broker 1, which is working properly, the journal information is like this:

                                          TickValue: 1.0
                                          TickValue Profit: 1.0

                                          2023-09-27 10_23_18-Greenshot.png

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

                                          Online Users

                                          M
                                          2
                                          M
                                          M
                                          N
                                          B
                                          A
                                          B
                                          S
                                          E
                                          W

                                          25
                                          Online

                                          146.6k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors