StockFetcher Forums · Filter Exchange · This might be impossible<< 1 2 3 4 5 ... 20 >>Post Follow-up
kossvet
132 posts
msg #151423
Ignore kossvet
3/24/2020 7:31:02 PM

Is it possible to build a filter modeled after TRO's fade the gap filter.(which is excellent)
Where a stock, that has been gapped, you can record the high of the previous day in the filter.
And the trigger to buy is when the gap up has been filled.
As an example: lets say the high 1 day ago was 22.
The following day they gap it to 24.5.
22 should be recorded, and remembered by the filter.
Some day in the future, the stock meanders down to 22 again, thus filling the gap.
and this would represent the buy signal.
There doesn't need to be a time frame for the gap fill.( could be 3 months later)
I just want the filter to alert me when the stock is very close to filling the gap, or just filled the gap.
This type of filter writing is way beyond my ability.
It might also not be possible to do this.
If you look at the statistics of TRO's filter, the gap being filled is off the charts for accuracy.
The question is when, and that's where this filter comes in.
Xalor I know you enjoy a tremendous challenge, and this certainly is one.
I will not be disappointed if nobody can create this filter.
I wouldn't even know where to begin.

Thanks in advance
Robert






xarlor
329 posts
msg #151425
Ignore xarlor
3/24/2020 8:48:17 PM

Can't be done in SF because you cannot store price values for recall later. Read this post

Best I could do is something like this. This looks for a greater than 5% gap-up exactly 60 days ago, draws a line at the close of that previous day's gap, and returns any stock whose price reached that line within the last 5 days.

You can change the number of days to look back for the gap-up, but if you do, you have to change 9 values in the filter to make it work right.

Fetcher[
chart-time is 6 months
close > 10
average volume(30) > 500000

set{Time,Days(close-to-open gap > 5,61)}
time equals 60
set{GapClosed1,count(low < close 62 days ago,5)}
set{GapClosed2,count(high > close 62 days ago,5)}

set{GapClosed, GapClosed1 * GapClosed2}
GapClosed > 0

set{GapClosed3,count(low 6 days ago > close 62 days ago,55)}
GapClosed3 > 54

add column close 62 days ago
draw price line at close 62 days ago
do not draw time
do not draw GapClosed
do not draw GapClosed3
]



kossvet
132 posts
msg #151427
Ignore kossvet
3/24/2020 9:19:36 PM

Xalor

Thank you for the effort.
You have been a great help to me over the last year.
You are now officially on my Christmas list.
Thanks for the effort

Robert

TheRumpledOne
6,364 posts
msg #151549
Ignore TheRumpledOne
3/29/2020 6:33:51 PM

You fade the gap. After the gap is filled, the trade is over.

xarlor
329 posts
msg #151550
Ignore xarlor
3/29/2020 6:55:43 PM

TRO, I see the rumors of your demise were greatly exaggerated. Great to see you back, even if it's in passing. Strange times we're living in, these 652 days later. Hope you and yours are doing well and do stay safe.

karennma
7,821 posts
msg #151553
Ignore karennma
modified
3/29/2020 8:00:10 PM



/

Nobody
87 posts
msg #151558
Ignore Nobody
3/30/2020 10:51:45 AM

TRO -- boss? no way

miketranz
810 posts
msg #151597
Ignore miketranz
3/31/2020 2:08:24 PM

TRO who?

nibor100
613 posts
msg #151900
Ignore nibor100
4/25/2020 12:13:14 PM

@kossvet,

I believe the filter below provides most of what you have asked for, though finding a way to pinpoint your buy point at the day the low dips below the High Pirce of the day before the Gap Up has proved a bit challenging.

a. The filter is currently set to find all gap ups >8% for a small range of stock prices.You can change any of that to find any size gap for any price stock if you want.

b. First chart display below Volume shows you the Days since the >8% gapup.
1. if you expand the chart timespan you'll see if the stock had multiple >8% gapsup in the past 3 years

c. Chart display below b. shows a plot of the price Low each day vs. the High price of the day before the gapup since your post indicated you were interested in that value instead of the Closing Price.

d. Chart display below c. show a plot of the price Low each day vs the closing price and opening price that define the actual Gapup.

e. On the primary Price plot I've drawn horizontal lines indicating the closing price and opening price that define the actual Gapup and for the High price the day before the gapup.
1.These lines are only for the most recent Gapup that exceeds 8%.

f. I think the columns are self explanatory and you'll need to look at a few stocks in order to get a true feel for what the columns are indicatiing.

Hope this is close to what you wanted,
Ed S.

Fetcher[
chart-time is 3 months close > 10 close < 15 average volume(30) > 500000

set{Time,Days(close-to-open gap > 8,100)} add column Time {days since gap up}
set{b3Gap, Time} set{b2Gap, Time +1}

set{if,count(time > -1,1)}
set{then1,if * b2gap}
set{else,1 - if}
set{then2,else * b3gap}
set{b4gap,then1 + then2}

set{GapSize, VarOffset(close-to-open gap,time)} add column GapSize {Gap%}
set{gapbottom, VarOffset(close,b4gap)} add column gapbottom draw price line at gapbottom
set{gaptop, VarOffset(open,time)} add column gaptop draw price line at gaptop

set{preGapHi, VarOffset(high,b4gap)} add column pregaphi draw price line at pregaphi

Time > -1

set{GapStillOpen,days(low > pregaphi,10)}
draw pregaphi add column GapStillOpen gapstillopen > -1 do not draw gapstillopen
set{GapOpenDuration,count(low > pregaphi,10)} add column GapOpenDuration

set{GapCloseddays, days(low < pregaphi,10)} add column gapcloseddays

set{plow,low} set{plow1,low}
draw plow on plot pregaphi
draw gapbottom draw gaptop on plot gapbottom
draw plow1 on plot gapbottom
Legend{time,Days Since Gap Up}
PlotType{time,zerobar}
Legend{plow,LOW}
Legend{plow1,LOW}
]






kossvet
132 posts
msg #151902
Ignore kossvet
4/25/2020 7:15:47 PM

Thanks for the input Nibor 100.
To put it out there, I have been accumulating GNPX.
I slightly modified Xarlors excellent filter.
It has enabled me to get into my positions slightly ahead of the rise.
I have been buying GNPX for the last week an a half.
Everyday at the close I would buy 1500 shares.
I now have 10k shares.
Let's see how this plays out.
I have looked at hundreds of low priced stocks with Xalors modified filter.
I would say the win rate is about 60%
But the percentage of gain for the winners is well over 200%
For the losers the average loss is about 35%, if you hold long enough.
Robert


StockFetcher Forums · Filter Exchange · This might be impossible<< 1 2 3 4 5 ... 20 >>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 2018 - 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.