Interval Must Contain Two Elements

Issue #28 invalid
Former user created an issue

Hello, thanks a lot for this incredible package!

In VP function I'm receiving the following error :

Error in time %bw% "2020-08-06" : interval must contain two elements I understand the message and solution must be very simple, but I'm not getting it right. Can someone explain me this?

Best regards

Luís

P.S. This is using imported tick data :

> head(GBPUSD_mt5_ticks)
# A tibble: 6 x 5
  time                  bid   ask price volume
  <dttm>              <dbl> <dbl> <dbl>  <dbl>
1 2020-08-05 01:00:00  1.31  1.31  1.31      3
2 2020-08-05 01:00:00  1.31  1.31  1.31      3
3 2020-08-05 01:00:00  1.31  1.31  1.31      4
4 2020-08-05 01:00:00  1.31  1.31  1.31      1
5 2020-08-05 01:00:00  1.31  1.31  1.31      3
6 2020-08-05 01:00:01  1.31  1.31  1.31      3

Comments (2)

  1. Stanislav Kovalevsky repo owner

    Hello,

    The bw function works for data.table only as most of QuantTools functions. Please convert your tibble ticks to data.table.

    Best Regards

  2. Log in to comment