trading-peter / tv-shooter

A dockerized web service that takes screenshots on TradingView using a headless chrome.
MIT License
10 stars 4 forks source link

Go back in time #3

Closed betegon closed 4 years ago

betegon commented 4 years ago

Hi @pkaske

Thank you for your hard work!

As far as I know, it is not possible to go back in time in the chart.

Do you think this is achievable? I am interested on it I will like a bit of guidance if possible.

Looking to hear from you,

Kind regards.

trading-peter commented 4 years ago

Hi,

you would need to figure out how to programmatically start and control the replay feature. It's probable that there are APIs in the TradingView site to do that.

If that works it would just be a matter of extending request params.

betegon commented 4 years ago

Hi @pkaske Thank you for you answer. I don't even need to use replay feature, just go back in time to specific date and set the price axis (y axis) to a specific value.

Have you been able to get axis values using selenium? It is kind of new to me.

Thanks again!

trading-peter commented 4 years ago

Ah you mean moving the time axis. Yeah you would need to automate that goto feature that let's you set a date and a time I guess. The project isn't using selenium. It's using puppeteer tho.

betegon commented 4 years ago

Thank you so much, and sorry for bothering you.

I don't know why I think it was using selenium!