count back number of bars

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #69460 quote
    cummish
    Participant
    Junior

    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 quote
    robertogozzi
    Moderator
    Master

    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 quote
    robertogozzi
    Moderator
    Master

    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 quote
    cummish
    Participant
    Junior

    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 quote
    robertogozzi
    Moderator
    Master

    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 quote
    cummish
    Participant
    Junior

    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 quote
    robertogozzi
    Moderator
    Master

    No pic attached!

    #70730 quote
    cummish
    Participant
    Junior

    Apologies – attached

    #70737 quote
    robertogozzi
    Moderator
    Master

    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)
  • You must be logged in to reply to this topic.

count back number of bars


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
cummish @cummish Participant
Summary

This topic contains 8 replies,
has 2 voices, and was last updated by robertogozzi
7 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/30/2018
Status: Active
Attachments: 3 files
Logo Logo
Loading...