Lookback Period/Sorting

Forums ProRealTime English forum ProScreener support Lookback Period/Sorting

Viewing 3 posts - 1 through 3 (of 3 total)
  • #147807

    Is it possible to add a look-back period to scanner?

    Above is a very simple TK cross over detection screener, however , this will output anything where a TK cross has taken place (and valid). Is it possible to bracket this by only running the script for a time period i.e last 7 days?

    Secondly is it possible to have the results of screener sorted by the time? By time , i mean , not the scan time , but rather , if asset_1 had a TK-cross on 1st October and asset_2 on 2nd October , is there a way i can list asset_2 before asset_1 in sorting criteria?

     

    Thanks!

    #147813

    In this version of the code, i’m checking if a crosses have occurred in the last 7 periods:

    I also added the bars difference for the sorting criteria, as you required. This code has not been tested.

    1 user thanked author for this post.
    #147882

    thanks! i’ll give it a spin!

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

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