RE: FdDividendAmericanOption doesn't like zero t ime to dividend

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: FdDividendAmericanOption doesn't like zero t ime to dividend

Vadim Ogranovich-3
> Hi Vadim,
>          note that the vector dividendTimeA should contain
> the ex-dividend
> dates.
> If the dividend will be paid today the ex-dividend date is tomorrow,
> hence cannot be 0.0(should be a positive small number).

Hi Marco,

Thank you for the reply.

Do you mean something like dividentTime=1e-6*timeToExpiration or,
alternatively, dividentTime=1/365, the latter means one day past today?
If the former than, IMHO, this is how FdDividendAmericanOption should treat
zero dividendTime. If the latter than I'll probably go and argue that it's
plain wrong.

Thanks, Vadim

--------------------------------------------------
DISCLAIMER
This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information.  If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and any attachments thereto, is strictly prohibited.
If you have received this e-mail in error, please immediately notify me and
permanently delete the original and any copy of any e-mail and any printout
thereof.

E-mail transmission cannot be guaranteed to be secure or error-free.  The
sender therefore does not accept liability for any errors or omissions in
the contents of this message which arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY

Knight Trading Group may, at its discretion, monitor and review the content
of all e-mail communications.



Reply | Threaded
Open this post in threaded view
|

RE: FdDividendAmericanOption doesn't like zero t ime to dividend

Marco Marchioro-2
Hi,
On a second thought you should be able to have 0 as a dividend date.
I did not have a chance to try the C++ code you provided but the following,
equivalent, python code prints 5.35988679227 as the option value
and does not raise any exception.

     import QuantLib
     opt = QuantLib.FdDividendAmericanOption("Call",40.25,
35,0.0,0.05,0.1,0.25,
                                             [0.125],[0],20,20)
     print opt.value()

anybody else has an opinion on this?

Marco



At 11:55 AM 9/11/02 -0500, you wrote:
 > Hi Vadim,
 >          note that the vector dividendTimeA should contain
 > the ex-dividend
 > dates.
 > If the dividend will be paid today the ex-dividend date is tomorrow,
 > hence cannot be 0.0(should be a positive small number).



Reply | Threaded
Open this post in threaded view
|

Re[2]: FdDividendAmericanOption doesn't like zero t ime to dividend

Michele Ravani-2
On Fri, 13 Sep 2002 09:51:38 +0100 Marco Marchioro <[hidden email]> wrote:

MM> Hi,
MM> On a second thought you should be able to have 0 as a dividend date.
MM> I did not have a chance to try the C++ code you provided but the
MM> following,
MM> equivalent, python code prints 5.35988679227 as the option value
MM> and does not raise any exception.
MM>
MM>      import QuantLib
MM>      opt = QuantLib.FdDividendAmericanOption("Call",40.25,
MM> 35,0.0,0.05,0.1,0.25,
MM>                                              [0.125],[0],20,20)
MM>      print opt.value()
MM>
MM> anybody else has an opinion on this?
MM>
MM> Marco
MM>
MM>
MM>
MM> At 11:55 AM 9/11/02 -0500, you wrote:
MM>  > Hi Vadim,
MM>  >          note that the vector dividendTimeA should contain
MM>  > the ex-dividend
MM>  > dates.
MM>  > If the dividend will be paid today the ex-dividend date is tomorrow,
MM>  > hence cannot be 0.0(should be a positive small number).

I would tend to stick to your original reply, unless one wants to get down
to counting the hours.
Assume for instance you are running an overnight risk analysis after
midnight using yesterday's closing prices, the dividend possibly wouldn't
reflect in the price yet, but I guess your risk numbers in the morning
should.

I know this is a bit extreme, but does it make sense?

Vadim, why do you want to have a 0 dividend time?
What is the business reason?

Ciao

--
Michele Ravani                  [hidden email]
"Those who live hoping, die singing" My Gran