European Sytle Swaption

Posted by Bill Q on
URL: http://quantlib.414.s1.nabble.com/European-Sytle-Swaption-tp2681.html

Hello

I was working with the Intruments::Swaption class, pricing a European style
swaption. I used the EuropeanExercise class with the single excercise date
and the BlackSwaption pricing engine. All seemed to be going well but then
I noticed that the excercise date had no effect on the price of the
swaption.

I looked into the code and can see that the Swaption puts the excercise
time into a vector called excerciseTimes in SwaptionArguments. However
the BlackSwaption pricer never looks at it. Instead it sets the T (time)
parameter to arguments_.floatingResetTimes[0] which will be the start
of the swap. Now most examples do show the swaption excercise date to
correspond to the start of the swap, but does it have to be so?

And so my question is, in ql/Pricers/blackswaption.cpp,
Can the line:  'Time start = arguments_.floatingResetTimes[0];'
be changed to: 'Time start = arguments_.exerciseTimes[0];'?