StockFetcher Forums · General Discussion · First Filter - Breakout filter<< >>Post Follow-up
rwwhite96
2 posts
msg #157384
Ignore rwwhite96
8/14/2021 5:05:33 AM

Hi Everyone,

I had a go at making my first filter. However, I do not think the Price within 5 day high filters have worked - would anyone be able to provide some advice?

It is based off the following conditions:

-ADR (Average Daily Range) above 5
-Price X% greater than Y days ago (1 month, 3 month, 6 month scanners)
-Price within 16% of 5 day high
-Price within 16% of 5 day low
-$Volume (close * volume) greater than 3,000,000
-Listed Stocks Only (No OTC, etc.)

Variables for price percentage scanners:
-1 Month: 20% Greater than 22 Days ago
-3 Month: 40% Greater than 67 Days ago
-6 Month: 100% Greater than 126 Days ago

And here is my filter:

/*Swing trade filter breakout stocks*/
/*Create variables for 5 day high and 5 day low*/
set{h4H,high 5 day high}
set{h4L,high 5 day low}

/*Create limits for variables*/
set{vuplimit,h4H * 1.16}
set{vdnlimit,h4L * 0.84}

/*Create variable for identifying if a stock is within the limit variables for that day*/
set{highup1, count(high below vuplimit,1)}
and highup1 > 0
set{highup2, count(high above vdnlimit,1)}
and highup2 > 0
set{Both, highup1 + highup2}

/*Filters for day range and close price in the past x days*/
and Average Day Range(1) Above 4.00
and Close is 20% more than Close 22 days ago
and Close is 40% more than Close 67 days ago
and Close is 100% more than Close 126 days ago

/*Market selected*/
/*and Market is NYSE*/

/*Additional metrics drawn*/
and draw RSI
and draw moving average (10) on price plot
and draw moving average (20) on price plot
and draw moving average (50) on price plot
and do not draw highup1 and do not draw highup2

/*Additional columns added*/
and add column h4H
and add column h4L

snappyfrog
728 posts
msg #157386
Ignore snappyfrog
8/14/2021 11:11:29 PM

Making it clickable.

Fetcher[
/*Swing trade filter breakout stocks*/
/*Create variables for 5 day high and 5 day low*/
set{h4H,high 5 day high}
set{h4L,high 5 day low}

/*Create limits for variables*/
set{vuplimit,h4H * 1.16}
set{vdnlimit,h4L * 0.84}

/*Create variable for identifying if a stock is within the limit variables for that day*/
set{highup1, count(high below vuplimit,1)}
and highup1 > 0
set{highup2, count(high above vdnlimit,1)}
and highup2 > 0
set{Both, highup1 + highup2}

/*Filters for day range and close price in the past x days*/
and Average Day Range(1) Above 4.00
and Close is 20% more than Close 22 days ago
and Close is 40% more than Close 67 days ago
and Close is 100% more than Close 126 days ago

/*Market selected*/
/*and Market is NYSE*/

/*Additional metrics drawn*/
and draw RSI
and draw moving average (10) on price plot
and draw moving average (20) on price plot
and draw moving average (50) on price plot
and do not draw highup1 and do not draw highup2

/*Additional columns added*/
and add column h4H
and add column h4L
]



rwwhite96
2 posts
msg #157390
Ignore rwwhite96
8/16/2021 2:47:14 AM

Thank you snappyfrog!

Further to the problem, I can see when I debug the filter that no stocks are filtered using the +-16% code (>12,000 stocks).


nibor100
1,042 posts
msg #157391
Ignore nibor100
8/16/2021 4:31:53 AM

@rwwhite96,

Things to consider:
Right now it looks like you are first screening the highs for the last 5 days which includes today yet your narrative seems to indicate you are looking for the Close to be between 5 day high value and 5 day low value.

Most of your filtering is going to happen in the adr and close price monthly comparisons.

If you give us a couple of example stocks you expect to see in the results we may be better able to help

Ed S.

StockFetcher Forums · General Discussion · First Filter - Breakout filter<< >>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.