fxDreema

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

    "Once Per Bar" Block Does Not Activate During a Trade

    Questions & Answers
    4
    10
    494
    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.
    • L
      lemans455 last edited by

      Hi,

      I have an "Once Per Bar" block that is working, once every bar, except when there is an active trade, it stops working for each candle that occurs while the trade is live. As soon as the trade closes the "Once Per Bar" block activates again.

      I have the "Once Per Bar" block connected to an hours filter and nothing else.

      Anyone know why this is happening?

      Thanks

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

        This doesn't happen to me, share your project link so block set up can be looked at

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

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

          @jstap Sorry for the delay. Here is an example of what I am trying to do and it stops counting with the pass once the trade is put on. I looked into it further and it seems it is not the once per bar that is the problem, as it stops the count even without the once per bar on.

          https://fxdreema.com/shared/JZ4099bP

          I am just trying to count CID from a previous candle so I can use that candle later in the future. I dont know of any other way to keep CID from a past candle.

          Thanks for the help

          S 1 Reply Last reply Reply Quote 0
          • S
            sktsec @lemans455 last edited by

            @lemans455
            You have no position at the top. That may explain

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

              Separate your trees so the hours filter starts the tree:
              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! 😊

              L 1 Reply Last reply Reply Quote 1
              • L
                lemans455 @jstap last edited by

                @jstap I did this and when the buy is put on it still stops counting during the trade and resumes once the trade is closed.

                Any idea on how to overcome that problem? I have tried a bunch of different combos and I can not get the count to keep counting bars during any trades.

                1 Reply Last reply Reply Quote 0
                • B
                  Byens last edited by

                  image.png

                  change pass block with formula or modify block

                  https://entrepreneurstart.pw | https://www.mql5.com/en/users/byens8199

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    lemans455 @Byens last edited by

                    @Byens Thanks for the suggestion but that stops counting as soon as the trade is put on and it does not count again until the trade is closed.

                    There has to be a way to get the blocks to function once a trade is on. I do not get it, but its not working.

                    1 Reply Last reply Reply Quote 0
                    • L
                      lemans455 @sktsec last edited by

                      @sktsec Thanks!!! I think this is the problem, since this turns false once a trade is on, I moved this out and it seems to be counting now!!

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sktsec @lemans455 last edited by

                        @lemans455
                        You are welcome

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

                        Online Users

                        M
                        J
                        P
                        L

                        22
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors