fxDreema

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

    How to calculate the sum of all open lots?

    Questions & Answers
    2
    11
    1451
    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.
    • A
      Acc last edited by

      Good afternoon! Dear Administrators, I am developing a grid expert Advisor, and at some point, he should calculate the sum of all open lots. To open the opposite position in a double size (for example). I was faced with the problem of how to make a loop? And return the resulting value to a variable? Please tell me how to solve this problem? Thanks in advance!
      https://fxdreema.com/shared/SlymdDqY

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

        Oh no, Terminal Variables used again... now I will definately rename those.
        Do it like this here - http://prntscr.com/a95vic

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

          Thanks for the help! But for some reason when the loop begins to work, MT4 crash... Please Tell me how to find the Sum of all open lots buy or sell? How to do it correctly?
          https://fxdreema.com/shared/CJSE5rR8b
          Thanks in advance!

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

            This shows the sum of lots for buys, sells and both https://fxdreema.com/shared/xN2HKsDyd

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

              Thank you very much! It works. I have another question, why the EA is no longer working after exporting? I opened the code in MetaEditor when compiling writes: "template parameter ambiguous, could be 'double' or 'int'." This is for all previous projects AAAaaaaa!!!

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

                https://fxdreema.com/shared/PxgiFzSUd

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

                  For some reason MetaEditor swears to the execution blocks: "check last winner\loser type". What to do now?

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

                    There was a bug in one function, is it ok now?

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

                      No, still does not work. I tried to make a new project, it works, until you don't add a blocks: "check last winner\loser type".

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

                        Now?

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

                          Yes, now works! Thank you! 🙂

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

                          Online Users

                          C
                          C
                          K
                          T

                          19
                          Online

                          146.9k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors