Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove particular tools in TradingView widget JS?

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'
    ]
})

enter image description here


2 Answers

enabled_features: [
    "hide_left_toolbar_by_default"
]
like image 157
Munny Kumar Avatar answered Oct 14 '25 18:10

Munny Kumar


As per the TradingView docs, you need to provide this value to the widgetOptions:

disabled_features: ['left_toolbar'],
like image 44
Prince Avatar answered Oct 14 '25 17:10

Prince



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!