binary_put_payoff: Calculate european binary put option payoff

View source: R/binary_put_payoff.R

binary_put_payoffR Documentation

Calculate european binary put option payoff

Description

The binary_put_payoff function calculate payoffs from trajectory.

Usage

binary_put_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 put option payoff.

Examples

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

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