Issue with horiz_time_volume update_data on sparser intervals (e.g., 30m) #540
Unanswered
Kassad1979
asked this question in
Q&A
Replies: 1 comment
-
This is a bug in finplot, sorry about that. I need a fully working, minimal example so I can reproduce the bug. I promise to fix it if you get me that. As you probably can tell, that part of finplot is a hack, and not super-easy to work with... :-/ Thank you for your thanks! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I’m encountering an issue when using
update_data()
withhoriz_time_volume
in finplot. The problem appears specifically when dealing with sparser intervals and certain grouping parameters. Here’s a detailed summary:Context:
horiz_time_volume()
to plot a volume profile. The initial data and subsequent updates follow the required input format:update_data()
works flawlessly. No indexing or out-of-bounds errors occur.The Problem:
period='D'
) and similar parameters for bins (e.g., 150 bins),update_data()
frequently fails.Observations:
period='D'
, everything is fine. Larger datasets and more dense data result in no errors.What I’ve Tried:
update_data()
works perfectly, which suggests that the format and logic of the code are correct.Hypothesis:
horiz_time_volume
might require a minimum density of data points within each grouped period (day, in this case) to correctly map timestamps to its internal data structure.Request:
horiz_time_volume
andupdate_data()
have certain assumptions about data density or continuity?Thank you in advance for your assistance, and for providing such a useful plotting library.
Best regards,
Marcin
Beta Was this translation helpful? Give feedback.
All reactions