StockFetcher Forums · Filter Exchange · YTD<< 1 2 >>Post Follow-up
miketranz
969 posts
msg #93799
Ignore miketranz
6/13/2010 7:53:55 PM

That works.Thanks,Mike......

four
5,087 posts
msg #93800
Ignore four
6/13/2010 8:00:05 PM

Bingo

straken
469 posts
msg #93801
Ignore straken
6/13/2010 8:01:31 PM

miketranz
- Ignore miketranz 6/13/2010 12:58:26 PM

Thanks for the help,but some of the stocks that show up are lower today than they were from Jan 1.........

Guess they wasn't I had the var1 and var2 backwards. Try them now

olathegolf
119 posts
msg #93806
Ignore olathegolf
6/14/2010 1:17:39 AM

I think you need to divide by the close 110 days ago to obtain the % gain YTD.

Fetcher[
set{var1, close}
set{var2, close 110 days ago}
set{pctup1, var1 - var2}
set{pctup2,pctup1 / var2}
set{pctup3,pctup2 * 100}
add column pctup3 {YTD %}
pctup3 > 0
volume above 200000
close 110 days ago above 1
sort column 5 descending
]



miketranz
969 posts
msg #93810
Ignore miketranz
6/14/2010 8:35:07 AM

Good work,both filters showing momentum stocks outperforming the market YTD.Thanks again,Mike....

johnpaulca
12,036 posts
msg #93813
Ignore johnpaulca
modified
6/14/2010 9:31:30 AM

oops!!!

straken
469 posts
msg #93833
Ignore straken
modified
6/14/2010 2:01:10 PM

olathegolf
- Ignore olathegolf 6/14/2010 1:17:39 AM

I think you need to divide by the close 110 days ago to obtain the % gain YTD.


Fetcher[
set{var1, close}
set{var2, close 110 days ago}
set{pctup1, var1 - var2}
set{pctup2,pctup1 / var2}
set{pctup3,pctup2 * 100}
add column pctup3 {YTD %}
pctup3 > 0
volume above 200000
close 110 days ago above 1
sort column 5 descending
]



Yes thanks, but pctup was short for "price count" not % i didn't know if he wanted dollar amount or percentage, he just said YTD. Stockfetcher has not done well with % returns in the past or at least not as well as stockfinder code. but thanks for the heads up. still not sure the filter i made is what he wants or will work as i have not tested it for accuracy.

coolsf
21 posts
msg #108157
Ignore coolsf
9/22/2012 2:38:29 PM

Thanks for the YTD positive filter.

Can anyone please tell me how to get a filter with YTD loss? TIA.

four
5,087 posts
msg #108158
Ignore four
modified
9/22/2012 11:26:30 PM

sort now is changed to "ascending"

and

you will manually change "var2" to reflect number of days to look back

and

"pctup3" changed to <= 0


Fetcher[

set{var1, close}
set{var2, close 110 days ago}
set{pctup1, var1 - var2}
set{pctup2,pctup1 / var2}
set{pctup3,pctup2 * 100}
add column pctup3 {YTD %}
pctup3 <= 0
volume above 200000
close 110 days ago above 1
sort column 5 ascending

]



StockFetcher Forums · Filter Exchange · YTD<< 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.