fxDreema

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

    Count Number of Open Buy / Sell Position then store in variable

    Questions & Answers
    2
    4
    137
    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.
    • P
      pipsondeck last edited by

      Hey guys, ive been working for this project for about 3 days but still i cant get it fixed.

      What I wanted to do is count the number of open position separately the buy / sell

      Now, here are the conditions.

      First Condition

      if Trade Count Buy = 1
      if Trade Count Sell = 0
      Condition 1 == 1
      if above is false then Condition 1 == 0

      if Trade Count Buy = 10
      if Trade Count Sell = 1
      Condition 1 == 1
      if above is false then Condition 1 == 0


      Second Condition

      if Trade Count Buy = 1
      if Trade Count Sell = 1
      Condition 2 == True
      if above is false then Condition 2 == 0


      Third Condition

      if Trade Count Buy >= 2
      Total Lot Buy != Total Lot Sell
      Condition 3 == True
      if above is false then Condition 3 == 0


      My problem is that, it seems condition 2 and 1 are interchanged, if there is position then it says Condition 1 = 0.

      Guys hope you can help me here.

      Thank you.

      https://fxdreema.com/shared/v97KP0iJb

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

        This will do it: https://fxdreema.com/shared/59hH95MFc

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

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

          @jstap Thank you sir

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

            Your welcome

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

            Online Users

            D
            E
            N
            N
            F
            M
            A
            L
            O

            29
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors