Can someone help me to make a screener with weekly highest high?
Forums › ProRealTime English forum › ProScreener support › Can someone help me to make a screener with weekly highest high?
- This topic has 7 replies, 2 voices, and was last updated 4 years ago by
Nicolas.
-
-
09/22/2020 at 8:35 AM #144944
Hi,
Can someone help me develop a screener with following criteria?
- High this week was the highest in 50 weeks
- High this week was at least 200% the high 50 weeks ago or greater than 150% of the lowest low the past year
- Volume this week is greater than 130% of average volume the past 50 weeks
- Closed this week greater than $20
Thanks in advance for the help…
09/22/2020 at 9:02 AM #144954Could you please update your profile with your country?
Here is the screener code you are requesting:
123456c1 = high>highest[50](high)[1]c2 = high>=high[50]c3 = volume>=1.3*average[50](volume)c4 = close>20screener[c1 and c2 and c3 and c4]09/22/2020 at 10:16 AM #14497009/22/2020 at 10:23 AM #14497109/22/2020 at 10:26 AM #144973By learning to code? 😀
You can simulate the percentage change of price over the stocks lists since the first detection of this screener criteria:
123456789101112if test = 0 thenc1 = high>highest[50](high)[1]c2 = high>=high[50]c3 = volume>=1.3*average[50](volume)c4 = close>20if c1 and c2 and c3 and c4 thentest = 1start = barindexendifendifscreener[test](roc[max(1,barindex-start)])09/22/2020 at 10:27 AM #14497409/22/2020 at 11:03 AM #144978Ok 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]
09/22/2020 at 11:06 AM #144979Your 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.
-
AuthorPosts
Find exclusive trading pro-tools on