plotCurrentDepth: Visualise order book depth at any given point in time.

Description Usage Arguments Author(s) Examples

View source: R/visualisation.R

Description

Plots the cumalative volume on each side of the limit order book.

Usage

1
2
plotCurrentDepth(order.book, volume.scale = 1, show.quantiles = T,
  show.volume = T)

Arguments

order.book

A limit orderBook structure.

volume.scale

Volume scale factor.

show.quantiles

If true, highlight top 1% highest volume.

show.volume

If true, also show non-cumulative volume.

Author(s)

phil

Examples

1
2
3
4
5
6
7
# get a limit order book for a specific point in time, limited to +- 150bps
# above/below best bid/ask price.
lob <- orderBook(lob.data$events,
    tp=as.POSIXct("2015-05-01 04:38:17.429", tz="UTC"), bps.range=150)

# visualise the order book liquidity.
plotCurrentDepth(lob, volume.scale=10^-8)

obAnalytics documentation built on May 1, 2019, 7:04 p.m.