[QuantlibXL] Why qlBlackCalculator does not need valuation date and expire date?

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

[QuantlibXL] Why qlBlackCalculator does not need valuation date and expire date?

Leon Tan
Hi everybody.

I'm a new to Quantlib. I'm trying to calculate option value in Excel with QuantlibXL. As in the attached file, I created a qlBlackCalculator2 object and calculated the call value using qlBlackCalculatorValue. But I realized that I have not put valuation date or expire date anywhere. Could somebody help and tell me what I am missing and where to set those parameters?

Thank you very much for your help!

--
Leon Tan, MBA, FRM


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

qlBlackcalculator.xls (32K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [QuantlibXL] Why qlBlackCalculator does not need valuation date and expire date?

Luigi Ballabio
On Wed, 2011-02-16 at 17:32 +0800, Leon Tan wrote:
> I'm a new to Quantlib. I'm trying to calculate option value in Excel
> with QuantlibXL. As in the attached file, I created a
> qlBlackCalculator2 object and calculated the call value using
> qlBlackCalculatorValue. But I realized that I have not put valuation
> date or expire date anywhere. Could somebody help and tell me what I
> am missing and where to set those parameters?

Besides the payoff, you're passing a forward value, std deviation, and
discount factor.  Their values already take into account the expiration
date, so that's not needed.  As for the valuation date, you can set it
with qlSettingsSetEvaluationDate.

Luigi


--

The First Rule of Optimization: Don't do it.
The Second Rule of Optimization (For experts only): Don't do it yet.
-- Michael Jackson



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users