fxDreema

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

    Every n'tick block

    Questions & Answers
    4
    8
    297
    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.
    • A
      adentist last edited by

      Hi;
      What is the count field in every ntick or every nbars block.I couldnt understand the logic of count field here..For example at the top my ea have "every n'tick" block with a count of "100" ..then below this my condition blocks and at the bottom buy now block..What is the logic here works for COUNTING nticks ..
      thx..

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

        Without that block, the full block flow is executed on every tick (every price update). With that block, the lower blocks in the flow are executed every 100th tick.

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

          Block passes once every 100 ticks.

          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
          • A
            adentist last edited by adentist

            thank you all..Then what about the every n bars..Default value here is 5 ..Does it passes once every 5th bar count ? For example in 1 Hour chart ..Does it pass once in 5 hours for controlling the conditions???Because every bar forms in 1 hour ???

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

              Yes 1h chart = 60min candle so once every 5 hours

              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
              • A
                adentist last edited by adentist

                then if i want to check my conditions in 1hr chart .Every bar (closed value)continuosly..I must use 1 for the every n bar count field..block do i ?Is this correct??

                1 Reply Last reply Reply Quote 0
                • A
                  adentist last edited by

                  or for example ..I have condition of ma5 x> ma 20 (cross)..If I have "every nbar" block at the top of blocks with a count of 5 ..Then opening a trade will be so hard because if it crosses at the 3rd bar and the execution because of the "every nbars at count of 5 "..Sorry for my English..Thx all of you..

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

                    @adentist
                    I think you should not skip bars in such specific case. "Every n ticks/seconds", is very useful, for example, if you want limit the frequency of do some heavy computation job to prevent unpreditable problems

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

                    Online Users

                    K
                    M
                    M
                    C

                    29
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors