Sei sulla pagina 1di 5

Seminar Nasional Sistem dan Informatika 2006; Bali, November 17, 2006

SNSI06-034

SOFTWARE APPLICATION FOR COMPUTING OPTIONS


Mairiza, Dewi Faculty of Computer Science, University of Indonesia, Depok mairiza@cs.ui.ac.id ABSTRAK Jual beli options tidak sepopuler jual beli stocks di Indonesia. Banyak perusahaan mempunyai kesulitan dalam mengambil keputusan untuk membeli, menjual atau turut serta dalam melakukan penjualan atau pembelian options. Mereka mengalami kesulitan dalam memprediksi waktu yang tepat untuk melakukan kegiatan terkait. Untuk membantu pengambil keputusan dalam memilih tindakan yang tepat, telah dikembangkan sebuah aplikasi yang dibuat dengan Matlab. Aplikasi ini membantu pengguna dalam menemukan nilai-nilai dari sensitivity variables seperti delta, theta, vega, rho dan gamma. Aplikasi tersebut juga dapat menghitung perkiraan harga dari pembelian dan penjualan options. Disamping itu, program tersebut juga dapat menampilkan grafik yang menggambarkan harga options di pasaran. Kata Kunci: Penjualan dan Pembelian Options, Sensitivity Variables, Estimasi Harga dan Keuntungan

1. Introduction
There are a lot of problems regarding options trading in Indonesia. One of them is the spin-off process of two public organizations (PT. Semen Padang and PT. Semen Gresik) that becomes a national problem. Some people have different arguments wether the options should or shold not be exercised. By then, options trading are of interest of many traders. Options trading are not as popular as stocks trading, since many traders and buyers have difficulties in understanding the conduct of options trading. The difficulties include problems in making decisions to buy, sell, and exercise call or put options. The Black-Scholes and Mertons Jump Diffusion models are put and call options pricing models which are based on uncertainty in stock market behaviours. Using this model, the options traders (organizations or companies) can estimate their profit and the time to buy, sell, and exercise their options. There are four groups of users: 1. Call writers/sellers: They sell call options if they estimate the stock pricing in the stock market is stable or decreases. 2. Call buyers: They buy call options if they estimate the stock pricing in the stock market increases in short term. 3. Put writers/sellers: They sell put options if they estimate the stock pricing in the stock market is stable or increases. 4. Put buyers: They buy put options if they estimate the stock pricing in the stock market decreases. To make options traders and buyers easier in estimating their profit in the uncertainty options market, a tool implementing options trading concept is a necessity. Such software application can provide useful information to traders before they sell or buy options.

2. Constraint Program
There are some constraints involved in this application: 1. All of constraints in Black-Scholes and Mertons Jump Diffusion Model are in effect. 2. Only for European Options. 3. Interest rates are constant.

3. Implementation of Black-Scholes Model


Call option of the Black-Scholes model is calculated using this equation: c = S N(d1) X e-rt N(d2) where: c = call option premium pricing N(.) = cumulative normal density function d1 = ln ( S / X ) + ( r + 0.5 2 ) t t d2 = d1 - t r = interest rates (in %, each year) X = exercise price of call option S = stock price e = natural number (2.71828...) t = option lifetime before expiered (year) = standard deviation of stock return (volatility) Put Option in the Black-Scholes model is calculated using this equation: p = Xe-rt N(-d2) S N(-d1) where: p = put option premium pricing 208 (1)

(2)

Seminar Nasional Sistem dan Informatika 2006; Bali, November 17, 2006

SNSI06-034

N(.) d1 d2 r X S e t

= = = = = = = = =

cumulative normal density function ln ( S / X ) + ( r + 0.5 2 ) t t d1 - t interest rates (in %, each year) exercise price of call option stock price natural number (2.71828...) option lifetime before expiered (year) standard deviation of stock return (volatility)

Sensitivity variables involves in the model are: Table 1. Formula of Black-Scholes Sensitivity Variables Call Option Put Option
DELTAc = c/S = N(d1) DELTAp = p/S = N(d1) - 1 GAMMAc = DELTAc / S = 2c/S2 = N(d1) / [St] GAMMAp = DELTAp / S = 2p/S2 = N(d1) / [St] -rt THETAc = -(c/t) = - [ ( S N(d1) ) / 2t] rXe N(d2) THETAp = -(p/t) = - [ ( S N(d1) ) / 2t)] + rXe-rt N(-d2) VEGAc = c/ = S (t) N(d1) VEGAp = p/ = S (t) N(d1) RHOc = c/r = X t e-rt N(d2) RHOp = p/r = - X t e-rt N(-d2) N(d1) = e- 0.5 (d1)^2 / (2 )

Variable
DELTA GAMMA THETA VEGA RHO

4. Implementation of Mertons Jump Diffusion Model


Call Option for the Mertons Jump Diffusion model is calculated using the following equation: cM = e- tS N(d1M) Xe-rt N(d2M) where: cM = call option pricing d1M = ln (S / X) + ( r - + 0.52 ) t t d2M = d1M - t = dividend rates Put Option for the Mertons Jump Diffusion model is calculated using the following equations: pM = Xe-r tS N(-d2M) Se- t N(-d1M) where: pM = put option pricing Sensitivity variables involves in the model are: Variable
DELTA THETA VEGA RHO GAMMA

(3)

(4)

DELTAp = p/S = e- t [ N(d1M) 1] DELTAc = c/S = e- t N(d1M) THETAp = -(p/t) = - [ ( S N(d1M) e- t ) / 2 t ] THETAc = -(c/t) = - [ ( S N(d1M) e- t ) / 2 t ] + SN(d1M) e- t rXe-r t N(d2M) SN(d1M) e- t + rXe-r t N(-d2M) VEGAp = p/ = S (t) N(d1M) e - t VEGAc = c/ = S (t) N(d1M) e - t -r t M RHOc = c/r = X t e N(d2 ) RHOp = p/r = -X t e-r t N(-d2M) GAMMAp = DELTAp / S = 2p/S2 = [N(d1M) e- t ] / S t GAMMAc = DELTAc / S = 2c/S2 = [N(d1M) e- t ] / S t N(d1M) = e- 0.5 (d1M)^2 / 2

Table 2. Formula of Mertons Jump Diffusion Sensitivity Variables Call Option Put Option

5. Software Application
The Black-Scholes and Mertons Jump Diffusion models have been implemented in the Matlab 5.3 environment. By using this application, buyers and sellers of call and put options can estimate the options pricing and the value of sensitivity variables as a judgment in deciding whether the buy or sell options can be proceeded. The output also gives a graph representation of options pricing in market price. By using this graph, the options sellers can estimate the minimum and maximum value of the options pricing. This can give them the estimation of the maximum profit from the options selling transaction. The options buyers also can estimate the minimum and maximum of options pricing. This can give them the estimation of the maximum profit from the options buying transaction. a : range of minimum and maximum of call option pricing when stock price is $100. In this range, buyers and sellers of call option can estimate call options pricing that will give them maximum benefits. 209

Seminar Nasional Sistem dan Informatika 2006; Bali, November 17, 2006

SNSI06-034

Harga Call S ebagai F ungs i Dari Harga S aham 30 Harga O ps i Call (S ,X,t,r,v) G aris Harga M inim um (S -X) 25

20 Harga Call

15

10

a
80 85 90 95 100 105 Harga S aham 110 115 120 125

0 75

Figure 1. Call Pricing as a Function of Stock Pricing


Harga P ut S ebagai Fungs i Dari Harga S aham 25 Harga O ps i P ut (S ,X,t,r,v) Garis B atas Harga (X-S ) 20

15 Harga Put

10

b
80 85 90 95 100 105 Harga S aham 110 115 120 125

0 75

Figure 2. Put Pricing as a Function of Stock Pricing b : range of minimum and maximum of put option pricing when stock price is $100. In this range, buyers and sellers of put option can estimate put options pricing that will give them maximum benefits.

a c f

Figure 3. User Interface of Software Application

210

Seminar Nasional Sistem dan Informatika 2006; Bali, November 17, 2006

SNSI06-034

Explanation of picture : a : menu to choose model (Black-Scholes or Mertons Jump Diffusion) b : input menu, users have to enter the value of variable to find the price of options, sensitivity variables, and graph representation. The inputs are : Stock price (S), Exercise price (X), interest rates, options life (year), volatility, and dividend rates (only for Mertons Jump Diffusion model). c : help menu. d : reset the value. e : enter, to find solution. f : display of output; price of put and call option, value of sensitivity variables for put and call option. g : graph representation of call option, to estimate minimum and maximum of call option price. h : graph representation of put option, to estimate minimum and maximum of put option price. i : history, to save the record of simulation. j : save as menu, to save history to new file. k : exit menu, exit from application. No 1 2 3 4 5 6 7 8 9 S ($) 80 100 40 48 110 500 35 990 120 Table 3. Execution Time of Black-Scholes Model X ($) t (year) R (%) Second (Black-Scholes) 100 1 9 0.40 0.4400 100 180/365 8 0.30 0.3900 45 6/12 10 0.45 0.3300 50 3/12 6 0.40 0.3300 100 1 9 0.40 0.6100 550 3/12 6 0.75 0.4300 30 5 2 0.80 0.4400 900 2 10 0.25 0.3800 150 4/12 3 0.45 0.3300 real data and emphasizes to the

This software application has already been tested. The test is conducted using correctness of the program, and the execution time when solving the problems. The average time of execution program for Black-Scholes model is 0.4088888 second. No 1 2 3 4 5 6 7 8 9 S ($) 80 100 40 48 110 500 35 990 120

Table 4. Execution Time of Mertons Jump Diffusion Model X ($) t (year) R (%) Secon (Mertons Jump Diffusion) 100 1 9 0.40 0.03 0.4400 100 180/365 8 0.30 0.08 0.4900 45 6/12 10 0.45 0.03 0.3800 50 3/12 6 0.40 0.10 0.3800 100 1 9 0.40 0.09 0.3900 550 3/12 6 0.75 0.50 0.3800 30 5 2 0.80 0.3 0.4400 900 2 10 0.25 0.01 0.4900 150 4/12 3 0.45 0.02 0.3800

Average time of execution program for Mertons Jump Diffusion model is 0.4188888 second. Here are some advantages that can affect options traders and buyers when using this software application: 1. They can make a simulation of options pricing before deciding sell or buy options. 2. They can estimate the minimum and maximum price of option that will give them maximum profit. 3. They also find sensitivity variables as a judgment in deciding to buy or sell option. 4. There is a history menu, that saves all simulations that have already been done, and users also can put data from history if they need. 5. Users can choose options model (Black-Scholes or Mertons Jump Diffusion) in their simulation, so that they can compare the output to find the best decision.

6. Summary
Options trading as one of many hot issues in Indonesia need a software application that helps sellers and buyers to make a decision in options selling or buying. By using this application, users can simulate stock price, interest rates and others to find the best options pricing that give maximum profit based on sensitivity variables as a judgment. Software application has been developed in Matlab environment, and has average time execution for Black-Scholes model = 0.4088888 second and for Mertons Jump Diffusion model = 0.4188888 second. 211

Seminar Nasional Sistem dan Informatika 2006; Bali, November 17, 2006

SNSI06-034

Bibliography
[1] MATLAB The Languange of Technical Computing; Building GUIs with MATLAB, The MathWorks Inc., 1997. [2] Spline Toolbox for Use with MATLAB; Users Guide, The MathWorks Inc., 1998. [3] Black, Fischer., Scholes, Myron., The Pricing of Options and Corporate Liabilities, Journal of Financial Economics, 7:-54, 1973. [4] Bates, David S., Jumps and Stochastic Volatility: Exchange Rate Processes Implicit in Deutsche Mark Option, The Review of Financial Studies University of Pennsylvania and National Bureau of Economic Research,1996. [5] http://bradley.edu/~arr/bsm/pg04b.htm, The Black and Scholes Model, 2001. [6] Cox, John C., Options Market, Prentice Hall, 1985. [7] Dubofsky, David A., Options and Financial Futures: Valuation and Uses, McGraw-Hill, 1992. [8] Enander, Eva Prt., et al, The Matlab Handbook, Addison-Wesley, 1996 [9] Etter, Delores M., Introduction to MATLAB for Engineers and Scientist, Prentice Hall, 1996. [10] Fabozzi, Frank J., et al, Financial Markets and Institutions, Prentice Hall, 1994. [11] Odegaard,Bernt Arne, http://www.finance.bi.no/~bernt/, Financial Numerical Recipes, 2001. [12] Hinkle, Dennis E., et al, Applied Statistics for Behavioral Sciences, Houghton Mifflin, 1988. [13] Heston, Stevel L., A Closed-Form Solution for Options With Stochastic Volatility With Applications to Bond and Currency Options, Review of Financial Studies, Volume 6 Issue 2, 1993. [14] Hull, John C., Options, Futures, and Other Derivatives, 3rd edition, Prentice Hall, 1997. [15] Jones, Christopher S., The Dynamics of Stochastic Volatility: Evidence from Underlying and Options Market, Simon School of Business Carol Simon Hall University of Rochester, 2001. [16] Jones, Charles P., Investments Analysis and Management, 6th edition, Wiley, 1998. [17] Kolb, Robert W., Futures, Options, and Swaps, 2nd edition, Blackwell Publisher, 1997. [18] BES: Option Butuh Waktu Lama, Kompas 30 Juli 2001. [19] Put Option Semen Gresik Harus Dilaksanakan, Kompas 4 Oktober 2001. [20] Kurniawati, Evi Yulia., Akuisisi GAR gagal, Indofood Akhiri Put dan Call Option, http://www.satunet.com/warta_pasar, 29 Oktober 2001. [21] Littlefield, Bruce., Hanselman, Duane., The Student Edition of MATLAB: version 5, Users Guide, Prentice-Hall, 1997. [22] Nuryanti, Novi., Seharusnya Put Option Semen Gresik Tak Dilakukan, http://www.satunet.com, 8 Oktober 2001.

212

Potrebbero piacerti anche