Remove inside bars from calculations

Forums ProRealTime English forum ProBuilder support Remove inside bars from calculations

Viewing 6 posts - 1 through 6 (of 6 total)
  • #205130

    Hi,

    Is there a way to remove all the inside bars, so that the code ignores them in its calculations? So for example I am looking for a directional bar down (Low> Low[1]) , (High < High[1]) ,relative to the previous bar that is not an  inside bar.

    I would still like to display all the bars as normal on the chart.

     

    Many thanks in advance.

    #205131

    Sorry I meant (low<Low[1]) and (High<High[1]).

    #205133

    Is this what you mean?

    1 user thanked author for this post.
    #205184

    Not quite. Unless I have misunderstood how to use your code.

    I am working on an indicator that requires inside bars (or multiple inside bars) to be ignored completely. The problem comes when a bar down comes after an inside bar but itself is an inside bar to a previous larger bar.

    I am looking to find a low bar relative to the previous bar that is not an inside bar. I thought if I removed all inside bars from the calculations then the (Low<Low[1]) and (High< High[1]) would work correctly based on the remaining bars.

    Pic attached

    #205233

    This modified version tracks an InsideBAR until any of its limits are broken, thus preventing signals from being returned:

     

    1 user thanked author for this post.
    #205295

    Yes that’s it.

    Thank you Roberto

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

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