StockFetcher Forums · General Discussion · Staircase screen<< >>Post Follow-up
bgibbons
2 posts
msg #88459
Ignore bgibbons
2/20/2010 4:38:15 PM

I have tried to write a screen that identifies stocks that are making progressively higher 20 day highs within a time period (say 60 days). I have tried

"show stocks where high reached a new 21 day high in more than 20 of the last 60 days
and close gained more than 10% over the last 60 days"

but have run into syntax errors. I am trying to find stocks that are trending upwards making a somewhat consistent staircase pattern (small incremental gains over the period vs more volatile swings). Any suggestions on how to solve this one would be appreciated.

chetron
2,817 posts
msg #88468
Ignore chetron
modified
2/20/2010 8:15:45 PM

MAYBE...

Fetcher[

SET{VAR1A,HIGH 1 DAY AGO}
SET{VAR1B,HIGH 5 DAY HIGH 2 DAY AGO}
SET{VAR2A,LOW 1 DAY AGO}
SET{VAR2B,LOW 5 DAY LOW 2 DAY AGO}
SET{VAR3,COUNT(HIGH BELOW VAR1A,1)}
SET{VAR4,COUNT(LOW ABOVE VAR2A,1)}
SET{VAR5,VAR3 * VAR4}
SET{VAR6,COUNT(VAR1A ABOVE VAR1B,1)}
SET{VAR7,COUNT(VAR2A BELOW VAR2B,1)}
SET{VBUY,VAR5 * VAR6}
SET{VSHORT,VAR5 * VAR7}
SET{VPLAYS,VSHORT + VBUY}

DRAW VSHORT
DRAW VBUY

VPLAYS ABOVE .5
DO NOT DRAW VPLAYS
CLOSE ABOVE .1
VOLUME ABOVE 100000

]



trendscanner
265 posts
msg #88479
Ignore trendscanner
2/21/2010 7:04:00 AM

This one finds the stocks per your script.

Fetcher[
Count(high reached new 21 day high, 60) > 20
close gained more than 10% over the last 60 days
]




This one eliminates the ones that have pulled back below MA(30)

Fetcher[
Count(high reached new 21 day high, 60) > 20
close gained more than 10% over the last 60 days
Count(close < MA(30), 60) < 0.5
]




chetron
2,817 posts
msg #88480
Ignore chetron
2/21/2010 7:07:13 AM

nice

bgibbons
2 posts
msg #88529
Ignore bgibbons
2/22/2010 3:07:58 PM

Thanks Trendscanner. This is exactly what I was looking for.

StockFetcher Forums · General Discussion · Staircase screen<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.