Learn R Programming

pcalls (version 1.0)

AmericanDigitalCalls: Function that returns the price of an American Digital Call

Description

Digital options, also called binary option, are options which pay a fixed payoff when the underlying stock price crosses the strike price. Thus, American Digital Options are automatically exercised as soon as they get in the money. In addition, American Digital options can be splitted in two categories: cash-or-nothing (which pays a fixed payoff in case of the underlying stock price ends up in the money) and asset-or-nothing (which pays the value of the underlying stock in case of the underlying stock price ends up in the money) options.

Usage

AmericanDigitalCalls(s0, k, t, r, vol, call_type)

Arguments

s0

stock price at time 0

k

strike price

t

time to maturity in years

r

annual interest rate

vol

annual volatility

call_type

"A":asset or "C":cash

Value

Price of the call

Warning

Be sure that the type of the call is "A" or "C". All input values must be stricly positive.

Details

No details

References

"Option Pricing Using Different Techniques" by Degiorgi Elia, Milan Federico, Zaramella Davide, Stoeva Valerija (2019)

Examples

Run this code
# NOT RUN {
AmericanDigitalCalls(10,11,1,0.05,0.2,"A") #  4.277183
# }

Run the code above in your browser using DataLab