StockFetcher Forums · Filter Exchange · Need help with code<< >>Post Follow-up
shainadir
25 posts
msg #105844
Ignore shainadir
4/6/2012 9:10:12 PM

Trying to figure out how to code the following for stockfetcher:

todays close divided by the average of the closes for the last 5 days.

for example TNA

the closes for the past 5 days are 59.57, 60.3, 63.45, 64.61, and 62.4 … the total is then divided by today's close and that figure comes out to .959.

That is the value that I would like the code to generate. Can someone help me with this? Thanks.

olathegolf
119 posts
msg #105845
Ignore olathegolf
4/6/2012 10:33:26 PM

Fetcher[
symlist(TNA,TZA)
set{x,close/ma(5)}
add column x
]



StockFetcher Forums · Filter Exchange · Need help with code<< >>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.