calldown | R Documentation |
calldown
is a fuction enhancing the pricinge precedure of a Call Down (Knock-out) Barrier Option evaluation using Monte Carlo method.
calldown(s, k, v, r, tt, d, B, m, numsim, InOut = "In")
s |
= underlying |
k |
= strike |
v |
= volatility |
r |
= riskFreeRate |
tt |
= maturity |
d |
= dividendYield |
B |
= barrier |
m |
= nbr of price change simulated |
numsim |
= nbr of paths simulated |
InOut |
= "In" if you want the price of a Down-In option or "Out" if you want the price od a Down-Out option. |
the output is the expected price for the underlying option.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.