Financial Toolbox    
ret2tick

Price tick series from incremental returns and initial price

Syntax

Arguments

RetSeries
Number of observations (NUMOBS) by number of assets (NASSETS) matrix of incremental return observations. The i'th return is quoted for the period TickTimes(i) to TickTimes(i+1) and is not scaled to a yearly return.
StartPrice
(Optional) 1-by-NASSETS vector of initial asset prices. Prices start at 1 if StartPrice is not specified.
RetIntervals
(Optional) Scalar or NUMOBS-by-1 vector of interval times between observations. If not specified, all intervals are assumed to have length 1.
StartTime
(Optional) Starting time for first observation.

Description

ret2tick generates price values from the starting prices of NASSETS investments and NUMOBS incremental return observations.

TickSeries is a NUMOBS+1-by-NASSETS matrix of prices of equity assets. The first row is the starting price of the assets.

TickTimes is a NUMOBS+1-by-1 vector of tick observation times. The initial time is zero unless specified in StartTime.

Examples

Compute the price increase of two stocks over a year's time based on three incremental return observations.

See Also

portsim, tick2ret


  pyld2zero second