WebCab Bonds for COM v2.01

FixedInterestBonds.GrossRedemptionYieldWithResultUpperLimitAndAccuracySet Method 

Calculates the gross redemption yield of a fixed interest bond on an interest bearing date where there is an integer number of years until redemption (i.e. maturity).

public double GrossRedemptionYieldWithResultUpperLimitAndAccuracySet(
   double price,
   double coupon,
   DateTime evaluationDate,
   DateTime redemptionDate,
   double upperLimit,
   double precision,
   string businessCalendarName
);

Parameters

price
The current market price of the bond.
coupon
The coupon per annum paid by the fixed interest bond convertible half-yearly.
evaluationDate
The date on which the gross redemption yield is evaluated.
redemptionDate
The redemption date of the bond.
upperLimit
The upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.
precision
The accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.
businessCalendarName
The name of one of the implemented business calendars, "London" by default.

Return Value

The gross redemption yield in decimal format (i.e. 1 percent = 0.01)

Remarks

That is, the total (annual) yield of the fixed interest bond from now until maturity where the tax implications of the investor are not taken into account. This procedure offers the same functionality as the method (double,double, int) except that here the internal equation solving algorithms parameters can be set. That is, the upper bound of the interval over which the yield is sort and the precision of the returned valued can be specified.

Remarks:

Exceptions

Exception TypeCondition
NoSolutionExceptionThrown if there can not be found a solution for this equation.

See Also

FixedInterestBonds Class | WebCab.COM.Finance.Bonds Namespace | GrossRedemptionYield