Description Usage Arguments Value Examples
View source: R/describe_trades.R
Generate a trade list based on a previous and a new schedule. The function will analyse the differences between the schedules and infer the time and volume of the trades that occurred.
1 | describe_trades(old_schedule, new_schedule, prices)
|
old_schedule |
a numerical vector |
new_schedule |
a numerical vector, must be same length as |
prices |
a numerical vector, must be same length as |
a data frame with columns describing the time at which a trade occurred (as index of old_schedule), volume and buy/sell price
1 2 3 4 | schedule1 <- c(4, 0, 0, 3)
schedule2 <- c(0, 3, 0, 4)
new_prices <- c(70, 65, 80, 60)
describe_trades(schedule1, schedule2, new_prices)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.