This Python script allows you to analyze and rank S&P 500 stocks based on four popular investing strategies:
- 📉 Value Investing
- 🚀 Growth Investing
- 📈 Momentum Trading
- 💸 Dividend Investing
Each strategy uses a unique scoring model that combines fundamental and technical indicators, including:
- P/E and PEG Ratios
- ROE, EPS, Free Cash Flow
- RSI, Moving Averages, MACD
- Dividend Yield and Payout Ratio
After choosing a strategy and number of top stocks to return, the script provides a ranked list of investment ideas.
-
Install required libraries:
pip install yfinance pandas pandas_ta
-
Run the script:
quantitative-stock-tracker.py
-
Input your desired strategy and number of top picks when prompted.
-
Output:
all_stock_data.csv: Full stock dataset with metricstop_investment_picks.csv: Ranked list of best stocks based on your chosen strategy
This tool is for educational and testing purposes only. It is not financial advice.
Always do your own research (DYOR) and consult a licensed financial advisor before making investment decisions.
MIT License.