View source: R/call_price_convex.R
call_price_convex | R Documentation |
The call_price_convex function takes parameters from Black-Scholes model and returns a price of modified european call option.
call_price_convex(asset, strike, rate, vol, drift, p, time, End_Time, L, L2 = NA)
asset |
a numeric vector of asset prices. |
strike |
numeric value, strike price for call or put option. |
rate |
numeric value, risk free rate in the model, r >= 0. |
vol |
numeric value, volatility of the model, vol > 0. |
drift |
numeric value, drift of the model. |
p |
numeric value, power of the loss function, p > 1. |
time |
a numeric vector of actual time, time > 0. |
End_Time |
end time of the option, End_time >= time. |
L |
numeric value, determines option payoff, L > 0. |
L2 |
numeric value, determines option payoff, if L2 = NA, but is needed, function finds it with Newton's algorithm. |
A numeric vector, price of the modification of european call option using convex loss function.
call_price_convex(100, 100, 0, 0.5, 0.05, 2, 0, 1, 105) call_price_convex(c(100, 120), 100, 0, 0.3, 0.05, 2, 0, 1, 105) call_price_convex(c(100, 120), 100, 0, 0.3, 0.05, 2, c(0, 0.5), 1, 105)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.