example code for equity daily range accrual

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

example code for equity daily range accrual

P Nelnik
Greetings all,

Is there some example code showing how quantlib can be used to price an equity range accrual using MC?
Coupons are multiplied by (n/N) i.e. (days in range) / (total days in period)

Can we ever get a Path which includes the history?
For pricing existing trades we want to drop historical coupons
but also have access to the recent history which will determine the next coupon.

Has anyone used quantlib to price an equity accumulator?
Is there some example code?
In a (basic) accumulator, the holder will an accumulate (receive) a fixed number of shares per day
and will pay a fixed (strike) price. There is an up-and-out barrier on the daily closes.
So it is just like a string of knock-out forwards

Thanks
Philip


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: example code for equity daily range accrual

Luigi Ballabio
On Tue, 2010-06-15 at 18:53 +0800, P Nelnik wrote:
> Can we ever get a Path which includes the history?

Not at this time.  We'd need modifications to the path generator
classes.

Luigi


--

Cogito ergo I'm right and you're wrong.
-- Blair Houghton



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users