fxDreema

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

    My robot gets the volumes wrong, please help

    Questions & Answers
    4
    15
    427
    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.
    • O
      OmidRezazadeh last edited by

      Hello
      I wrote a robot with a condition
      For example, if the moving average is 10, the moving average is 20
      If he gives a bullish cross, take a buy position, and if he gives a bearish cross, take a sell position

      Now, I want to increase the volume of the next position when the TP hits, and if it stops, the volume will return to the first position

      But well, my MetaTrader 5 has become such that when I enter 1 fixed lot, it takes the wrong size of the position

      Screen Shot 2-24-2024 at 3.42 PM.png

      Now I have entered the initial lot number 1 to take the positions fixed with the volume of 1 lot, but it takes like this

      Screen Shot 2-24-2024 at 3.43 PM.png

      When I install the new Metatrader 5, for a short time it gets the volume of transactions correctly, but after several times of testing, it crashes and gets the wrong volumes.

      1 Reply Last reply Reply Quote 0
      • O
        OmidRezazadeh last edited by

        Is there no one to solve our problem?

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

          I thought I replied to this earlier, you have a couple of choices, place trade using a variable and increase under buy/sell, then reset when needed. Use pink blocks in a separate tree, get the last lot and adjust to increase.

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

            I did this too, but it didn't work

            1 Reply Last reply Reply Quote 0
            • I
              Ipod last edited by

              Can you share the project so we can double check properly please.

              1 Reply Last reply Reply Quote 0
              • O
                OmidRezazadeh last edited by

                I uninstall Metatrader and reinstall it. It works fine for a few times when I test it, but after a few times it crashes again.
                shared/opKWjdM0e

                A 1 Reply Last reply Reply Quote 0
                • A
                  ambrogio @OmidRezazadeh last edited by

                  @OmidRezazadeh You are using martingale, put running trades only

                  betting.PNG

                  1 Reply Last reply Reply Quote 1
                  • A
                    ambrogio last edited by

                    And check the balance amount also

                    1 Reply Last reply Reply Quote 0
                    • O
                      OmidRezazadeh last edited by

                      It is the same in normal mode Even if I leave the lot fixed, it still selects the volumes like this

                      A O 2 Replies Last reply Reply Quote 0
                      • A
                        ambrogio @OmidRezazadeh last edited by

                        @OmidRezazadeh this is the backtest of your project as it is

                        betting.PNG

                        1 Reply Last reply Reply Quote 0
                        • A
                          ambrogio last edited by

                          Remember to reset "how many losses", don't leave 0

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            ambrogio @ambrogio last edited by

                            reset how many losses=2

                            betting.PNG

                            1 Reply Last reply Reply Quote 0
                            • O
                              OmidRezazadeh @OmidRezazadeh last edited by

                              @ambrogio I run the same project and it imports volumes like this

                              Screen Shot 2-24-2024 at 9.55 PM.png

                              It has been like this for two days
                              It's like I save the project, but the Metatrader cache still doesn't recognize this new project

                              1 Reply Last reply Reply Quote 0
                              • O
                                OmidRezazadeh last edited by

                                @ambrogio Thanks dear friend
                                As you said, I checked the balance
                                Because the entered balance was low
                                He used to mistake the volumes like this

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  ambrogio @OmidRezazadeh last edited by

                                  @OmidRezazadeh 👍

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

                                  Online Users

                                  H
                                  H
                                  A

                                  8
                                  Online

                                  146.7k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors