Skip to content

Fix for DCF value #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

softbread
Copy link

No description provided.

In case net cash flow is not available, mark it as 0 but keep the signal neutral
Proof check intrinsic_value
@softbread softbread changed the title Quick fixes Fix for DCF value Mar 16, 2025
Copy link

@duke-cliff duke-cliff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the same bug, worth to merge it.

@@ -87,6 +87,10 @@ def valuation_agent(state: AgentState):
# Get the market cap
market_cap = get_market_cap(ticker=ticker, end_date=end_date)

# Reset dcf value to market value if dcf_value = 0
if dcf_value == 0:
dcf_value = market_cap
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we set the DCF value to the market cap?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found there are cases the API cannot provide free cashflow records at all. So this is a fallback by just setting dcf value to market cap, and it will make sure the valuation is neutral rather than 100% cap gap.
The idea is dcf is already a useless indicator if dcf value is 0. Better just neutralize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants