Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access full chart data in Overlay ? #212

Closed
forzapa opened this issue Feb 27, 2021 · 1 comment
Closed

How to access full chart data in Overlay ? #212

forzapa opened this issue Feb 27, 2021 · 1 comment

Comments

@forzapa
Copy link

forzapa commented Feb 27, 2021

Hello, first of all thank you for your package, it is really excellent.

I was wondering if it was possible to access all the data from a component overlay? The only thing I found that comes close is 'this.layout.candles' but this array only contains the candles that appear on the screen. Is there another way to access the entire dataset?

Actually my goal is to make an overlay that will display the VWAP technical indicator, and to calculate it, I need to get the last 150 candles, even if the chart is zoomed to the maximum and only 5 candles appear on the chart.

I know I can directly assign data to the overlay but the process seems a bit cumbersome because I update my chart in real time, so every time a tick is received I have to update the data of the chart and also of the overlay. I hope i was clear enough
If it's the only solution I'll deal with it, but having the possibility to access the whole dataset from an overlay seems to be a handy feature.

Thank you very much!

@C451
Copy link
Collaborator

C451 commented Feb 28, 2021

@C451 C451 closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants