How to count Bars reliably using Offline Range Charts?
-
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 -
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
-
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.
-
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/7qu5w9What 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.
-
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 -
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?
-
has this been solved?