fxDreema

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

    How to count Bars reliably using Offline Range Charts?

    Questions & Answers
    3
    7
    1398
    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.
    • S
      Smallous last edited by

      Hello,

      When creating EAs, I often count the Bars using a simple 'Once per Bar, add 1 to a variable' method.

      However, this does not work if the EA is attached to an Offline Range Chart. When attached to an O.R.C., each tick adds 1 to the variable.

      Is their a reliable method of counting Range Bars? I have tried to make use of Volume, but found this to be unreliable.

      Regards
      Paul

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

        Renko chart? I'm not working very often with offline charts, to be honest I lost track of the problems with them, but I will inspect this if you really think that there is a problem

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

          Hello,

          To try and get around the problem I have changed the way I use Volume.

          I now have an IF Volume < 'Previous' Volume then +1 to Candle Count rule.

          There is definitely a problem with the 'Once per Bar' Block in my opinion, when attached to Range (Renko) Offline Charts.

          The above is an attempt to get around the problem as stated in the original post. I am reluctant to use Volume as I have previously found it unreliable in fast moving Markets. I will know by the end of today if my work-around is ok and will update the post.

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

            I think I don't have problems here, or at least not now. Here is what I tried: https://fxdreema.com/shared/OIpVq19Ad
            And I set my Renko like this: http://prntscr.com/7qu4kg So I should have the same timestamp for a big row of candles. But Actual times are like this: http://prntscr.com/7qu5w9

            What times do you have? I think the chance of having the same values for Volume in tho neighbour candles is bigger. By the way I'm talking for times because "Once per bar" knows recognizes a new candle by it's time.

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

              Hello,

              I ran my EA for most of yesterday and it worked OK. If It starts misbehaving I'll adapt it to use Time.

              Thanks very much.

              ......
              CC.jpg

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

                I think it will be better if I adapt this block to work in all cases, but I don't know why it doesn't work for you. Do you really have exactly the same Time components for 2 or more neighbour candles and what Renko EA are you using?

                1 Reply Last reply Reply Quote 0
                • H
                  holygrailfx last edited by

                  has this been solved?

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

                  Online Users

                  E
                  H
                  R

                  11
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors