Timing issues when recalculating an XL spreadsheet with Quantlib

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

Timing issues when recalculating an XL spreadsheet with Quantlib

Grześ Andruszkiewicz
Hi,

I just noticed that my QuantLib spreadsheet has issues when recalculating in Excel: sometimes Excel reads the value of the instrument before the pricing engine is set, hence resulting in an error. Any ideas how to get around it?

Regards,
Grzegorz

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Timing issues when recalculating an XL spreadsheet with Quantlib

japari
Are you using the dependency trigger?
In
qlInstrumentNPV("InstrumentCELL", "CellWhereEngineIsSetToTheInstrument")

is the second entry.

Sometimes it bites me if I dont set the dependencies in an orderly manner (that one depends on others and so on...)

Best
pp


----- Original Message -----
From: "Grześ Andruszkiewicz" <[hidden email]>
To: [hidden email]
Sent: Thursday, 13 June, 2013 4:47:27 PM
Subject: [Quantlib-dev] Timing issues when recalculating an XL spreadsheet with Quantlib






Hi,

I just noticed that my QuantLib spreadsheet has issues when recalculating in Excel: sometimes Excel reads the value of the instrument before the pricing engine is set, hence resulting in an error. Any ideas how to get around it?

Regards,
Grzegorz

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Timing issues when recalculating an XL spreadsheet with Quantlib

Eric Ehlers-2
In reply to this post by Grześ Andruszkiewicz
Hi Grzegorz,

On 2013-06-13 16:47, Grześ Andruszkiewicz wrote:
> Hi,
>
> I just noticed that my QuantLib spreadsheet has issues when
> recalculating in Excel: sometimes Excel reads the value of the
> instrument before the pricing engine is set, hence resulting in an
> error. Any ideas how to get around it?

Please see

     http://quantlib.org/objecthandler/references.html

Kind Regards,
Eric
--
===================================================
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
* Distributed computing for pricing analytics
* Use Microsoft Excel as a client to the Grid

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev