fxDreema

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

    Count buys and sells by asset

    Questions & Answers
    2
    8
    293
    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.
    • C
      Cameron101 last edited by

      Hi all. I know this can be done using buckets however I run out of buckets at times so need a better way and I am hoping someone can help with a more efficient method.

      I have two assets, Asset one and Asset two (Constants). At any time I can be in either buys or sells and I want to be able to see by count how many buys I have in asset one, how many sells I have in asset one how many buys I have on asset two and how many sells I have on asset two. I have been struggling with this all day and it should be simple hahaha. I have attached a link to what I have come up with (doesn't work), to show my logic and objective. I hope someone can assist. Many thanks https://fxdreema.com/shared/NCsMiWXxb

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

        That is loops but you are limiting to 1, above the for each modify variable to 0 and don't limit the trade counts, this should give you all of 1 type

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

        C 1 Reply Last reply Reply Quote 0
        • C
          Cameron101 @jstap last edited by

          @jstap said in Count buys and sells by asset:

          That is loops but you are limiting to 1, above the for

          Hi jstap. Firstly, thanks so much for replying. I have implemented what you said as I understand it however I am still getting the same outcome. I have added the updated shared link. May I ask, am I missing something? Thanks again.
          https://fxdreema.com/shared/J10BRNI9d

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

            Lets look at 1 at a time, what comment results are you getting for buy groop 1?

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

            C 1 Reply Last reply Reply Quote 0
            • C
              Cameron101 @jstap last edited by

              @jstap Hi mate. It is placing the trades and the comments are appearing as they should, its just not summing the total of trades.

              Capture.JPG

              This is the updated link with the comments.

              https://fxdreema.com/shared/pHBoi1GIc

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

                Your place holder 1 buys are always going to == 1 which means your asset 1 buys will always == 2?
                image.png

                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
                • C
                  Cameron101 last edited by

                  Oh!! makes sense. Thanks so much for your help

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

                    @proppassed 👍

                    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

                    E
                    E
                    A
                    A
                    F
                    M
                    V

                    15
                    Online

                    146.8k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors