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

Issue with seconds and milliseconds resolutions #71

Open webInfrastructure opened 1 year ago

webInfrastructure commented 1 year ago

I have a problem with resolutions . Firstly, The chart doesn't show seconds resolutions, but I've already added seconds in supported_resolutions Secondly, I need to use : 0,5S, 0.25S resolutions, Unfortunately, I could not find any information about values less then 1 second .

I use widget.

my configurationData: const configurationData = { supported_resolutions: [ '3S', '5S', '10S', '15S', '30S', '1', '3', '5', '15', '30', '1h', '2h', '3h', '4h', '8h', '1D', '1W', '2W', '1M', ], exchanges: [ { value: 'BINANCE', name: 'BINANCE', desc: 'BINANCE', }, ], symbols_types: [ { name: 'crypto', value: 'crypto', }, // ... ], }

and my symbolInfo: 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, minmove2: 0, has_seconds: true, has_intraday: true, has_no_volume: false, has_empty_bars: true, has_weekly_and_monthly: true, supported_resolutions: configurationData.supported_resolutions, volume_precision: 3, data_status: 'streaming', options: symbolItem.options, pair_id: symbolItem.pair_id, }

Can you help me with my issues? thank you!

tarikhagustia commented 1 year ago

hi, i have same issue. can you set resolutions in 1 minutes? cause i can't

webInfrastructure commented 1 year ago

@tarikhagustia Yes, 1 minute and other (bigger then 1M) work well. Do you use widget or chart ?

SlicedSilver commented 1 year ago

To enable second resolutions you need to enable the seconds_resolution featureset (it is disabled by default). https://github.com/tradingview/charting_library/wiki/Featuresets#important-features

Additionally, ensure that your SymbolInfo has the correct values for:

For sub second resolutions you will probably also be interested in:

Additionally, I would advise posting questions like this on the charting_library repo instead.

tarikhagustia commented 1 year ago

thank you, solved!

Thatisgreat commented 11 months ago

Hello, how did you solve this problem? @tarikhagustia

Thatisgreat commented 11 months ago

To enable second resolutions you need to enable the seconds_resolution featureset (it is disabled by default). https://github.com/tradingview/charting_library/wiki/Featuresets#important-features

Additionally, ensure that your SymbolInfo has the correct values for:

For sub second resolutions you will probably also be interested in:

Additionally, I would advise posting questions like this on the charting_library repo instead.

Hello, i have the same problem, and these links is 404.

Thatisgreat commented 11 months ago
image

This is my demo code, and the seconds_multipliers field is not effect.

SlicedSilver commented 11 months ago

these links is 404.

You need to sign up here. https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/?feature=technical-analysis-charts