tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.32k stars 744 forks source link

TradingViewChart implementation #369

Open tuhin-subhra-hazra opened 6 months ago

tuhin-subhra-hazra commented 6 months ago

Advance Tradingview showing 27th dec on "periodParams.form" date, when i click date range 5 days in 5min interval. but today in 28 dec , Form date should be 21 dec because 23, 24, 25 dec is holidays . so how to implement that holidays will not count.

npt05 commented 5 months ago

You can try session_holidays https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#session_holidays

exp: const symbolInfo = { ticker: symbolItem.full_name, name: symbolItem.symbol, description: symbolItem.description, type: symbolItem.type, session: '24x7', timezone: 'Etc/UTC', exchange: symbolItem.exchange, minmov: 1, pricescale: 100, has_intraday: false, visible_plots_set: 'ohlc', has_weekly_and_monthly: false, supported_resolutions: configurationData.supported_resolutions, volume_precision: 2, session_holidays: "20181105,20181107,20181112", data_status: 'streaming', };