Screening shares weekly timeframe

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #240716 quote
    segiesegie
    Participant
    Senior

    Hi,

    Please help me with a screening code for:

    Moving average crossover between price and a 20 day moving average on a weekly chart.

    Plus a filter e.g for shares between $1 and $5.

    Regards,

    Segie

    #240731 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    Timeframe(Daily)
    Sma20 = average[20,0](close)
    Timeframe(Weekly)
    c1    = close CROSSES OVER Sma20
    Timeframe(default)
    c2    = (close >= 1) AND (close <= 5)
    c3    = (high <> low)
    Cond  = c1 AND c2 AND c3
    SCREENER[Cond]
    Iván González thanked this post
    #240741 quote
    segiesegie
    Participant
    Senior

    Thank you very much

    #240742 quote
    segiesegie
    Participant
    Senior

    Can a time period also be added?

    For example, based on the previous weekly candle close.

    So if I run a screener today I can screen for the  previous weekly candle/ price close.

    Regards,

    Segie

    #240747 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can check the previous weekly candle withy [1] and the 5th previous daily candle with [5]:

    Timeframe(Daily)
    Sma20 = average[20,0](close[5])
    Timeframe(Weekly)
    c1    = close[1] CROSSES OVER Sma20
    Timeframe(default)
    c2    = (close >= 1) AND (close <= 5)
    c3    = (high <> low)
    Cond  = c1 AND c2 AND c3
    SCREENER[Cond]
    #240762 quote
    segiesegie
    Participant
    Senior

    Thank you

    #241356 quote
    segiesegie
    Participant
    Senior

    Hi,

    Regarding Line 2. Will ‘close 5’ be affected by the type of day I run it?

    Example on Friday, Saturday or the next Monday. Trying to figure out if it takes Saturday and Sunday into account?

    Regards,

    Segie

     

     

    Regarding

    #241371 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    [5] is the 5th previous trading day, so holidays are ignored.

    segie thanked this post
    #241379 quote
    segiesegie
    Participant
    Senior

    Noted. Thanks

Viewing 9 posts - 1 through 9 (of 9 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

Screening shares weekly timeframe


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
segie @segie Participant
Summary

This topic contains 8 replies,
has 2 voices, and was last updated by segiesegie
1 year, 9 months ago.

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