StockFetcher Forums · General Discussion · Avergage Volume<< >>Post Follow-up
2 posts
msg #147826
Ignore Trader_X
5/18/2019 12:02:20 AM

Hello -

I am new to StockFetcher, and trying to write a simpler filter that will show me all stocks whose volume today > average daily volume (over past 30 days or so) * 2. So all stocks that traded more than twice their average daily volume. I tried making a filter where I filtered for

volume > average volume (30) * 2

But that gave me over 3000 stocks. Then I tried

volume > (average volume (30) * 2)

which gave me 0 stocks.

Can anyone help?


548 posts
msg #147827
5/18/2019 4:10:28 AM

Fetcher[set{x, average volume(30) * 2}
volume > x

2 posts
msg #147851
Ignore Trader_X
5/20/2019 9:34:43 PM


Village Elder
62 posts
msg #147854
Ignore Village Elder
5/21/2019 7:35:29 AM

When doing math in SF code, it is almost always better to do it within user-defined variables (the SET{} statement) rather than trying to integrate it into the filter selection. Also remember that you can only do one mathematical operation per set{} statement - a real limitation with SF code. Not sure why they can't improve on this.

StockFetcher Forums · General Discussion · Avergage Volume<< >>Post Follow-up

*** Disclaimer *** 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. does not recommend particular securities., 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 2018 - 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