pnl: Calculate profit and loss

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/pnl.R

Description

Calculate profit and loss based on price series, transactions and corporate actions for an instrument.

Usage

1
 pl = pnl(pseries, closepricecol, txn, corp) 

Arguments

pseries

the xts time series with price data for this instrument.

closepricecol

the column of pseries that holds the close prices for this instrument.

txn

the xts time series with transactions for this instrument.

corp

the xts time series with corporate actions for this instrument.

Details

TODO

Value

Returns an xts series with period profit and loss.

Author(s)

Mark Breman

See Also

addTrans, addDvd

Examples

1
  ## TODO

pnl documentation built on May 2, 2019, 5:01 p.m.

Related to pnl in pnl...