Profit: Computes payout/profit values

Description Usage Arguments Value Author(s) Examples

View source: R/QFRM.R

Description

Computes payout/profit values

Usage

1
Profit(o = OptPos(), S = o$S0)

Arguments

o

An object of class Opt*

S

A (optional) vector or value of stock price(s) (double) at which to compute profits

Value

A numeric matrix of size [length(S), 2]. Columns: stock prices, corresponding option profits

Author(s)

Oleg Melnikov, Department of Statistics, Rice University, Spring 2015

Examples

1
2
Profit(o=Opt())
graphics::plot( print( Profit(OptPos(Prem=2.5), S=40:60)), type='l'); grid()

QFRM documentation built on May 2, 2019, 8:26 a.m.