Intrinsec value of an option - SOLVED

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

Intrinsec value of an option - SOLVED

Lapin
This post was updated on .
Hi,

I can not manage to find in the doc the way to grab the intrinsec value of an option.
I am declaring my pointer on the payoff like below

boost::shared_ptr<PlainVanillaPayoff> payoff =
            boost::dynamic_pointer_cast<PlainVanillaPayoff>(arguments_.payoff) ;

and then I would like to get the instrinsec value given different spot (in order to fill my terminal values for a PDE resolution).

Do you know how to do?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Intrinsec value of an option

Luigi Ballabio
On Wed, 2007-09-19 at 08:12 -0700, Yomi wrote:
> I can not manage to find in the doc the way to grab the intrinsec value of
> an option.
> I am declaring my pointer on the payoff like below
>
> boost::shared_ptr<PlainVanillaPayoff> payoff = ...
>            
> Do you know how to do?

Real value = (*payoff)(spot);

Later,
        Luigi


--

A child of five would understand this. Send someone to fetch a child of
five.
-- Groucho Marx



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Intrinsec value of an option

Lapin
Luigi,

You are the man.

Thanks a lot.

Luigi Ballabio wrote
On Wed, 2007-09-19 at 08:12 -0700, Yomi wrote:
> I can not manage to find in the doc the way to grab the intrinsec value of
> an option.
> I am declaring my pointer on the payoff like below
>
> boost::shared_ptr<PlainVanillaPayoff> payoff = ...
>            
> Do you know how to do?

Real value = (*payoff)(spot);

Later,
        Luigi


--

A child of five would understand this. Send someone to fetch a child of
five.
-- Groucho Marx



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users