Beispiel #1
0
 public BlackVanillaOptionPricer(double forwardValue, Date expiryDate, Period swapTenor, SwaptionVolatilityStructure volatilityStructure) {
     forwardValue_ = forwardValue;
     expiryDate_ = expiryDate;
     swapTenor_ = swapTenor;
     volatilityStructure_ = volatilityStructure;
     smile_ = volatilityStructure_.smileSection(expiryDate_, swapTenor_);
 }
Beispiel #2
0
 public BlackVanillaOptionPricer(double forwardValue, Date expiryDate, Period swapTenor, SwaptionVolatilityStructure volatilityStructure)
 {
     _forwardValue = forwardValue;
     _expiryDate = expiryDate;
     _swapTenor = swapTenor;
     _volatilityStructure = volatilityStructure;
     _smile = _volatilityStructure.smileSection(_expiryDate, _swapTenor);
 }
Beispiel #3
0
 public BlackVanillaOptionPricer(double forwardValue, Date expiryDate, Period swapTenor, SwaptionVolatilityStructure volatilityStructure)
 {
     forwardValue_        = forwardValue;
     expiryDate_          = expiryDate;
     swapTenor_           = swapTenor;
     volatilityStructure_ = volatilityStructure;
     smile_ = volatilityStructure_.smileSection(expiryDate_, swapTenor_);
 }
 public BlackVanillaOptionPricer(double forwardValue, Date expiryDate, Period swapTenor, SwaptionVolatilityStructure volatilityStructure)
 {
     _forwardValue        = forwardValue;
     _expiryDate          = expiryDate;
     _swapTenor           = swapTenor;
     _volatilityStructure = volatilityStructure;
     _smile = _volatilityStructure.smileSection(_expiryDate, _swapTenor);
 }
Beispiel #5
0
        public BlackVanillaOptionPricer(double forwardValue, Date expiryDate, Period swapTenor, SwaptionVolatilityStructure volatilityStructure)
        {
            forwardValue_        = forwardValue;
            expiryDate_          = expiryDate;
            swapTenor_           = swapTenor;
            volatilityStructure_ = volatilityStructure;
            smile_ = volatilityStructure_.smileSection(expiryDate_, swapTenor_);

            Utils.QL_REQUIRE(volatilityStructure.volatilityType() == VolatilityType.ShiftedLognormal &&
                             Utils.close_enough(volatilityStructure.shift(expiryDate, swapTenor), 0.0), () =>
                             "BlackVanillaOptionPricer: zero-shift lognormal volatility required");
        }