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