calculate_ddm_valuation
Calculate intrinsic value using the Dividend Discount Model (DDM). Uses historical dividends, current price, and user-provided discount and terminal growth rates to project future dividends and value.
Instructions
DDM (Dividend Discount Model) valuation.
Uses dividCashPsBeforeTax from baostock. Auto-sums semicolon-separated multi-payouts. Current price from latest K-line close. Excludes the current calendar year, whose dividend bucket is usually incomplete mid-year. Buckets are by announcement year, so a prior fiscal year's final payout and the next year's interim can land in the same bucket, distorting dividend_cagr.
forecast_growth caps dividend_cagr at growth_clamp_bounds.max (20%);
negative CAGR passes through unchanged. growth_clamped is "exceeded_max"
if the cap fired, else null.
Args: code: Stock code. discount_rate: Required rate of return, e.g. 0.10. terminal_growth_rate: Perpetual growth rate, e.g. 0.025. years_back: Years of dividend history to use. forecast_years: Projection period (must be in [1, 20]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| discount_rate | Yes | ||
| terminal_growth_rate | Yes | ||
| years_back | No | ||
| forecast_years | No |