StockFetcher Forums · General Discussion · Percentage of stocks above their 20DMA<< >>Post Follow-up
sbeckers
23 posts
msg #160126
Ignore sbeckers
2/23/2023 1:43:37 PM

Some data sources offer this, can we access it in SF?
Thanks

sr7
145 posts
msg #160168
Ignore sr7
3/17/2023 5:25:46 PM

Here's the long way of doing it:



Fetcher[

/* date: 3/17/2023 */



Show stocks where close is above ma(20) /* today: 2482 */

/* Show stocks where close is below ma(20) */ /* today: 8657 */


/* Total stocks: 2487 + 8657 = 11139 */


/* Divide number of stocks above ma(20) by the TOTAL stocks */

2482 / 11139 = .22


/* Carry the decimal two places to the right to turn into percentage number: */

22% of the stocks are above the ma(20)

]





sr7
145 posts
msg #160169
Ignore sr7
3/17/2023 5:26:29 PM

/* Show stocks where close is below ma(20) */ /* today: 8657 */


/* Total stocks: 2487 + 8657 = 11139 */


/* Divide number of stocks above ma(20) by the TOTAL stocks */

2482 / 11139 = .22

/* Carry the decimal two places to the right to turn into percentage number: */

Only 22% of the stocks are above the ma(20)

And 78% of the stocks are below the ma(20)



StockFetcher Forums · General Discussion · Percentage of stocks above their 20DMA<< >>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.