mbsprice2(type;cpn;wac;term;wam;wala;dly;setl;pptype;pprate;yld)
Returns the mortgage-backed security (MBS) price given yield (general)
Syntax
mbsprice2(type;cpn;wac;term;wam;wala;dly;setl;pptype;pprate;yld)
Input
Argument | Type | Description |
---|---|---|
type |
text | The MBS type used for determining payment delays. For more information, see
MBS type. A text value or the name of a column |
cpn |
integer or decimal | The passthrough rate expressed as a percentage A scalar value or the name of a column |
wac |
integer or decimal | The weighted average coupon (WAC) of the underlying mortgages, expressed as a
percentage A scalar value or the name of a column |
term |
integer | The original term (in months) of the underlying mortgages A scalar value or the name of a column |
wam |
integer | the weighted average remaining term (in months) of the underlying mortgages A scalar value or the name of a column |
wala |
integer | The weighted average age in months of the underlying mortgages A scalar value or the name of a column |
dly |
integer | The interest-free delay in days, e.g. 14 for a GNMA I A scalar value or the name of a column |
setl |
integer | The settlement date The |
pptype |
text | The prepayment rate type Valid values are:
A text value or the name of a column |
pprate |
integer or decimal | The prepayment rate expressed as a percentage A scalar value or the name of a column |
yld |
integer or decimal | The bond-equivalent yield expressed as a percentage A scalar value or the name of a column |
setl
, which cannot be a column name.Return Value
Returns the price (without accrued interest) expressed as a percentage of par in the decimal data type.
mbsprice2(type;cpn;wac;term;wam;wala;dly;setl;pptype;pprate;yld)
function handles N/A values as follows:- If
type
,cpn
,wac
,wam
,pptype
,pprate
, oryld
are N/A, the result is N/A. - If
term
is N/A, it is assumed to be 360. - If
wala
is N/A, it is assumed to be the difference betweenterm
andwam
. - If
dly
is N/A, it is determined fromtype