+ Reply to Thread
Results 1 to 3 of 3

Exercise policy for financial options in VBA

  1. #1
    Registered User
    Join Date
    10-25-2011
    Location
    Copenhagen
    MS-Off Ver
    Excel 2007
    Posts
    2

    Exercise policy for financial options in VBA

    I have to make an excel file for financial options in excel, where it can tell me if the optimal policy for the option is to keep it or exercise it. I have developed how the sockprice and optionprice develops in module1 and module2, but i can't get the formula in module3 to work - it has to tell me "Keep" or "Exercise" due to the equation in "Policygrid(i, time)". I think the problem is that module3 gets data from both module1 and module2 or just that i can't get the "application.if" formula to work.

    S = stockprice
    X = Exercise price
    T = Time
    rf = risk free rate
    Sigma = volatility
    n = number of periods

    If you would like to see how module 1 and 2 works try to use the following data:

    Mark 6 cells and 6 rows. Use S=100, X=100, T=5, rf=0.05, Sigma=0.2, n=5 in the formula (stockgridVarPeriod and optiongridvarPeriodAmrPut and press ctrl,shift,enter.

    I have added an excelfile with the relevant data, where i in the sheet "traditional" shows the exercise policy i would like to make in VBA. Hope one of you can figure it out, and please c/p the modules from below if you would like to help me out.

    Module1:

    Please Login or Register  to view this content.
    Module2:

    Please Login or Register  to view this content.
    Module3:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by benderen; 10-25-2011 at 03:26 PM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Exercise policy for financial options in VBA

    Please wrap the VBA-code in code tags (see the forum rules).



  3. #3
    Registered User
    Join Date
    10-25-2011
    Location
    Copenhagen
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Exercise policy for financial options in VBA

    Please, someone must now how to do it! I guess it's pretty simple for a VBA geek

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1