# setup block that doesn't show up in the output knitr::opts_chunk$set(echo = FALSE) #knitr::opts_chunk$set(cache = TRUE) require(obmodeling) require(quantstrat) require(knitr) require(pander) panderOptions("digits", 2) Sys.setenv(TZ='GMT')
obmodeling is an R package which uses xts time series objects to manipulate and analyze:
Market depth statistics
Price movement, liquidity changes [@Cartea2015]
Market spread [@DeJong2009, pp. 91–96]
Measures of volatility [@DeJong2009 p. 92, and @Cartea2015]
PIN/VPIN [@Easley1996, @Easley2012a]
Price pressure [@Hendershott2014, @Cont2014]
Trade imbalance [@Cont2014]
# load the data here, ob_trades & ob_quotes load.quotes(system.file('extdata/ob_quotes.csv',package = 'obmodeling')) load.trades(system.file('extdata/ob_trades.csv',package = 'obmodeling'))
getOB()
head(effective.spread('ESH6', store=TRUE),2)
ob <- getOB() names(ob$ESH6)
chart.depth('ESH6')
{width=50%}
Market Toxicity Measures
Event Analysis [@Almgren2012]
Thank You for Your Attention
find it on github at: https://github.com/jmazar/obmodeling
install via:
install_github('jmazar/obmodeling')
Patches and contributions welcome!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.