View source: R/call_price_linear.R
call_price_linear | R Documentation |
The call_price_linear function takes parameters from Black-Scholes model and returns a price of modified european call option.
call_price_linear(asset, strike, rate, vol, drift, time, End_Time, L)
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. |
time |
a numeric vector of actual time, time > 0. |
End_Time |
end time of the option, End_time >= time. |
L |
a numeric value, determines where option payoff is zero, see details, L > 0. |
Payoff of this modified call option is:
A numeric vector, price of the modification of european call option using linear loss function.
call_price_linear(100, 100, 0, 0.5, 0.05, 0, 1, 120) call_price_linear(c(100, 120), 100, 0, 0.3, 0.05, 0, 1, 120) call_price_linear(c(100, 120), 100, 0, 0.3, 0.05, c(0, 0.5), 1, 120)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.