Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
mtrm_py_vol

mtrm_py_vol (routine)

Calculate Medium term note volatility

Introduced in release: 1.0
Component: US Bonds
Purpose: Calculates either dollar price or yield to maturity for a medium term note (a regular bond, odd first coupon bond, odd last coupon bond, and odd first and last coupon bond) given value and then recalculates using the given value plus a change and the given value minus a change. The result is then the average change in the result based on the change in the given value.

Notes: The maturity date used by this routine can be a maturity/redemption date.

Results: All results are calculated using the industry standard rules or generally accepted practices. The variable calculated contains the calculated dollar price or yield to redemption from the given. The variable calc_up contains the calculated dollar price or yield to redemption from the given plus the change. The variable calc_down contains the calculated dollar price or yield to redemption from the given minus the change. The variable calc_average_chg contains average change in the calculated values. All results are accurate to as many places as supported by a double precision value.

Error Conditions: Returned values should be ignored for a non-zero status. See Errors.

Last Mod Date: 03/25/1993© 2001 TIPS, Inc.Doc Version: 5.0