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

TradingViewChart implementation #369

Open
tuhin-subhra-hazra opened this issue Dec 28, 2023 · 1 comment
Open

TradingViewChart implementation #369

tuhin-subhra-hazra opened this issue Dec 28, 2023 · 1 comment

Comments

@tuhin-subhra-hazra
Copy link

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
Copy link

npt05 commented Jan 26, 2024

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',
};

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