binary_call_payoff: Calculate european binary call option payoff

View source: R/binary_call_payoff.R

binary_call_payoffR Documentation

Calculate european binary call option payoff

Description

The binary_call_payoff function calculate payoffs from trajectory.

Usage

binary_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 binary call option payoff.

Examples

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

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