StockFetcher Forums · General Discussion · Help with filter...<< >>Post Follow-up
compound_gains
221 posts
msg #80263
Ignore compound_gains
9/29/2009 8:50:46 AM

These two filters should produce the same list...but they don't. The problem appears to be in the variable counts in Filter#2. Maybe I have the syntax wrong? Any thoughts would be appreciated.

FILTER #1
Fetcher[
not otcbb
set offset 5
close is between 1 and 15
set{volcnt, count(volume above 100000, 10) }
volcnt equal to 10

set{p1, count(high greater than open, 100)}
p1 greater than 75

set{chk, open / close 1 day ago}
set{chk1, count(chk less than 1.04, 100)}

set{x1, high - open}
set{Long_Profit, x1/open }

set{lp, count(Long_Profit > .09 , 100) }
set{adr, average day range(30)}
set{score, lp * adr }
score greater than 300


add column chk1
add column p1
add column score
add column adr
add column lp
sort column 5 ascending
chart-time one month
]



FILTER #2
Fetcher[not otcbb
close 5 days ago between 1 and 15
set{volcnt, count(volume above 100000, 10) 5 days ago }
volcnt equal to 10

set{p1, count(high greater than open, 100) 3 days ago}
p1 greater than 75

set{chk, open 4 days ago / close 5 days ago}
set{chk1, count(chk less than 1.04, 100) 5 days ago}

set{x1, high 5 days ago - open 5 days ago}
set{Long_Profit, x1/open }

set{lp, count(Long_Profit > .09 , 100) 5 days ago}
set{adr, average day range(30) 5 days ago}
set{score, lp * adr}
score greater than 300

add column chk1
add column p1
add column score
add column adr
add column lp
sort column 5 ascending
chart-time one month
]



P.S. Elements of TRO's Run Forest Run in this code are acknowledged.













StockFetcher Forums · General Discussion · Help with 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.