himalaya example into experimental folders

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

himalaya example into experimental folders

Paolo-57
Hi all,
 
I saw an exemple on himalaya equity basket into experimental folder and it fits my needs but I would like to add a new list of dates into the mc simulation and on this list of dates make some operations such as pay a coupon or something like that.
 
Could you give me some clue about how modify the files himalayaoption mchimalayaengine to add these features.
 
thanks in advance,
Alex


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: himalaya example into experimental folders

Luigi Ballabio
On Wed, 2010-10-27 at 08:01 +0100, Paolo wrote:
> I saw an exemple on himalaya equity basket into experimental folder
> and it fits my needs but I would like to add a new list of dates into
> the mc simulation and on this list of dates make some operations such
> as pay a coupon or something like that.   Could you give me some clue
> about how modify the files himalayaoption mchimalayaengine to add
> these features.

First, you should pass the list of coupon dates and the coupon rates to
the HimalayaOption class.  You should also add corresponding data
members to HimalayaOption::arguments and set them in setupArguments().

As for the engine, you should:
- modify MCHimalayaEngine::timeGrid() method so that it uses both the
fixing dates and the coupon dates;
- modify HimalayaMultiPathPricer so that it takes the coupon rates, and
possibly some kind of vector of booleans that tells which dates are
fixing dates and which are coupon dates; also modify
MCHimalayaEngine::pathPricer() so that it passes the new arguments to
the path pricer it builds;
- modify HimalayaMultiPathPricer::operator() so that it uses the coupon
information.

Luigi


--

The first thing we do, let's kill all the lawyers.
-- W. Shakespeare, "King Henry VI, Part II"



------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users