Date

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #172392 quote
    Ludde
    Participant
    New

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

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

Date


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Ludde @ludde Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 8 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/25/2021
Status: Active
Attachments: No files
Logo Logo
Loading...