Help Debugging Range Compression in Screener

Forums ProRealTime English forum ProBuilder support Help Debugging Range Compression in Screener

Viewing 4 posts - 1 through 4 (of 4 total)
  • #248540

    Hello everyone,

    I’m struggling with implementing a proper range compression check in my screener. The requirement is:

    Current candle’s range (high and low) must be fully contained within the range established by bars 5-14 ago (10 bars total).

    I’ve tried several approaches but stocks making new highs are still appearing in results:

    What am I missing? I’ve confirmed that stocks breaking to new highs (where current High > any High from 5-14 bars ago) are somehow passing this filter.

    Could anyone spot an issue with my implementation or suggest a bulletproof way to ensure the current candle is ENTIRELY contained within the historical range?

    Thanks in advance!

    David

    #248541
    JS

    Hi David,
    I tested your first version of the screener on the U.S. stock market, and the results were in line with the screener itself…
    Do you have an example of where things are going wrong on your end?

    #248603

    Hi, I have tried it too and it works correctly.
    Is it possible that you have tested it with the market open on assets that you don’t have real time? In that case you have to look at the previous candle.

    1 user thanked author for this post.
    #248708

    Yes exactly this, thanks

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

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