General questions

Have a question about the market data available in our widgets? Your question is probably answered on the Data questions page. If you are looking for a list of supported languages, check the Languages page.


Why is embed code not working?

Potentially, the problem can arise from trying to insert the raw code dynamically, thus forcing the browser to block the embedded script execution. This may happen when injection via innerHTML occurs, for instance. Trying to dynamically inject the code with the means of certain libraries (e.g. jQuery) may also disrupt the proper initialization of the widget. If you are embedding the code on a site driven by 3rd party infrastructure, make sure to follow their instructions or ask the developer of the platform for help.

Why does my widget appear collapsed?

If your widget is not displayed at the expected size, check the following:

  • If the Use container size setting is enabled, ensure to specify the height of the container element in your HTML/CSS.
  • If Use container size is disabled, ensure that you have provided both width and height in the widget's properties.
  • Ensure there are no CSS rules that could override the size of your widget or its container.

Refer to How to set widget size for more information.

I'd like to remove/change TradingView attribution (text and link under the widget).

There are several options, contact us using this form.

I’d like to remove/change the TradingView branding (logo, name) from the widget, or add my own.

There are several options, contact us using this form.

I’d like to change some colors or font size.

All available widget settings are presented in the point-and-click constructor. If what you want to change is not there, contact us using this form.

The widget is not adapting to different screen sizes. What should I do?

Use the Use container size setting. When Use container size is on, the widget uses 100% of available width and/or height of the enclosing element. It’s very important to set a specific height of parent element for the widget to work properly. Refer to How to set widget size for more information.

What’s the difference between Adaptive and Regular settings?

  • Applicable to: Legacy Ticker, Legacy Ticker Tape, Legacy Top Stories, Fundamental Data
  • When the widget is set to Adaptive mode, it automatically changes between Regular and Compact modes based on available container width.

    When a user clicks a symbol in the widget, I’d like to open my own site’s chart page instead of TradingView.

    Use the field called full-size chart URL. Paste the link to your chart pages in that field and it will redirect there instead of TradingView.
    Good use case - place widget on your homepage and have users click through to your individual chart pages. Example - https://yoursite.com/?tvwidgetsymbol={symbolname}. Or use {tvexchange}:{tvsymbol} templates instead to do a link like - https://yoursite.com/{tvexchange}:{tvsymbol}.

    The description says that I can display up to 15 symbols using the Ticker Widget. Why do I see only 5?

  • Applicable to: Legacy Ticker
  • The Ticker widget uses the Use container size parameter by default. This means that it accepts the width of the parent element. Our demo page is wide enough to show only 5 symbols. You should make the parent element wider to see all the symbols.

    How do I add/remove percentage change value (%) in the widget?

  • Applicable to: Legacy Mini Chart
  • Please decrease the width of the widget to remove percentage change value (%). Conversely, increase the width to add it

    Why does the web component version of some widgets load an iframe?

  • Applicable to: Advanced Real-Time Chart, Screener, Heatmap, Economic Calendar
  • The Advanced Real-Time Chart, Screener, Heatmap and Economic Calendar web components embed TradingView’s hosted widget. They keep their own data connection, and only the documented style tokens change their look.

    I'd like to add a custom pine script to the widget.

  • Applicable to: Advanced Real-Time Chart
  • It is not possible to add pine scripts to widgets at this time. You can publish an idea with your script and embed it.

    I'd like to add a strategy to the widget.

  • Applicable to: Advanced Real-Time Chart
  • It is not possible to add strategies to widgets at this time. You can publish an idea with your strategy and embed it.

    How do I use widgets on WordPress websites?

    To embed a widget into a WordPress website, you should insert the widget's code into the Custom HTML block.

    Widgets may not work on some websites hosted on WordPress.com due to limitations on adding the code. The limitations depend on your WordPress plan, therefore, you can either upgrade the plan or host your website on a third-party server.

    Can I use widgets in newsletters?

    Unfortunately, widgets will not be able to display in newsletters. This is because widgets require JavaScript to function, and most email clients do not support JavaScript for security reasons.

    Do TradingView widgets set cookies?

    Widgets do not set any cookies. However, TradingView tracks the following data for correct work of the widget:

    • URL of the page embedding the widget
    • Widget type
    • Displayed symbol
    • IP address
    Besides that TradingView does not track any user information.

    The IP address is required to connect to the TradingView server to get data and resources. This IP is not stored with any identifiable data and is only retained short-term for basic protection against DDOS attacks on the servers.

    How do I get more help?

    Contact us using this form.