StockFetcher Forums · Filter Exchange · Calling all FILTER Geniuses! **GAP FINDER**<< 1 2 3 4 >>Post Follow-up
karennma
8,057 posts
msg #155722
Ignore karennma
2/12/2021 12:00:40 PM

Ed S,
I appreciate your efforts.
Thanks.


Cheese
1,374 posts
msg #155735
Ignore Cheese
2/13/2021 12:11:05 PM

nibor100 2/11/2021 10:43:33 AM
....
So drawing 2 horizontal lines for each of those 21 gaps would clutter the chart with 42 lines.
Is that really what you are looking for ?
========================================================================

Ed,

Could you please show me how you would code to programmatically draw
horizontal draw lines for previous gaps?

Thank you



nibor100
1,044 posts
msg #155755
Ignore nibor100
2/14/2021 2:29:13 AM

@cheese,

I had stopped working on coming up with a filter to do that,

I'm still not sure I'll be able to... but I have a few ideas bouncing around....might be a few days.

Ed S.

Cheese
1,374 posts
msg #155760
Ignore Cheese
2/14/2021 12:11:25 PM

Ed,

That's very kind of you to offer
but please do not spend too much time or efforts.

It was just a code learning quest, not for trading.

THANK YOU.

xarlor
587 posts
msg #155766
Ignore xarlor
modified
2/14/2021 12:53:37 PM

I modified chetron's Gap Fill filter (msg #84776) to draw a line at the close the day before a gap down. The gap in this filter assumes the open is 10% less than yesterday's close.

Fetcher[
symlist(BYND,TWTR)
not otcbb
average volume(30) > 1000000
close > 10

SET{Vc1,CLOSE 1 DAY AGO}
SET{VAR2A,OPEN / Vc1}
SET{VAR1,COUNT(CLOSE BELOW Vc1,1)}
SET{VAR2,COUNT(VAR2A BELOW 0.90,1)}
SET{VAR3,VAR1 * VAR2}
SET{VAR4,DAYS(VAR3 equals 1,100)}
SET{VAR5,COUNT(VAR4 CROSSED ABOVE -0.5,1)}
SET{VAR6,VAR5 * VC1}

DRAW VAR6 100 DAY HIGH ON PLOT PRICE

chart-time 100 days

add column var4 {days since gap down}
var4 > 0
do not draw var4
]



Cheese
1,374 posts
msg #155770
Ignore Cheese
2/14/2021 2:01:56 PM

xarlor modified 2/14/2021 12:53:37 PM
https://www.stockfetcher.com/sfforums/?q=post&fid=1002&tid=155631
chetron
https://www.stockfetcher.com/forums/Filter-Exchange/Gap-Filled-Question/83814/10
================================================================================

Thank you, xarlor.

nibor100
1,044 posts
msg #155774
Ignore nibor100
2/14/2021 4:09:43 PM

Clearly, the Game's Afoot!

The filter below, modified from my earlier posted filter, is one of my work in progress gap lines filters but requires a little patience to use it in its current state.

Step 1. Run the filter as is today and ignore the 2 horizontal lines on the price graph.

Step 2. Take the number from the "offset to next gap" column and enter it in the Date dropdown Custom Date Offset box and then click on the Go box.

Step 3 Click on the stock name to bring up the offset chart which will show the 2 horizontal price lines outlining that Gap.

Step 4 Repeat the first part of Step 2 but now you must add that number to the prior number that is already in the Custom Date Offset box and then click on the Go box

Step 5 Same as Step 3.
and repeat as needed depending on how many gaps there are for that stock for that year of history.

Alternatively, you could update a Date Offset # in the same manner and rerun the filter each time

Ed S.

Fetcher[
open 1 day ago > 1
add column close-to-open gap
set{var1, count(close-to-open gap 1 day ago is above 4,1)} add column var1 {0 means no gap yesterday }
set{var10, var1 * close-to-open gap 1 day ago } add column var10 {gap% size} draw var10
set{var11, var1 * close 2 day ago} add column var11 {close b4 gap}

draw price line at var11 draw price line at open 1 day ago

set{SincTru12, days(var10 > 1 ,200) } /*and add column SincTru12 {since last gap}*/
add column 1 plus SincTru12 1 day ago {offset for next gap}

set{var5, count(var1 > 0 ,252)} add column var5 {total hits }

var20 above 0
and sort column 6 descendingj
apply to symlist(bynd)

/*date offset 19*/
]



xarlor
587 posts
msg #155775
Ignore xarlor
2/14/2021 5:03:45 PM

Here is a LOW/HIGH gap down filter based on the one above. The gap illustrated is greater than 5% from the low of the previous day to the next day's high.

I put example tickers of what the chart looks like for a favorable entry (enter when close crosses above gap).

Fetcher[
symlist(BYND,TWTR,SPCE,BABA,BSX,PTON,ANGI,RCL)
not otcbb
average volume(30) > 1000000
close > 10

SET{Vc1,low 1 DAY AGO}
SET{VAR2A,high / Vc1}
SET{VAR1,COUNT(high BELOW Vc1,1)}
SET{VAR2,COUNT(VAR2A BELOW 0.95,1)}
SET{VAR3,VAR1 * VAR2}
SET{VAR4,DAYS(VAR3 equals 1,100)}
SET{VAR5,COUNT(VAR4 CROSSED ABOVE -0.5,1)}
SET{VAR6,VAR5 * VC1}

set{xar1,var5 * high}

DRAW VAR6 100 DAY HIGH ON PLOT PRICE
DRAW xar1 100 DAY HIGH ON PLOT PRICE


chart-time 100 days

add column var4 {days since gap down}
var4 > 0
do not draw var4
]



Cheese
1,374 posts
msg #155779
Ignore Cheese
2/14/2021 6:59:19 PM

Ed and xarlor
A big THANK YOU to both of you !

Marco of Sicily
6 posts
msg #155810
Ignore Marco of Sicily
2/15/2021 9:09:05 PM

Karen,

I'm still here occasionally and when I originally posted this filter I credited TRO for much of the coding ideas. I am a numbers guy so I tend to turn my code.into columns rather than chart lines.

StockFetcher Forums · Filter Exchange · Calling all FILTER Geniuses! **GAP FINDER**<< 1 2 3 4 >>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.