count back number of bars
Forums › ProRealTime English forum › ProBuilder support › count back number of bars
- This topic has 8 replies, 2 voices, and was last updated 6 years ago by robertogozzi.
-
-
04/30/2018 at 12:50 PM #69460
Hi I am counting back bars
eg lowest[8](low)
this is on a 5 minute chart. When I go to a 1 min chart I want the same length of time so multiplied 8 x 5 = 40min.
But the value that it returns is different. The only thing I can find that might be related is that on the minute charts there seems to be bars missing although if I hover over where they are they give a hi/lo/close so they do exist but seems like they are being skipped over when counting back the bars? If I count the number of “missing” bars it seems to align with how much further it is extending back ie ignoring those mars
Anyone experienced this and thoughts on overcoming? Thanks
04/30/2018 at 1:44 PM #69467This is a “normal behaviour, since if you select 5-min bars from 10:25, down to 09:50 they are just 8 bars.
If you select 40 1-minute bars from 10:25 down to 09:51 they are 40 bars, but not the same, since the 10:25 5-min bar actually closes at 10:29.
From my pic you can easily spot the difference.
04/30/2018 at 1:54 PM #69469In my pic I only selected 5 bars, from 14:05 through 14:25, that is only 21 1-minute bars displayed, since it starts counting backwards from 14:25. You’ll have to do some math to adjust a TF to another one when doing these tricks!
05/11/2018 at 8:47 AM #7018205/11/2018 at 10:18 AM #70193To visualize the differenze you have to draw a RECTANGLE on the higher TF to highlight the desired time range, if you have set the option to display objects in lower TFs, you’ll notice if any bar in the lower TF is outside the rectangle or not.
05/16/2018 at 8:11 AM #70568I have also attached an example.
the attached image shows the high and low from the bar highlighted back for 8 bars (indicator at the bottom)
Yet the high on the indicator for that many bars actually goes three bars further back which is the same number of invisible/missing 1 min bars
This is why I think it is ignoring them and going back too far.
05/16/2018 at 8:59 AM #70583No pic attached!
05/18/2018 at 1:48 AM #7073005/18/2018 at 7:32 AM #70737You should tell me:
- instrument used
- date and time of tha bar
- TF used
and you should also highlight bars you are referencing.
-
AuthorPosts
Find exclusive trading pro-tools on