count back number of bars

Forums ProRealTime English forum ProBuilder support count back number of bars

Viewing 9 posts - 1 through 9 (of 9 total)
  • #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

    #69467

    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.

     

    #69469

    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!

     

    #70182

    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

    #70193

    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.

    #70568

    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.

     

    #70583

    No pic attached!

     

    #70730

    Apologies – attached

    #70737

    You should tell me:

    1. instrument used
    2. date and time of tha bar
    3. TF used

    and you should also highlight bars you are referencing.

Viewing 9 posts - 1 through 9 (of 9 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login