Learn R Programming

QFRM (version 1.0.1)

ShoutLT: Shout option valuation via lattice tree (LT)

Description

A shout option is a European option where the holder can shout to the writer at one time during its life. At the end of the life of the option, the option holder receives either the usual payoff from a European option or the instrinsic value at the time of the shout, which ever is greater. $max(0,S_T-S_tau)+(S_tau-K)$

Usage

ShoutLT(o = OptPx(Opt(Style = "Shout")), IncBT = TRUE)

Arguments

o
An object of class OptPx
IncBT
TRUE/FALSE indicating whether to include binomial tree (list object) with output

Value

A list of class ShoutLT consisting of the original OptPx object, binomial tree stepBT and the computed price PxBS.

References

Hull, J.C., Options, Futures and Other Derivatives, 9ed, 2014. Prentice Hall. ISBN 978-0-13-345631-8, http://www-2.rotman.utoronto.ca/~hull/ofod. http://amzn.com/0133456315

Examples

Run this code
(o = ShoutLT( OptPx(Opt(Style='Shout'))))$PxLT

o = Opt(Style='Shout', Right='Call', S0=60, ttm=.25, K=60)
ShoutLT( OptPx(o,r=.1, q=.02, vol=.45, NSteps=10))

o = Opt(Style='Shout', Right='Call', S0=60, ttm=.25, K=60)

Run the code above in your browser using DataLab