/// <summary> /// /// </summary> /// <param name="stock"></param> public DivDiscModelVM(StockInfo stockInf) { try { _stockInfo = stockInf; _ddm = new DividendDiscountModel(); // 10% (with inflation) s. https://www.investopedia.com/ask/answers/042415/what-average-annual-return-sp-500.asp // so we aim at 15 DesiredRateOfReturn = 15; ExpectedDividend = CalcExpectedDividend(); // dividend growth rate decimal growthRate = (decimal)_stockInfo.DividendGrowthRateInPercent; // 20 is max if (20 <= growthRate) { growthRate = 20m; } DividendGrowthRate = growthRate; SharePrice = (decimal)_stockInfo.StockData.WeeklyQuotes.First().Close; } catch (Exception x) { Log.Error(x); } }
/// <summary> /// /// </summary> /// <param name="stock"></param> public MpDivDiscModelVM(StockInfo stockInfo) { try { _stockInfo = stockInfo; _ddm = new DividendDiscountModel(); SetFields(); } catch (Exception x) { Log.Error(x); } }