compute_option_scenarios: Compute option price scenarios at a given point in time

Description Usage Arguments Value

View source: R/opt_pnl.R

Description

Compute option price scenarios at a given point in time

Usage

1
2
compute_option_scenarios(scenario_datetime, vol_change = 0.3,
  underlyer_change = 0.1, n_scenarios = 20, multiplier = 100)

Arguments

scenario_datetime

Datetime at which to compute option price scenarios

n_scenarios

Number of scenarios to compute for underlyer volatility

option_leg

Option Leg object

vol_min

Lower bound of volatility scenarios as a fraction of current volatility

vol_max

Upper bound of volatility scenarios as a fraction of current volatility

underlyer_min

Minimum underlyer price

underlyer_max

Maximum underlyer price

underlyer_prices

Vector of underlyer closing prices, matching the option leg prices

underlyer_margin

Integer specifying padding at margins of PnL graph

Value

Matrix of option prices for different underlyer prices and volatility


zumthor86/optPnL documentation built on Nov. 19, 2020, 5:15 p.m.