|
From: Jose Aparicio-N. <ja...@fr...> - 2009-10-05 09:32:06
|
Quoting Luigi Ballabio <lui...@gm...>:
> Before the evaluation date or the default date? If it's the evaluation
> date, I wouldn't add a strict requirement as the engine worked for most
> dates. If it's the mid-period default date, we can think about it. Do
> we require it to be after the curve reference, or we adjust it a day or
> two so that it falls on the reference date?
>
Yep, lets make it the TS ref date. Moving this
Date effectiveStartDate =
(startDate <= today && today <= endDate) ? today : startDate;
into:
Date effectiveStartDate =
(startDate <= settlementDate && settlementDate <= endDate) ?
settlementDate : startDate;
works for both cds engines.
There will still be problems if:
probability_->referenceDate() > discountCurve_->referenceDate()
I havent tested it much though.
Regards
Pepe
|