April 19, 2022

TradingView self-hosted libraries version 21

Well, hello there, TradingView community,

We’re always happy to share news about new and improved business products for you folks — after all, everything we create for our platform can also be utilized for your own projects. 

Not familiar with what we have on offer? Click here to have a browse of our libraries.

But getting back to the point: today we’re delighted to release Version 21 of the self-hosted libraries, Technical Analysis Charts and the Charting & Trading Platform.

Let’s quickly dive in here and cover an overview of the major updates:

  1. Regression Trend is now available in the library
  2. New drawing tool: Fixed Range Volume Profile
  3. Additional smoothing lines added for RSI, SMA, EMA and other indicators
  4. Documentation updates
  5. API for news for the Charting & Trading Platform 
  6. Ability to specify multipliers for requesting resolutions
  1. Regression Trend is now available in the library (#613).

So, here it is — the feature we have been asking for quite a long time, please welcome Regression Trend

It was first available only on the TradingView platform. However, now you can also use this feature in your library implementation.

Regression trends can be used similarly to parallel channels. The main difference is that there are upper and lower bands, which specify a user-defined number of standard deviations from the baseline. This is a great tool for determining when prices are unusually far from the norm.

  1. New drawing tool: Fixed Range Volume Profile (#5885

Another feature we’ve been asked to support is adding a Fixed Range Volume Profile drawing tool, similar to what already exists on the main platform. 

This feature helps you specify the part of the candle to show the volume profile. It’s already available and you can check it out in our demo

  1. Additional smoothing lines added for RSI, SMA, EMA and other indicators (#6033)

Many folks have requested to add a Study on Study option to the library. However, after internal research, it turned out that what people wanted from this was mostly to add smoothing indicators. So we decided to add the following lines: SMA, EMA and WMA to the RSI, SMA, EMA, On Balance Volume and CCI indicators. Enjoy!

  1. Documentation updates

We’re constantly updating the GitHub documentation on the library to make the integration process easier and faster. Here are the latest additions:

  • Drawings-Overrides
  • Overrides, Symbology (for resolution multipliers)
  • Breaking-Changes better reflect changes and what’s available with examples
  1. API for news for the Charting & Trading Platform 

The new version includes an API that allows you to customize how news is downloaded, updated, and displayed in the widget bar. From now on, you can set your own news retrieval function. Both the symbol and callback will be passed to the function. Get more info here.

To make the process even easier for you we created News API examples

  1. Ability to specify multipliers for requesting resolutions

Before this change, if the resolution was set to, for example, 5 days, the data feed would request data based on a 1D resolution, hence 5 separate requests. Whereas, now – if supported by the server – you can specify a daily multiplier of 5 to directly ask for data with one request. The same applies for weeks and months. For more info, click here

All of the above is just a summary of the most significant updates of the new library version. For a complete list of bug fixes and other added features, please see the Version 21 overview on GitHub. (Make sure you have access to the documentation, if not, please follow the instructions to get the library here). 

As always, we thank you for your support and help in making TradingView the best product on the financial web. We’ll appreciate it if you fill out a 5-min questionnaire to help us understand your needs and issues better.

We look forward to hearing from you! Happy trading. 

Team TradingView

Look first / Then leap

Launch Chart