Screening shares weekly timeframe

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #240716 quote
    segie
    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
    robertogozzi
    Moderator
    Master

    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
    segie
    Participant
    Senior

    Thank you very much

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

    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
    segie
    Participant
    Senior

    Thank you

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

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

    segie thanked this post
    #241379 quote
    segie
    Participant
    Senior

    Noted. Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

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 segie
1 year, 2 months ago.

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