shivamsouravjha / stock-backend

11 stars 7 forks source link

feature: add F-Score in the stock ranking #1

Open shivamsouravjha opened 3 days ago

shivamsouravjha commented 3 days ago

Value Investing: Using the Piotroski F-Score to Identify Winning Stocks

This README provides a simplified explanation of Joseph D. Piotroski's research paper titled "Value Investing: The Use of Historical Financial Statement Information to Separate Winners from Losers." The paper introduces the Piotroski F-Score, a scoring system that helps investors identify undervalued stocks with strong financial health.


Introduction

Value investing involves buying stocks that appear undervalued based on financial ratios like the book-to-market (BM) ratio. However, not all high BM stocks are good investments—some are financially distressed and continue to underperform.

Objective of the Study:


The Piotroski F-Score

The F-Score is a 9-point scoring system based on specific financial criteria derived from a company's financial statements. Each criterion adds 1 point if positive, with a maximum score of 9.

Components of the F-Score:

1. Profitability Criteria (4 points)

2. Leverage, Liquidity, and Source of Funds (3 points)

3. Operating Efficiency Criteria (2 points)


How to Calculate the F-Score

For each criterion:

  1. Evaluate the Condition: Check if the company meets the criterion based on its financial statements.
  2. Assign Points: Give 1 point for each positive criterion.
  3. Sum the Points: Add up all the points to get the F-Score (ranging from 0 to 9).

Interpretation:


Applying the F-Score in Investment Strategy

Step 1: Identify high BM (value) stocks.

Step 2: Calculate the F-Score for each stock.

Step 3: Select stocks with high F-Scores for your portfolio.

Benefits:


Research Findings


Practical Example

Imagine you're evaluating two companies, both with high BM ratios:

Company A:

Company B:

Investment Decision: Choose Company A for your portfolio due to its high F-Score, indicating strong financial health.


Limitations and Considerations


Conclusion

The Piotroski F-Score is a valuable tool for investors seeking to enhance their value investing strategy by focusing on financially strong companies. By systematically applying this scoring system, investors can improve portfolio performance and reduce the risk of investing in financially distressed firms.


References


naineel1209 commented 2 days ago

Hi @shivamsouravjha, can I work on this one?

shivamsouravjha commented 2 days ago

Sure @naineel1209 feel free to work on it!

naineel1209 commented 2 days ago

Thanks @shivamsouravjha! I was going through the codebase and was wondering what should be the value of the COMPANY_URL env variable?

shivamsouravjha commented 2 days ago

Its for the case when we dont have the data in database so we scrap it out from the source website

naineel1209 commented 2 days ago

Thanks for your response, Just to clarify, is there any specific site that you are using to scrape the data?

shivamsouravjha commented 2 days ago

Just for basic detail like name and etc.

naineel1209 commented 2 days ago

I meant to ask any specific external API endpoint that I should I set in the environment variable.

shivamsouravjha commented 2 days ago

Nope you wont be needing that most of data is fetched from mongodb whose sample of 1 stock dump is present on dump.txt