Screener for reaching 52 week high
Author: jaycoje
Creation Date: 2/4/2011 10:34 AM
profile picture

jaycoje

#1
Hello. I'm very new to Wealth Lab and very new to Script writing, but I want to write a simple screener as my first project. My question is: is there an existing daily screener that has been written that I can use and just write and plug in my own criteria like, prices reaching 52 week highs, support and resistance breakthroughs, moving average crossovers ect. Please let me know if this is possible or if this has been covered before.
Thanks.
profile picture

Cone

#2
Click Help > WealthScript PRogramming Guide and then navigate to Techniques > Creating a Screener

Also note the link at the bottom "How to: Convert Strategy Code into a Screen". This is important for non-programmers because you can use drag and drop in the Strategy Builder (Ctrl+Alt+R) for most or all of your Rules, convert it to code, and just edit one line to turn it into a Screener.
profile picture

jaycoje

#3
Thanks Cone! I have read and experimented with the Strategy Builder but I'm looking for rules that are specific to my needs, that's where I'm having trouble. For example, with the Pricing rules I want to know when a price is within a certain percent of reaching a 52 week high, and prices reaching resistance levels at closing prices on daily charts. I know what I want in my head, but putting it into code is complicated as of now, looks like I a lot of learning to do. Thanks again.
profile picture

Cone

#4
This will get you started with that -

CODE:
Please log in to see this code.


Modified for a screen:
CODE:
Please log in to see this code.
profile picture

jaycoje

#5
Thanks again Cone! That really helps, I will work with it over the weekend.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).