You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Love the library. It is very simple to use
I have a question about the use of resample_apply. I am currently trying to calculate ATR indicator in a 5m time frame with 1m time frame input.
Expected Behavior
I would have expected that the ATR value for a 5m timestamp would be replicated to the next 5 1m timestamps.
like this:
Instead what happens is the candle data is shifted one 5m candle forward.
i.e. what I see between 03:00:00 and 03:04:00 is old data from 02:55:00 instead of 03:00:00
Is there something I am assuming incorrectly?
Thank you for any help!
Hi! Love the library. It is very simple to use
I have a question about the use of resample_apply. I am currently trying to calculate ATR indicator in a 5m time frame with 1m time frame input.
Expected Behavior
I would have expected that the ATR value for a 5m timestamp would be replicated to the next 5 1m timestamps.
like this:
ATR 5m
2023-04-21 02:55:00 0.059889
2023-04-21 03:00:00 0.059727
2023-04-21 03:05:00 0.059586
ATR5m in 1m candles (resample_apply output)
2023-04-21 03:00:00 0.059727
2023-04-21 03:01:00 0.059727
2023-04-21 03:02:00 0.059727
2023-04-21 03:03:00 0.059727
2023-04-21 03:04:00 0.059727
2023-04-21 03:05:00 0.059586
2023-04-21 03:06:00 0.059586
2023-04-21 03:07:00 0.059586
2023-04-21 03:08:00 0.059586
2023-04-21 03:09:00 0.059586
Actual Behavior
Instead what happens is the candle data is shifted one 5m candle forward.
i.e. what I see between 03:00:00 and 03:04:00 is old data from 02:55:00 instead of 03:00:00
Is there something I am assuming incorrectly?
Thank you for any help!
Steps to Reproduce
Additional info
The text was updated successfully, but these errors were encountered: