I write a regular column for Wilmott quant finance magazine and for issue no 96 (July 2018) thought I would illustrate how easy it is to combine Excel-DNA with a math library
My code needs the .NET framework (comes with a typical Windows install) plus the two attached files plus a single file from the Excel-DNA download (renaming either ExcelDna.xll for the 32-bit version or ExcelDna64.xll for the 64-bit version to Wilmott96.xll)
So you then need to put the five files in the same directory: Wilmott96.xls, Wilmott96.dna, Wilmott96.vb, Wilmott96.xll and MathNet.Numerics.dll.
From Excel, open Wilmott96.xls, then open the Wilmott96.xll add-in and you should then see my wonderful vbEuroCallSVMC in the function wizard under the Wilmott96 category, with the even-more-wonderful IntelliSense labels that Excel-DNA can now handle.
I use the following parameter values: S=100, K=60, r=0.0; q=0.0 and Tyr=1.0; for Heston, volofvol=0.39; kappa=1.15; rho=-0.64; theta0=0.04 and theta=0.04. For the simulation, I use dTyr=1/32 with nsim at least 40,000 – though I have run it up to 960,000.
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.