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
This 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.
In 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!
When I did the testing it seemed that it was the not displayed “missing” bars which there were a number on the minute char not just the difference of a 1 bar nuance
To 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.
I 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.
You should tell me:
- instrument used
- date and time of tha bar
- TF used
and you should also highlight bars you are referencing.