Hello - I am new to Quantlib, and have a simple question:
I want to price an option on USDZAR (currency), say a 3m american option to buy USD, sell ZAR, for example, strike 11.00, given a flat vol surface @25% using Black Scholes. anybody have a simple C++ program that shows how to do this? Thanks. Thomas ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
You can rework the EquityOption.cpp example in QuantLib to price simple FX options under the assumption dividend yield == foreign rate. I have posted a simple bare-bones example at: http://www.bnikolic.co.uk/blog/ql-fx-option-simple.html Best, Bojan -- Bojan Nikolic || http://www.bnikolic.co.uk ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Tue, 2009-02-17 at 12:51 +0000, Bojan Nikolic wrote:
> You can rework the EquityOption.cpp example in QuantLib to price > simple FX options under the assumption dividend yield == foreign > rate. I have posted a simple bare-bones example at: > > http://www.bnikolic.co.uk/blog/ql-fx-option-simple.html Yes--thanks, Bojan. Just a note: to make it clearer that you're modeling an exchange rate, you might use GarmanKohlagenProcess instead of BlackScholesMertonProcess. It's the same, but the inputs have the right names. :) Luigi -- The young man knows the rules, but the old man knows the exceptions. -- O. W. Holmes ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Guys - thanks very much - I'll give it a try and feedback >>
Am working at Calyon BTW (Credit Agricole's investment bank) in sales to hedge funds. Do a lot of deep linear and non-linear trading in FX and rates. Evaluating Quantlib generally for foreign exchange and emerging markets (hope you'll implement cross currency swaps soon). Very new to Quantlib so forgive my simple questions, and thank you again for the pointers. Thomas On 17 Feb 2009, at 13:20, Luigi Ballabio wrote: > On Tue, 2009-02-17 at 12:51 +0000, Bojan Nikolic wrote: >> You can rework the EquityOption.cpp example in QuantLib to price >> simple FX options under the assumption dividend yield == foreign >> rate. I have posted a simple bare-bones example at: >> >> http://www.bnikolic.co.uk/blog/ql-fx-option-simple.html > > Yes--thanks, Bojan. Just a note: to make it clearer that you're > modeling an exchange rate, you might use GarmanKohlagenProcess instead > of BlackScholesMertonProcess. It's the same, but the inputs have the > right names. :) > > Luigi > > > -- > > The young man knows the rules, but the old man knows the exceptions. > -- O. W. Holmes > > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |