Group Abstract Group Abstract

Message Boards Message Boards

Getting a list of stocks that match certain criteria?

GROUPS:
Hi,

If I wanted to get a list of stocks that matched a certain criteria (timeframe: now), how could I best do that?

For instance, if I wanted to see all the stocks (in the world) with a PE greater than 50 but less than 100, with a positive income growth, positive sales growth, and a market capitalision of greater than 2 billion, is that possible?  What would such a thing look like?  I know I can use the FinancialData construct to get individual stock data but have no idea how to 'go the other direction' as it were.

I'm new to Mathematica but absolutely capitvated by the possibilities!

Thanks!
POSTED BY: Thomas Quinlan
Answer
8 months ago
Thomas, please check the help for FinancialData.

http://reference.wolfram.com/mathematica/ref/FinancialData.html

As part of the examples under Examples > Scope > Stock Screens we can adapt it to your needs. (I left out certain conditions out for you to explore by looking at the available indicators under FinancialData["Properties"]
Select[FinancialData["^DJI", "Members"],
FinancialData[#, "PERatio"] >50 &&
   FinancialData[#, "PERatio"] < 100 && FinancialData[#, "MarketCap"] > 2 10^9&]
POSTED BY: Diego Zviovich
Answer
8 months ago