Date

Viewing 2 posts - 1 through 2 (of 2 total)
  • #172392

    Lets say I would like to screen for all stocks that close is 40 % above 100 days moving average for a specific date, lets say for an example 20200324.

    Is that possible and if it is can you pleas help me with the code,

    #172401

    First, ProScreener has a 254-bar lookback limit, so I don’t think it’s possible to gack to that date (maybe it could, considering no trading days).

    Second, the only past/future date referencing instruction is DateToBarindex() (https://www.prorealcode.com/documentation/datetobarindex/), but it can only be used in graphical instructions.

    So you should use only PERIODS to access past bars.

     

     

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

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