fxDreema

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

    Count Position/Orders NOT working on .ex5

    Bug Reports
    3
    3
    1010
    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.
    • tcanuto
      tcanuto @fxDreema last edited by

      @fxDreema Now I understood after a long time! 😒
      It would be even better for MT5 to volume count as well.

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

        Hi there 🙂

        trying to solve this issue:

        my program logic:
        If it have more than 3 orders/positions openned, it won't open any others. But It's just not happening. It keeps opening orders like crazy. 😠

        my program is damn simple: https://fxdreema.com/shared/gQgtCUamc

        FxDreema could you take a look please? 😎

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

          In MQL5 you can have 1 position per symbol. If you buy 10 times, this still results into 1 position. You can only have more than 1 position if they belong to different symbols (markets).

          I guess you are thinking that the block counts the number of deals who resulted into the current position. Visually multiple arrows are printed. But no, the block does not check this.
          By the way I was never thinking about this. If I have to make this block again, I think I would make it this way, to detect how many deals there are in a position. Or I can make "Check trades count", but the last time I was working with those deals it was horrible, so I'm not sure how well such thing can be done 🙂

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

          Online Users

          K
          M
          L
          E
          H
          M
          M

          13
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors