Serving the Quantitative Finance Community

Search found 14 matches

by fox
March 18th, 2005, 11:36 pm
Forum: Student Forum
Topic: Loan Spread
Replies: 0
Views: 155626

Loan Spread

I came across different methods to convert price of a floater (or loan) to spread. For example, some people parallel shift spot curve to match current price, and some just assume all future coupons fixed to calculate yield to maturity. But, what is the market convention? Thanks.
by fox
June 24th, 2004, 3:46 pm
Forum: Programming and Software Forum
Topic: Display graphics from Matlab DLL
Replies: 4
Views: 186055

Display graphics from Matlab DLL

hmerkinger,Thanks for your detailed explanation. I can get the graphic functions working in DLL. But, I still wonder if I can use the mcc command (as I don't have COM builder) to compile a COM object and integrate it with other client programs in MSVC. Thanks.
by fox
June 23rd, 2004, 10:07 pm
Forum: Programming and Software Forum
Topic: Display graphics from Matlab DLL
Replies: 4
Views: 186055

Display graphics from Matlab DLL

<t>Seems Matlab C/C++ graphics library is only officially supported to generate stand alone executable, not DLL. To compile into DLL, they recommend to use COM builder. But, I only have Excel builder installed. Can I use excel builder to compile a COM object and use it from C++ and how? Thanks. </t>
by fox
June 23rd, 2004, 3:44 pm
Forum: Programming and Software Forum
Topic: Display graphics from Matlab DLL
Replies: 4
Views: 186055

Display graphics from Matlab DLL

<t>I have written a matlab propram which will display some plots. Then, I compiled this in MS visual studio as a DLL. But, wheneven I call this DLL to the point that it displays the graph, it aborts. I traced in debugger, and it aborted at the point of calling the plot function.For example, the orig...
by fox
June 18th, 2004, 7:34 pm
Forum: Programming and Software Forum
Topic: VBA question - calling DLL which calls other DLL's
Replies: 13
Views: 188369

VBA question - calling DLL which calls other DLL's

<t>Does anyone come across problem when calling a DLL from VBA which in turns needs to call other DLL's?For example, In test1.dll (the DLL I will call from VBA) , I have__declspec(dllimport) class myClass; //imported from test2.dllint __stdcall myFun(int x){ myClass anObj(x); return anObj.getValue()...
by fox
May 18th, 2004, 12:07 am
Forum: Programming and Software Forum
Topic: Passing variant type from VBA to C/C++
Replies: 6
Views: 189969

Passing variant type from VBA to C/C++

But, if I allocate memory to SAFEARRAY or VARIANT in my DLL, how can VBA delete the memory then? Thanks.
by fox
May 14th, 2004, 11:22 pm
Forum: Programming and Software Forum
Topic: How to call MATLAB COM object from C++?
Replies: 2
Views: 189433

How to call MATLAB COM object from C++?

I want to compile a Matlab m-file to a COM and call it from C++. I can't find any example in the Matlab documentation to do it. There is only an example for calling from VBA. Can someone give me an example or point me to some relevant documents?Thanks.
by fox
May 14th, 2004, 4:36 am
Forum: Programming and Software Forum
Topic: Passing variant type from VBA to C/C++
Replies: 6
Views: 189969

Passing variant type from VBA to C/C++

Thanks DCFC. But if I have to return a matrix from a C++ dll to VBA, what data structure do you recommend? Furthermore, if I have to allocate memory for the matrix in the dll, how can I "delete" the matrix in VBA?
by fox
May 12th, 2004, 5:00 am
Forum: Programming and Software Forum
Topic: Passing variant type from VBA to C/C++
Replies: 6
Views: 189969

Passing variant type from VBA to C/C++

<t>HI,I want to pass a table structure stored as variant in VBA to a C/C++ function that returns the result to another variant type. Can someone give me an example of how to write the code in C/C++?Here is the outline of the VBA code.Declare Function someCFunction lib "model.dll" (a as variant, b as...
by fox
March 3rd, 2003, 4:47 am
Forum: Careers Forum
Topic: Risk Management in Hong Kong???
Replies: 28
Views: 193559

Risk Management in Hong Kong???

What do you think about the quant job markets in Hong Kong or Tokyo? It seems the opportunity for quant position is very slim there. Thanks.
by fox
March 2nd, 2003, 12:29 am
Forum: Careers Forum
Topic: Risk Management in Hong Kong???
Replies: 28
Views: 193559

Risk Management in Hong Kong???

Do you know any recruiters specialized in quantitative finance or risk management jobs in Hong Kong or Tokyo? Thanks.
by fox
February 3rd, 2003, 5:06 pm
Forum: Student Forum
Topic: Basket Option
Replies: 19
Views: 193827

Basket Option

<t>Thanks Aaron. But regarding the single correlation measure from (d), why are we interested in this number as we have got the basket vol from individual implied vols and the correlation matrix? Do you mean that people in practice take this single correlation as kind of "average" correlation among ...
by fox
February 2nd, 2003, 6:36 pm
Forum: Student Forum
Topic: Basket Option
Replies: 19
Views: 193827

Basket Option

<t>Can someone tell me how to price a basket option? If we assume each constituent follows log-normal distribution, the basket itself cannot be log-normal. To get the price "exact", I think we need to use monte-carlo simulation to simulate the constituent joint trajectories. However, is it a common ...
by fox
November 24th, 2002, 7:06 am
Forum: Student Forum
Topic: Stochastic processes and Brownian motion problem
Replies: 11
Views: 191337

Stochastic processes and Brownian motion problem

<t>I have a related question. Can someone tell me how to compute the probability that S will never go below certain threshold level throughout the period from t=0 to t=T? If we take S to be value of the firm and the threshold be default barrier, this will be survival (no-default) probability up to t...