The current TradingView widget loaded very slowly in the website. Except that it has a lot of unnecessary functions for users, which I need to remove from the widget.
How can I remove this tools from tradingview widget? The code is below:
new TradingView.widget({
symbol: 'Bitfinex:ETHUSD',
interval: '5',
theme: 'Dark',
style: '1',
container_id: "tv_chart_container",
library_path: "/charting_library/",
locale: lang,
width: '100%',
height: '618px',
hide_top_toolbar: false,
left_toolbar: true,
hide_side_toolbar: false,
allow_symbol_change: false,
hideideas: false,
debug: false,
chartsStorageUrl: 'https://saveload.tradingview.com',
chartsStorageApiVersion: '1.1',
clientId: 'tradingview.com',
userId: 'public_user_id',
disabled_features: [
'use_localstorage_for_settings',
],
preset: 'mobile',
'studies': [
'Volume@tv-basicstudies'
]
})
enabled_features: [
"hide_left_toolbar_by_default"
]
As per the TradingView docs, you need to provide this value to the widgetOptions:
disabled_features: ['left_toolbar'],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With