Can someone help me to make a screener with weekly highest high?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #144944 quote
    Alex C
    Participant
    Junior

    Hi,

    Can someone help me develop a screener with following criteria?

    1. High this week was the highest in 50 weeks
    2. High this week was at least 200% the high 50 weeks ago or greater than 150% of the lowest low the past year
    3. Volume this week is greater than 130% of average volume the past 50 weeks
    4. Closed this week greater than $20

    Thanks in advance for the help…

    #144954 quote
    Nicolas
    Keymaster
    Master

    Could you please update your profile with your country?

    Here is the screener code you are requesting:

    c1 = high>highest[50](high)[1]
    c2 = high>=high[50]
    c3 = volume>=1.3*average[50](volume)
    c4 = close>20
    
    screener[c1 and c2 and c3 and c4]
    #144970 quote
    Alex C
    Participant
    Junior

    Updated.

    Thanks for your help 🙂

     

    I saw you can backtest strategies on prorealtime, how should i proceed to see if such a screener is producing any interesting results to look further into?

     

    Thanks in advance

    #144971 quote
    Alex C
    Participant
    Junior

    Are you sure about the second criteria?

    High this week was at least 200% the high 50 weeks ago or greater than 150% of the lowest low the past year

    ?  c2 = high>=high[50]

    #144973 quote
    Nicolas
    Keymaster
    Master

    By learning to code? 😀

    You can simulate the percentage change of price over the stocks lists since the first detection of this screener criteria:

    if test = 0 then 
    c1 = high>highest[50](high)[1]
    c2 = high>=high[50]
    c3 = volume>=1.3*average[50](volume)
    c4 = close>20
    if c1 and c2 and c3 and c4 then 
    test = 1
    start = barindex
    endif
    endif
    
    screener[test](roc[max(1,barindex-start)])
    #144974 quote
    Nicolas
    Keymaster
    Master

    Sorry, you are right, you have to multiply the High[50] by 2:

    c2 = high>=high[50]*2
    #144978 quote
    Alex C
    Participant
    Junior

    Ok thanks again  I’ll learn the prorealcode syntax 🙂

    Great suggestion too 🙂

    How do I add the second part of the second criteria which I think isn’t complete:

    High this week was at least 200% the high 50 weeks ago or greater than 150% of the lowest low the past year

    c2 = high>=high[50]*2 OR high>lowest[52](low)*1.5

     

    and what does this 1 mean in the first criteria? high>highest[50](high)[1]

    #144979 quote
    Nicolas
    Keymaster
    Master

    Your syntax is correct for the c2 condition.

    The [1] is an offset 1 bar before the current one. Because the current high cannot be greater than the highest high on the current bar, otherwise it would be itself the highest high.

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

Can someone help me to make a screener with weekly highest high?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Alex C @alex_c Participant
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by Nicolas
5 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/22/2020
Status: Active
Attachments: No files
Logo Logo
Loading...