Discounting Cash Flows Developer’s Guide
Discounting Cash Flows (discountingcashflows.com) is dedicated to fundamental stock analysis and valuation. We try to automate and bypass the process of retrieving data from financial sources(sec.gov, Yahoo Finance, etc.), importing the data into Microsoft Excel and creating a valuation model (such as Discounted Cash Flow, Dividend Discount Model, etc.) that will calculate an intrinsic value for our stock.
Our data is provided by financialmodelingprep.com and we use fully transparent and editable models written in the JavaScript programming language to process the data and output the intrinsic value of a company. The valuation models are evaluated by the client’s own browser(Chrome, Firefox, Opera, etc.)
Check out the Code Editor YouTube Video Tutorial Series
Advantages
- The valuation models are interactive
The user can change the model’s assumptions with his own future estimations for the company. Changing values makes the model recalculate itself automatically.
- The valuation models are shareable
Once the user is done changing the model’s assumptions, they can just copy the URL and give it to anyone.
- The valuation models are editable
The user can customize the models as they wish using our built-in JavaScript code editor.
- The user can set watches and price alerts
We will let the user know by email when his model reaches a value threshold.
Warning
Please note that our website does not try to bypass the Due Diligence required before commiting to purchase a company and does not offer financial advice. We recommed users to get informed about the company and its business model and try to come up with their own projections for each company.
Model Code Editor
We will go through every function available to the editor. You can also find the source code and description for all our valuation models and how they are calculated here
Contents
- Using the Code Editor
- Valuation functions
$.when().done()
function:deepCopy()
function:- Displaying Messages
- Setting an Estimated Value
- Setting assumptions
- Displaying a Chart
- Displaying a Table
- Dates functions
- Utility functions
fxRate()
function:newArrayFill()
function:arrayValuesToRates()
function:getArraySum()
function:getGrowthRateList()
function:addKey()
function:linearRegressionGrowthRate()
function:averageMargin()
function:averageGrowthRate()
function:applyMarginToList()
function:getGrowthList()
function:toM()
function:toK()
function:toR()
andtoN()
functions:
- API Functions & Endpoints