StockFetcher Forums · Filter Exchange · Buyable Gap Up Entry Point<< 1 2 >>Post Follow-up
yshyystockfetcher
1 posts
msg #117686
Ignore yshyystockfetcher
1/10/2014 5:50:03 PM

I am trying to write a filter to find the stocks which:

1. present a buyable gap up in the last 5 days
(which means gap > 0.75 * ATR(14) and volume > average volume(40) * 1.5)
2. the current price is near the low of that gap-up day

The idea is after a big gap-up day, the price usually pull back
to the gap-up day low which presents a much safer entry point.

The difficulty is I know how to filter for the gap-up today, but
I am having trouble to figure out how to get the low of
the gap-up day in the past?

Thanks.

joepistell
37 posts
msg #117805
Ignore joepistell
1/19/2014 8:07:25 AM

I'm with you. (Price Fills a Gap Up made x Days ago)

This is a filter that I want and a coding challenge that I can't solve. Create a script that can record the "un-filled price gap" that will fire an alert when low falls into the gap. Gap record parameters are Prior day high, Gap Day low.

I've got the gap up marked, and I use RSI(2) to hunt for a sell off. I can't think of a way to record the "gap" and fire of alert when the price enters the gap.


/*GLOBAL*/
show stocks where
avgvol(90) > 100000
and price > 3

/*GAP UP SET UP*/
set{x1, high one day ago}
set{x2, low - x1}
set{x3, close - open}
and x2 has reached a new 250 day high within the last 40 days

add column rsi(2)
draw x2
draw x3
draw rsi(2)
sort column 5 ascending


Kevin_in_GA
4,599 posts
msg #117807
Ignore Kevin_in_GA
1/19/2014 9:13:30 AM

1. present a buyable gap up in the last 5 days
(which means gap > 0.75 * ATR(14) and volume > average volume(40) * 1.5)
2. the current price is near the low of that gap-up day


Fetcher[

/*FIRST, MAKE SURE THE STOCK IS SUFFICIENTLY LIQUID FOR TRADING*/

CLOSE ABOVE 5
AVERAGE VOLUME(40) ABOVE 250000

/*NEXT, FIND GAPS UP THAT MEET YOUR CRITERIA*/

SET{GAPUP1, LOW - HIGH 1 DAY AGO}
SET{GAPUP2, ATR(14) * 0.75}
SET{VOLUMETARGET, 1.5 * AVERAGE VOLUME(40)}

SET{GAPUP3, COUNT(GAPUP1 ABOVE GAPUP2,1)}
SET{GAPUP4, COUNT(VOLUME ABOVE VOLUMETARGET,1)}
SET{GAPUP, GAPUP3 * GAPUP4}

COUNT(GAPUP ABOVE 0.5,5) ABOVE 0.5

/*CORRESPONDING LOW FOR THAT GAP DAY IN A COLUMN*/

SET{GAPLOW1, GAPUP * LOW}
SET{GAPLOW, SUM(GAPLOW1,5)}

ADD COLUMN GAPLOW


]



I tried to make this show gaps from the last five days and the corresponding target low in a filter column. I think this is what you were looking for.

Please take time to study how I did this - I am using several tricks in SF code that new users should learn, specifically the use of user-defined variables and TRO's logic system (look it up here and learn about it).

pthomas215
1,251 posts
msg #132808
Ignore pthomas215
11/26/2016 11:04:56 AM

Kevin, this looks interesting. It just seems like the stocks here have already gapped up. Have you been able to create stockfetcher code that shows the characteristics of a stock or etf that is about to gap up? Im trying to learn more about how to best trade the overnight gap up.

Kevin_in_GA
4,599 posts
msg #132822
Ignore Kevin_in_GA
11/27/2016 10:02:46 AM

Have you been able to create stockfetcher code that shows the characteristics of a stock or etf that is about to gap up?

Well ... that would be the Holy Grail, now wouldn't it? I don't think anyone can predict this a priori with any technical indicators. Better to react to the move and trade (trend follow or mean-reversion) rather than try to anticipate it. IMHO

pthomas215
1,251 posts
msg #132823
Ignore pthomas215
11/27/2016 11:05:26 AM

ha yes it would be the holy grail. sometimes DUST gaps up 4 points overnight. Ive had a reasonable amount of success momentum trading and getting the bump so I will stick to that. Thank you.

shillllihs
5,974 posts
msg #132825
Ignore shillllihs
modified
11/27/2016 3:27:26 PM


Tinkered slightly. This is the greatest SHORT filter I know. Price will enter or close gap within a day to 6 months 99% of the time. Look for prices that have climbed and have not encroached gap zone, then play divergence. Currently DGAZ is in play.
Thoughts, suggestions.

Fetcher[
/*FIRST, MAKE SURE THE STOCK IS SUFFICIENTLY LIQUID FOR TRADING*/
ETF

AVERAGE VOLUME(40) ABOVE 250000

/*NEXT, FIND GAPS UP THAT MEET YOUR CRITERIA*/

SET{GAPUP1, LOW - HIGH 1 DAY AGO}
SET{GAPUP2, ATR(14) * 0.75}
SET{VOLUMETARGET, 1.5 * AVERAGE VOLUME(40)}

SET{GAPUP3, COUNT(GAPUP1 ABOVE GAPUP2,1)}
SET{GAPUP4, COUNT(VOLUME ABOVE VOLUMETARGET,1)}
SET{GAPUP, GAPUP3 * GAPUP4}

COUNT(GAPUP ABOVE 0.5,5) ABOVE 0.5

/*CORRESPONDING LOW FOR THAT GAP DAY IN A COLUMN*/

SET{GAPLOW1, GAPUP * LOW}
SET{GAPLOW, SUM(GAPLOW1,5)}

ADD COLUMN GAPLOW
]




pthomas215
1,251 posts
msg #132830
Ignore pthomas215
11/27/2016 5:04:06 PM

Thanks shillihs. This is a good filter. I took out the etf restriction and added volume increases and it shows stocks that really gapped up overnight..comes closer.

shillllihs
5,974 posts
msg #132834
Ignore shillllihs
11/27/2016 5:51:16 PM

Can you post what you have so far?

pthomas215
1,251 posts
msg #132836
Ignore pthomas215
11/27/2016 6:25:43 PM

yep...it's a variation of what you posted. Im going to play with this more.

Fetcher[
/*FIRST, MAKE SURE THE STOCK IS SUFFICIENTLY LIQUID FOR TRADING*/


AVERAGE VOLUME(40) ABOVE 250000

/*NEXT, FIND GAPS UP THAT MEET YOUR CRITERIA*/

SET{GAPUP1, LOW - HIGH 1 DAY AGO}
SET{GAPUP2, ATR(14) * 0.75}
SET{VOLUMETARGET, 1.5 * AVERAGE VOLUME(40)}

SET{GAPUP3, COUNT(GAPUP1 ABOVE GAPUP2,1)}
SET{GAPUP4, COUNT(VOLUME ABOVE VOLUMETARGET,1)}
SET{GAPUP, GAPUP3 * GAPUP4}

COUNT(GAPUP ABOVE 0.5,5) ABOVE 0.5

/*CORRESPONDING LOW FOR THAT GAP DAY IN A COLUMN*/

SET{GAPLOW1, GAPUP * LOW}
SET{GAPLOW, SUM(GAPLOW1,5)}

ADD COLUMN GAPLOW

show stocks where open is more than 5% above close 1 day ago
and volume is more than 100% above average volume(30) 1 day ago
]



StockFetcher Forums · Filter Exchange · Buyable Gap Up Entry Point<< 1 2 >>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.