Luigi, Nando I think I finally found what was going wrong...
Having the pricing engine set to BlackCapFloor implies that the market values of caps COINCIDE with the values given by the model, and no optmization was really carried out. Now I set the engine to AnalyticalCapFloor, which contains the cap/floor pricing formulas for the Hull & White model, and some calibration is made...even if I still have to check it is made correctly (choosing an appropriate set of initial values for the parameters, for example). Thanx for your help, anyway.
-----Messaggio originale-----
On 2004.03.24 18:37, Berardi Luca wrote:
That's ok. The code first tries to fetch a stored fixing, and when it's
> I'm now including in the attachment the (self-contained) source code
I didn't really look at the results, but on my machine it compiled,
Later,
DISCLAIMER: Privileged/Confidential Information may be contained in this message and in any of its attachments (the "message"). If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply e-mail. The contents of this message shall be understood as neither given nor endorsed by Banca Profilo S.p.A., nor Profilo SGR S.p.A., nor Profilo Asset Management SGR S.p.A., nor Profilo Academy S.p.A.. Banca Profilo S.p.A., Profilo SGR S.p.A., Profilo Asset Management SGR S.p.A., Profilo Academy S.p.A. do not accept liability for corruption, interception or amendment, if any, or the consequences thereof. Il presente messaggio e/o i suoi allegati (di seguito il "messaggio") possono contenere informazioni privilegiate e/o confidenziali. Se non siete i destinatari indicati nel messaggio (o persona incaricata di inoltrare il messaggio al/i destinatario/i), non potete copiare o inoltrare il messaggio ad altri e siete invitati a distruggerlo dandone informazione al mittente a mezzo e-mail. Il contenuto del presente messaggio non deve essere considerato come trasmesso o autorizzato nè da Banca Profilo S.p.A., nè da Profilo SGR S.p.A., nè da Profilo Asset Management SGR S.p.A., nè da Profilo Academy S.p.A.. Nè Banca Profilo S.p.A., nè Profilo SGR S.p.A., nè Profilo Asset Management SGR S.p.A., nè Profilo Academy S.p.A. si assumono alcuna responsabilità per eventuali intercettazioni, modifiche o danneggiamenti del presente messaggio e-mail e per le eventuali conseguenze. |
Hi all
Luca Berardi wrote: >I think I finally found what was going wrong... >I realized that when instantiating the set of CapHelpers the corresponding >pricing engine is silently set to BlackCapFloor... while I was expecting >it was set to a pricing engine related to the model used (Hull & White in >my case). which reminds me that I'm still wondering if we should remove the default engine from our interfaces? Pros&cons anyone? ciao -- Nando |
On 2004.03.25 15:22, Ferdinando Ametrano wrote:
> which reminds me that I'm still wondering if we should remove the > default engine from our interfaces? In general, if the default engine is the null engine, it avoids having to choose upon instantiation of the instrument and it's still safe because it will throw if one doesn't set an actual engine before pricing. For specific instruments, it depends. For European options, it would make sense to set the analytic engine as a default---instantiate the instrument and most times it's ready for pricing. For American options, I doubt that there is a consensus as to which is the preferred engine---in this case, no default (meaning a null default) would be appropriate. Later, Luigi |
In reply to this post by Berardi Luca
On 2004.03.25 14:59, Berardi Luca wrote:
> I think I finally found what was going wrong... > I realized that when instantiating the set of CapHelpers the > corresponding pricing engine is silently set to BlackCapFloor... Ouch. Cap helpers shouldn't do that... I'll check whether they can be made to signal an error if no engine is explicitly set. Thanks for finding out, Luigi |
Free forum by Nabble | Edit this page |