fxDreema

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

    is this a bug? or what? on counting open buy

    Questions & Answers
    2
    3
    130
    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.
    • M
      mark692 last edited by

      c8a717cb-be8f-4b6d-819c-dd11f379893f-image.png

      Hello, I am trying to count the number of open Buy positions and save the result into a variable called Open_Buy_Count. Even if I only have 1 Buy trade open, the result in Open_Buy_Count becomes 2.

      1 Reply Last reply Reply Quote 0
      • M
        mark692 last edited by

        image.png

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

          modify variable to 0 - for each trade/position (buys or sells) - add 1 to a variable with a formula block. This should constantly check if any trades are running, if not reset variable to 0

          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 1
          • 1 / 1
          • First post
            Last post

          Online Users

          M
          M
          E
          M
          A
          H
          E
          E
          M
          S

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors