StockFetcher Forums · General Discussion · last x days average<< >>Post Follow-up
scanman77
2 posts
msg #121031
Ignore scanman77
7/17/2014 3:22:22 AM

hello to all

i'm looking for a filter that screen last x days average between a range

example last price is in +/- 5 % average price 7 days price
last price is is in +/- 10 % average price 30 days price

i write this but I'm not sure perform well

set{avg_chg,sum(day change,7) / 7}
avg_chg below 5
add column avg_chg

set{avg_chga,sum(day change,30) / 30}
avg_chga below 10
add column avg_chga

set{avg_chgb,sum(day change,120) / 120}
avg_chgb below 15
add column avg_chgb

compound_gains
221 posts
msg #121032
Ignore compound_gains
7/17/2014 6:27:20 AM

Fetcher[
set{ma7chk, close / ma(7)}
set{ma30chk, close / ma(30)}
add column ma7chk
add column ma30chk
ma7chk between .95 and 1.05
ma30chk between .9 and 1.1
]



scanman77
2 posts
msg #121057
Ignore scanman77
7/20/2014 2:27:10 AM

thanks a lot

StockFetcher Forums · General Discussion · last x days average<< >>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.