Return Jump Size

Share:

Description

Computes relative magnitude of jumps in position returns.

Usage

1

Arguments

asset

Position object created using position_add( ) function

Value

Metric object

Author(s)

Kostin Andrey <andrey.kostin@portfolioeffect.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
dateStart = "2014-11-17 09:30:00"
dateEnd = "2014-11-30 16:00:00"
portfolio=portfolio_create(dateStart,dateEnd)
portfolio_settings(portfolio,portfolioMetricsMode="price",windowLength = '3600s',
resultsSamplingInterval='60s')
positionAAPL=position_add(portfolio,'AAPL',100)
positionC=position_add(portfolio,'C',300) 
positionGOOG=position_add(portfolio,'GOOG',150) 
result=list(return_jump_size(positionC),return_jump_size(positionGOOG),
return_jump_size(positionAAPL))

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.