Description Usage Arguments Details Author(s) Examples
View source: R/visualisation.R
Plots the points at which volume was added or removed from the limit order book.
1 2 3 4 |
events |
Limit order |
action |
"deleted" for cancelled volume, "added" for added volume. |
type |
default = c("flashed-limit"). Set of types. |
start.time |
Plot events from this time onward. |
end.time |
Plot events up until this time. |
price.from |
Plot events with price levels >= this value. |
price.to |
Plot events with price levels <= this value. |
volume.from |
Plot events with volume >= this value relevant to volume.scale |
volume.to |
Plot events with volume <= this value relevant to volume scale. |
volume.scale |
Volume scale factor. |
log.scale |
If true, plot volume on logarithmic scale. |
A flashed limit-order is a "fleeting" limit order: an order was added, then removed (usually within a very short period of time). This plot is especially useful for identifying individual trading algorithms by price and volume.
phil
1 2 3 4 5 6 7 8 | # plot all fleeting limit order volume using logarithmic scale.
with(lob.data, plotVolumeMap(events, volume.scale=10^-8, log.scale=TRUE))
# "fleeting" order volume within 1 hour range up until 10 units of volume.
with(lob.data, plotVolumeMap(events, volume.scale=10^-8,
start.time=as.POSIXct("2015-05-01 02:30:00.000", tz="UTC"),
end.time=as.POSIXct("2015-05-01 03:30:00.000", tz="UTC"),
volume.to=10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.