Date

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
5 years, 2 months ago.

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