call_payoff: Calculate european call option payoff

View source: R/call_payoff.R

call_payoffR Documentation

Calculate european call option payoff

Description

The call_payoff function calculate payoffs from trajectory.

Usage

call_payoff(asset_price, strike)

Arguments

asset_price

numeric vector, price of the asset over time.

strike

numeric value, strike price of the option.

Value

A numeric value, european call option payoff.

Examples

x <- generate_scenarios(100, 0, 0.3)
call_payoff(x[, 1], strike = 100)
call_payoff(c(100, 120), strike = 107)
call_payoff(c(100, 120, 107), strike = 107)

mociepa/ShortfallRiskHedging documentation built on Sept. 30, 2022, 6:43 p.m.