StockFetcher Forums · General Discussion · Averaging over several days<< >>Post Follow-up
harvey_folse@yahoo.com
2 posts
msg #124571
Ignore harvey_folse@yahoo.com
8/2/2015 7:40:51 PM

I'm experimenting with a filter. I'm a newbie so any advice is appreciated.

Is there a way to Average True Range over last 10 days
something like find ATR (10) 10 days ago store in register 1
find ATR (10) 9 days ago and add to register 1
etc. 8 more times
then / 10 to get ATR of the last 10 days



four
4,012 posts
msg #124572
Ignore four
modified
8/2/2015 9:04:42 PM

Welcome...

Suggestion, change your ID from your email address.
If you put an email address on a web page ... , spammers will steal it.

More information here:
http://websitehelpers.com/spam/

four
4,012 posts
msg #124573
Ignore four
modified
8/2/2015 9:05:56 PM

Suggestion, visit the training manual: I found it to be very helpful in working through the basics of StockFetcher's ways.
http://www3.stockfetcher.com/download/sfuserguide2_0.pdf

four
4,012 posts
msg #124574
Ignore four
modified
8/2/2015 9:11:51 PM

/*
Is there a way to Average True Range over last 10 days
something like find ATR (10) 10 days ago store in register 1
find ATR (10) 9 days ago and add to register 1
etc. 8 more times
then / 10 to get ATR of the last 10 days
------------------------------------------------------------------------
See the pattern (below). I did the 9 days.

*/

Fetcher[
set{x98, atr(10) 9 days ago + atr(10) 8 days ago}
set{x76, atr(10) 7 days ago + atr(10) 6 days ago}
set{x54, atr(10) 5 days ago + atr(10) 4 days ago}
set{x32, atr(10) 3 days ago + atr(10) 2 days ago}
set{y1, x98 + x76}
set{y2, y1 + x54}
set{y3, y2 + x32}
set{y4, y3 + atr(10) 1 day ago}
set{done, y4 / 9}
draw done
]



Kevin_in_GA
4,553 posts
msg #124575
Ignore Kevin_in_GA
8/2/2015 10:14:58 PM

Fetcher[
symlist(spy)
set{whatyouwant, cma(ATR(10),10)}
add column whatyouwant
]



StockFetcher Forums · General Discussion · Averaging over several days<< >>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 2016 - 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