ohlc_skew | R Documentation |
Calculate time series of point skew estimates from a OHLC time series, assuming zero drift.
ohlc_skew(ohlc, method = "rogers_satchell")
ohlc |
An OHLC time series of prices in xts format. |
method |
A character string representing method for estimating skew. |
The function ohlc_skew()
calculates a time series of skew
estimates from OHLC prices, one for each row of OHLC data.
The skew estimates are expressed in the time scale of the index of the
OHLC time series.
For example, if the time index is in seconds, then the skew is given in
units of skew per second. If the time index is in days, then the skew is
equal to the skew per day.
Currently only the "close"
skew estimation method is correct
(assuming zero drift), while the "rogers_satchell"
method produces a
skew-like indicator, proportional to the skew. The default method is
"rogers_satchell"
.
A time series of point skew estimates.
# Calculate time series of skew estimates for SPY
skew <- HighFreq::ohlc_skew(HighFreq::SPY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.