1 |
o |
|
S |
1 2 3 4 5 6 7 8 9 10 11 12 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (o = OptPos(), S = o$S0)
{
stopifnot(is.Opt(o))
o = as.OptPos(o)
return(cbind(S, Profit = o$Pos$SignLS * (pmax(o$Right$SignCP *
(S - o$K), 0) - o$Prem)))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.