-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathupdatePosPL.Rd
42 lines (36 loc) · 1.3 KB
/
updatePosPL.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/updatePosPL.R
\name{.updatePosPL}
\alias{.updatePosPL}
\title{Calculates position PL from the position data and corresponding close price data.}
\usage{
.updatePosPL(
Portfolio,
Symbol,
Dates = NULL,
Prices = NULL,
ConMult = NULL,
Interval = NULL,
...
)
}
\arguments{
\item{Portfolio}{a portfolio name to a portfolio structured with initPortf()}
\item{Symbol}{an instrument identifier for a symbol included in the portfolio}
\item{Dates}{xts subset of dates, e.g., "2007-01::2008-04-15". These dates must appear in the price stream}
\item{Prices}{periodic prices in an xts object with a columnname compatible with \code{getPrice}}
\item{ConMult}{if necessary, numeric contract multiplier, not needed if instrument is defined.}
\item{Interval}{optional character string, containing one of "millisecond" (or "ms"), "microsecond" (or "us"),
"second", "minute", "hour", "day", "week", "month", "quarter", or "year". This can optionally be preceded by
a positive integer, or followed by "s".}
\item{\dots}{any other passthru parameters}
}
\value{
Regular time series of position information and PL
}
\description{
Calculates position PL from the position data and corresponding close price data.
}
\author{
Peter Carl, Brian Peterson
}