StockFetcher Forums · Filter Exchange · Historical Data Screening<< >>Post Follow-up
nm3tz
3 posts
msg #161945
Ignore nm3tz
8/18/2025 8:56:35 PM

This is working perfectly for me for current point in time screening, but I'm curious if I can scan for all historical data points.

For example,

Show stocks that have gapped up by 50% over the last 10 year period for example, and not just "current day"

xarlor
613 posts
msg #161948
Ignore xarlor
8/21/2025 8:48:31 AM

When you say "gapped" up by 50% over the last 10 year period" do you mean:

Stocks that have at least one day where it gapped up 50% within the last 10 years
or
Stocks that have risen 50% or more over the last 10 years?

nm3tz
3 posts
msg #161950
Ignore nm3tz
8/23/2025 6:43:14 PM

The first one,

Stocks that have at least one day where it gapped up 50% within the last 10 years

xarlor
613 posts
msg #161954
Ignore xarlor
8/25/2025 1:35:00 PM

As usual, we have to work around SF limitations. In this case, the limitation is the "count" command can only go back 252 days (1 year of trading days). So we trick SF to work for us by looking at each year separately

You will need the Advanced subscription due to the amount of "set" statements.

Summary: There were 2,956 tickers that had a 50% gap up in the last 10 years.

I sorted by those that had the most 50-gap days to the least. Unsurprisingly, most of those in the top are micro-penny tickers. You may want to include a price filter to get more pertinent results.

Fetcher[
set{y1,count(Close-to-open gap > 50,252)}
set{y2,count(Close-to-open gap 1 year ago > 50,252)}
set{y3,count(Close-to-open gap 2 years ago > 50,252)}
set{y4,count(Close-to-open gap 3 years ago > 50,252)}
set{y5,count(Close-to-open gap 4 years ago > 50,252)}
set{y6,count(Close-to-open gap 5 years ago > 50,252)}
set{y7,count(Close-to-open gap 6 years ago > 50,252)}
set{y8,count(Close-to-open gap 7 years ago > 50,252)}
set{y9,count(Close-to-open gap 8 years ago > 50,252)}
set{y10,count(Close-to-open gap 9 years ago > 50,252)}

set{gap1,y1 + y2}
set{gap2,gap1 + y3}
set{gap3,gap2 + y4}
set{gap4,gap3 + y5}
set{gap5,gap4 + y6}
set{gap6,gap5 + y7}
set{gap7,gap6 + y8}
set{gap8,gap7 + y9}
set{50gappers_10year,gap8 + y10}
50gappers_10year > 0

add column separator
add column y1
add column y2
add column y3
add column y4
add column y5
add column separator
add column y6
add column y7
add column y8
add column y9
add column y10
add column separator
add column 50gappers_10year

sort by column 18 descending

do not draw 50gappers_10year
]



nm3tz
3 posts
msg #161956
Ignore nm3tz
8/25/2025 10:08:01 PM

Truly appreciate the response and the examples, thank you!

StockFetcher Forums · Filter Exchange · Historical Data Screening<< >>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.