fxDreema

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

    Counter is not working (Reset?)

    Questions & Answers
    3
    5
    214
    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.
    • O
      OLLIFDG last edited by OLLIFDG

      When I backtest this project it seems like to work. It is buying and selling two times. When it comes to the third it is not buying because the couter which is set to 10 in the variable. After that it is not buying anymore but I reset the counters and vaiables after the counter past 10 but it stops there with buying. What could be the probelem?

      https://fxdreema.com/shared/7xnPiNohc

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

        Counter reset is done by its ID. Have you checked ? I use the counter Block very often that works well

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

          Thanks for the reply. The number from the counter ID is the same in the two blocks. What else can be the problem? The trgger part on the left (RSI) is blocked after it's passing the <30 level. It's blocked by put block two in off status. Then the right part continues. In this the right part should put block two on after the max amount of passes (10 set in vaiable). The thing is that it looks like it's not activate the "wrong" yellow part of the conter block 14. So it's not opening the left part for continuation.
          Schermafbeelding 2025-01-23 172247.png

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

            Without looking too deeply into this it looks like you are resetting the counter every time it passes n times by connecting the reset to yellow

            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
            • S
              sktsec @OLLIFDG last edited by sktsec

              @OLLIFDG
              It also appears to me that the counter is passed every time as suggested by @jstap

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

              Online Users

              S
              A
              R
              B
              N
              M
              A
              T
              V
              M
              A
              A
              R

              24
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors