|
From: Luigi B. <lui...@gm...> - 2009-04-17 07:45:33
|
On Thu, 2009-04-16 at 19:54 +0200, Ferdinando Ametrano wrote: > > If there's no payment after the evaluation date, you can consider the > > instrument as expired. Unless your settlement date is _before_ the > > evaluation date, but that's nonsense, isn't it? > > Not really. I tried to price an expired (from the point of view of the > evaluation date) bond with an YieldTermStructure whose settlement date > was also before evaluation date, i.e. I would have liked not to care > about the evaluation date at all. So basically, you tried to discount to yesterday with the evaluation date set to today? > >> E.g. Bond::isExpired check the settlementDate() vs > >> Settings::instance().evaluationDate(). Oh, you mean "it checks the last cash flow against the settlement date, instead of checking it against the evaluation date". I though you meant "it compares the settlement date and the evaluation date". Agreed, it should check the evaluation date. Luigi -- To err is human -- to blame it on a computer is even more so. -- unknown |