tradingview / charting-library-tutorial

This tutorial explains step by step how to connect your data to the Charting Library
MIT License
397 stars 305 forks source link

DateRange Go To Date Function sending too many request on short period resolutions #107

Open yagiz-aydin opened 2 months ago

yagiz-aydin commented 2 months ago

Hi,

I'm currently using v26 TradingView, When I try to use go to date function as a user with given default adapter the chart is waiting for the full data between user clicked date and now date. Otherwise some bars is missing betwen X time and now time. So, I'm looking for a possible fix for this issue. I found the same issue on Binance TradingView image on bellow. It looks too many requests like infinite requests sending for 1,5,15,30,60,240 minute resolutions.

At least I need this tricky answer for fixing the issue. When user triggers go to date function at the end of it some callback function must execute therefore, for example name called cleanBars function will be triggered then old bars will be deleted in chart.

Screenshot 2024-02-20 at 14 04 47