Message Boards Message Boards

1 Reply
1 Total Likes
View groups...
Share this post:

Getting a list of stocks that match certain criteria?

Posted 11 years ago

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!

POSTED BY: Thomas Quinlan
Posted 11 years ago
Thomas, please check the help for FinancialData.

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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract