By Ioannis Rigopoulos on Monday, 12 February 2018
Category: Introduction

Introduction to Deriscope – Part 3: Pricing a Stock Option

In my Introduction to Deriscope – Part 2 I showed you how to create a Stock Option object in Excel and how to access the list of functions that apply to that object.

Now I will show you how to use the most important of these functions, the Price, which calculates the fair price of the calling object. Alternatively, you may watch my YouTube Stock Option Pricing video that includes voice narration.

The Price function is a so-called Local function, in the sense that it is invoked by an already existing object. It is always available provided the object's type derives from Tradable, as is the case with the Stock Option I am dealing with here.

Table of Contents 

The Price Function in the Wizard

Displaying and Hiding the Optional Parameters

Viewing and Editing the Objects in the Browse Area

Using the Go Button

Editing the Data in the Spreadsheet 

The Price Function in the Wizard 

Picking up where I left off, I go ahead and choose the function Price from the list of functions displayed in the Function Selector.

Deriscope fills up the grid in Browse Area as shown here.

These are the 9 input parameters to the Price function.

The first column holds the parameter names – also known as Keys – and the second column holds the associated values.

Only the two keys Models and Markets are mandatory.

The rest are optional as indicated by their dim appearance and are described in the above picture.

Displaying and Hiding the Optional Parameters 

I can display and hide all optional keys by clicking the button

Below is the Browse Area when all optional keys are hidden. Only the two keys Models= and Markets= appear.

Viewing and Editing the Objects in the Browse Area 

The displayed values $VanOptMdl#1 and $Mkt#1 are handle names of objects created by Deriscope for my convenience. They contain default modelling assumptions and market data that I can peruse and edit right here if I want, as this video demonstrates.

This browser does not support the video element.

Using the Go Button 

But I can just keep the default values and click on the Go button in order to generate and paste the full set of formulas in the spreadsheet. If I do that, the following menu of options appear​:

 If I select Create Demo Workbook, Deriscope creates a new workbook called Book2 consisting of 5 sheets.

Cell B2 of the last Output sheet contains the formula =ds(B3:C6) that calculates the option price as 9.925053717

The green color cells contain links to formulas in other sheets.

The Info Area at the bottom of the taskpane display suggestions for further exploration of the produced results.

Editing the Data in the Spreadsheet 

I can now edit the various data in the spreadsheet.

For example, I can go to sheet Other and select the cell B2 containing the handle name of the Payoff object.

The wizard then reacts by displaying the object's contents in a read-only fashion. 

I may change any value here, for example the value Call for the key Direction in cell C6.

As soon as I select that cell, a dropdown with allowed values appears.

I choose Put and then go to sheet Output to see that the option price has changed to 6.003997633

Not all values can be changed in spreadsheet.

To demonstrate, I go back to sheet Other and select the cell C5 containing the value Vanilla for the key Payoff Type.

A dropdown with allowed values appears.

 If I select SuperShare, the formula in cell B2 returns an Error object, of which the message can be read in the Info Area of the taskpane.

I am being informed that a key named "Second Strike" is missing from the input data.

I am also provided with a hyperlink to the description of that key.

 I am now having two options:

This browser does not support the video element.

Feel free to contact me if you want to share any thoughts with regard to this product or if you want to request any particular features. Contact info and social media links are available at my web site https://www.deriscope.com

Leave Comments