# Release notes

:::tip

You can check the library version by executing `TradingView.version()` in a browser console.

:::

## Version 33.0.0

*Date: Tue Oct 13 2026*

Welcome to **Version 33.0.0**.
This major release adds Session Volume Profile as a chart type and an indicator, lets custom indicators sit under the price action the way the built-in Volume does, and ships a datafeed skill your coding assistant can load.
Three breaking changes need your attention: shortcuts, custom fields on trading entities, and grid line visibility.

[**Read a detailed walkthrough of the v33.0.0 release**](https://charting-library-docs.xstaging.tv/blog/version-3300)

### Breaking Changes \
- **Removed support for string key names in shortcuts.** String key names in [shortcut](https://charting-library-docs.xstaging.tv/latest/configuration/Shortcuts.md#manage-shortcuts) definitions, deprecated in version 30, have been removed. Passing a printable character to `onShortcut`, such as `'ctrl+shift+/'` or `['ctrl', 'shift', '/']`, now throws an error. Use numeric key codes instead, for example `['ctrl', 'shift', 191]`. Modifier keys (`ctrl`, `shift`, `alt`, and `meta`/`cmd`/`command`) are still accepted as strings.
- **Replaced the `paneProperties.gridLinesMode` override with visibility flags.** Set [`paneProperties.vertGridProperties.visible`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartPropertiesOverrides#panepropertiesvertgridpropertiesvisible) and [`paneProperties.horzGridProperties.visible`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartPropertiesOverrides#panepropertieshorzgridpropertiesvisible) instead; both default to `true`, and saved layouts are migrated to them. Grid lines are also dotted and less transparent by default, including on existing layouts. Set `style` and `color` on the same properties to keep the previous look.

#### Trading Platform only \
- **Replaced the `CustomFields` interface with `WithExtraData`.** [`PlacedOrder`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.PlacedOrder), [`Position`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Position), [`IndividualPosition`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IndividualPosition), and [`Execution`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Execution) no longer accept your own properties next to the library's own. Move them into the `extra` object that `WithExtraData` adds to each type, and repoint every read of them through `extra`. In an Account Manager column, `dataFields` now needs the path to a custom field: `['extra', 'balance']` instead of `'balance'`. Refer to [Value formatters](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager/value-formatters.md#formatter-and-datafields-dependency) for more information.

### New Features \
- **Added the `volume_profile` Widget Constructor property.** [`volume_profile.max_total_rows`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#volume_profile) limits the total number of histogram rows that a volume profile indicator keeps across all profiles it has drawn. It applies to *Volume Profile Visible Range*, *Volume Profile Fixed Range*, and *Session Volume Profile*. Additionally, `volume_profile.history_sessions` sets the initial history depth of *Session Volume Profile*, which is available in Trading Platform. Refer to [Session Volume Profile](https://charting-library-docs.xstaging.tv/latest/trading_terminal/session-volume-profile.md) for more information.
- **Added the `scalesProperties.axisHoverHighlightColor` chart override.** This [override](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartPropertiesOverrides#scalespropertiesaxishoverhighlightcolor) sets the color used to highlight a price scale when hovering over its label. Hex, `rgb()`, `rgba()`, and named colors are supported. Set the property to an empty string `''` to keep the default theme-based highlight.
- **Added the `overlayScaleMargins` property to the custom indicator metainfo.** Custom indicators can now reproduce the placement of the built-in Volume indicator. Previously, an indicator displayed on the pane of the main series was scaled to the whole pane height and there was no way to shrink it. Specify [`overlayScaleMargins`](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo.md#overlayscalemargins) in the metainfo, for example `{ top: 0.75, bottom: 0 }`, to place the indicator on the series pane without a visible price scale and to limit it to the bottom quarter of the pane. The margins are expressed as a fraction of the pane height and are ignored when the indicator is displayed in its own pane.
- **Added the ability to disable and enable all shortcuts at once.** You can now turn all keyboard shortcuts off and on again at runtime using the new [`setShortcutsEnabled`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#setshortcutsenabled) widget method. It disables the built-in shortcuts, the shortcuts added via `onShortcut`, and typing to change a symbol or an interval. Previously, the only way was to override every shortcut manually. To disable only the built-in shortcuts and keep your own, pass `{ keepCustom: true }` as the second argument. Use [`areShortcutsEnabled`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#areshortcutsenabled) to check whether the built-in shortcuts are enabled. To disable typing to change a symbol or an interval from the start, use the [`symbol_search_hot_key`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#symbol_search_hot_key) and [`show_interval_dialog_on_key_press`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#show_interval_dialog_on_key_press) featuresets.
- **Added an agent skill for datafeed integration.** The library repository now includes the `charting-library-datafeed` skill for AI coding assistants. It comes with a script that checks a datafeed or a UDF server the way the library calls it. For more information, see [Agent skills](https://charting-library-docs.xstaging.tv/latest/ai/agent-skills.md).

#### Trading Platform only \
- **Added the Session Volume Profile chart type and indicator.** Session Volume Profile shows how traded volume was distributed across price levels within each trading session, as a horizontal histogram per session with its Point of Control and Value Area. It is available both as a chart type ([`SeriesType.SVP`](https://charting-library-docs.xstaging.tv/latest/api/enums/Charting_Library.SeriesType), numeric value `20`) and as a standalone indicator named Session Volume Profile.
  - The chart type can be preset through the [`mainSeriesProperties.svpStyle`](https://charting-library-docs.xstaging.tv/latest/customization/overrides/chart-overrides.md#chart-styles) overrides.
  - The indicator requires volume data, supports intraday resolutions and `1D`, and may request an additional series at a finer resolution through [`getBars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getbars). Refer to [Session Volume Profile](https://charting-library-docs.xstaging.tv/latest/trading_terminal/session-volume-profile.md) for the datafeed requirements and the history settings.
- **Added the `dom_raw_volume_values` featureset for unabbreviated volumes in the DOM.** Bid, ask, and total volumes in the [DOM](https://charting-library-docs.xstaging.tv/latest/trading_terminal/depth-of-market.md) are shortened with `K`, `M`, `B`, and `T` suffixes, which hides the exact size of a level. Enable this [featureset](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md) to display every value in full instead.
  - Disabled by default, so existing integrations are unaffected.
  - Locale grouping and the quantity precision derived from the symbol's quantity step still apply — only the suffix is dropped.
- **Added the `always_require_order_confirmation` featureset.** Enable this featureset to turn off instant (one-click) order placement. The *One-click trading* setting is hidden and cannot be turned on, including through saved settings or [`silentOrdersPlacement`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#silentordersplacement).

### Improvements \
- **Reduced the number of network requests the chart makes on load.** Related lazy chunks now ship packaged into delivery groups that follow how they load, so the default chart fetches about 40 fewer files at startup and a bare chart (all toolbars disabled) about 25 fewer, with the biggest gains on HTTP/1 connections where request concurrency is limited. No integration changes are required.
- **Extended the symbol display mode to overlay and compare legends.** Enable the [`study_overlay_compare_legend_option`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#study_overlay_compare_legend_option) featureset to make the legend of an overlay or compare symbol follow the chart's symbol display mode — ticker, description, or both — as the main symbol's legend does. Disabled by default.
- **Unified the symbol hit area in the legend for overlay and compare symbols.** Hovering the legend of an overlay or compare symbol now highlights only the symbol name, without the exchange, as it does for the main symbol. Clicking the name still opens Symbol Search.

### Bug Fixes \
- **Fixed `changeTheme` discarding chart property overrides.** [`changeTheme`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#changetheme) no longer resets chart properties set through the [`overrides`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#overrides) widget option or [`applyOverrides`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#applyoverrides). The selected theme now supplies the base values and the overrides keep their priority on top of it.
- **Fixed the custom interval dialog not offering seconds or ticks.** The **Type** dropdown in the *Add custom interval* dialog previously omitted second and tick options. Users can now add custom second and tick resolutions directly through the UI. These options appear when [`seconds_resolution`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#seconds_resolution) or [`tick_resolution`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#tick_resolution) are enabled alongside [`custom_resolutions`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#custom_resolutions). Refer to [Resolution](https://charting-library-docs.xstaging.tv/latest/ui_elements/Resolution.md#enable-custom-resolutions) for more information.
- **Removed the exchange name from the overnight market status.** The market status shown for an overnight session no longer names a specific exchange. The status label reads *Overnight* and its description no longer refers to the BOATS exchange, which only applies to data on tradingview.com.
- **Fixed the datafeed's `supported_resolutions` being ignored in worker mode.** With [`workers`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#workers) enabled, the _Resolution_ drop-down listed the library's built-in resolutions when the symbol declared none of its own. It now lists the ones returned from `onReady` in [`supported_resolutions`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.DatafeedConfiguration#supported_resolutions).
- **Fixed a crash when converting times while the time scale had no bars.** It happened when a range-anchored indicator recalculated on a switch to a longer resolution, before any bars had loaded.
- **Fixed `nextTime` in milliseconds being ignored.** Previously, a value in milliseconds was ignored and the chart kept requesting empty time ranges. The library now reads [`nextTime`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.HistoryMetadata#nexttime) in milliseconds, the same unit as [`Bar.time`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Bar#time). A value in seconds still works and logs a console warning. The UDF adapter converts the protocol's seconds, so UDF integrations need no change. Refer to [Time units](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api.md#time-units).
- **Fixed the drawing order after cloning a drawing inside a group.** Previously, the group moved above every other group and drawing in the *Object Tree*. The group now keeps its position, and the clone is added at the top of its own group.
- **Removed the non-functional "Add symbol to watchlist" item from Advanced Charts.** Previously, enabling the [`add_to_watchlist`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#add_to_watchlist) featureset in Advanced Charts still added a non-functional item to the chart menu. It is no longer created there. Trading Platform behavior is unchanged: the item follows the featureset as before.

#### Trading Platform only \
- **Fixed the order ticket not opening when a risk-based quantity unit was saved.** Previously, if the last used quantity unit was risk in currency or risk in percent, the order ticket for a new order stayed on its loading indicator. The ticket now opens with the saved unit applied.
- **Fixed the order ticket saving broker settings on every price update.** Previously, an open order ticket with a Take Profit or Stop Loss at an absolute price wrote the broker trading settings through [`settings_adapter`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ISettingsAdapter) on every quote. The settings are now saved only when the bracket itself changes.

---

## Version 32.2.0

*Date: Fri Sep 11 2026*

Welcome to **Version 32.2.0**.
This release adds a way to read series and indicator values at any time, without waiting for the crosshair to move, brings the session highlight properties into the overrides types, and lets you hide and show trading primitives instead of removing them.

[**Read a detailed walkthrough of the v32.2.0 release**](https://charting-library-docs.xstaging.tv/blog/version-3220)

### New Features \
- **Added the `getEntityValues` method and value colors to the crosshair data.** Series and indicator values can now be read at any time, without waiting for the crosshair to move. It's useful when the crosshair stays over the last bar, and that bar receives real-time updates. [`getEntityValues`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#getentityvalues) returns the same data as the [`entityValues`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.CrossHairMovedEventParams#entityvalues) property of the [`crossHairMoved`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#crosshairmoved) event, along with the position the values were read at. When the crosshair is away from the chart, the values fall back to the latest bar of every source, as the data window does, and [`atCrosshairPosition`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.EntityValuesResult#atcrosshairposition) is `false`. Each value now also carries the [`color`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.CrossHairMovedEventSourceValue#color) shown for it in the data window.

#### Trading Platform only \
- **Added `setVisible` and `getVisible` to the order, position, and execution adapters.** Trading primitives created with
[`createOrderLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline),
[`createPositionLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline),
and [`createExecutionShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createexecutionshape)
can now be hidden and shown without being removed. Previously, the only way to take one off the chart was to remove it.
Refer to [Trading primitives](https://charting-library-docs.xstaging.tv/latest/trading_terminal/Trading-Primitives.md#show-and-hide-a-primitive) for how this interacts with the `tradingProperties` chart properties.

### Improvements \
- **Extended the overrides types with session highlight properties.** The session highlight properties are now listed in
[`ChartPropertiesOverrides`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartPropertiesOverrides),
so they appear in the API reference and are type-checked: `backgrounds.preMarket`
and `backgrounds.postMarket` (color, transparency, and visibility), and the
`vertlines.sessBreaks` session breaks line properties.
Refer to [Chart overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/chart-overrides.md#session-highlights)
for more information.
  - The [`overrides`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#overrides)
  property of the Widget Constructor now references chart property names via
  `ChartPropertiesOverrides` in addition to drawing overrides.

#### Trading Platform only \
- **Improved the error reported when a broker integration supplies a non-string `id` value.** Order, position, individual position, and execution `id` values must be strings, as declared on
[`PlacedOrder`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.PlacedOrder#id),
[`Position`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.Position#id),
[`IndividualPosition`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.IndividualPosition#id), and
[`Execution`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.Execution#id).
A non-string value is now
reported in an error log that names the entity and the method that supplied it.

### Bug Fixes \
- **Fixed Pivot Points Standard not plotting on intraday resolutions until the chart was scrolled back.** On intraday resolutions, the indicator now plots immediately on the initial data load.
The current period's levels are drawn even when the period starts before the loaded
history and extend to the right of the last bar. A period partially covered by
the loaded data also shows its visible part instead of being hidden entirely.
Additionally, the indicator requests enough higher-timeframe data to compute its levels regardless of how far back the chart's own history reaches.
- **Fixed the bar countdown ignoring the session close time.** When a bar could not fit in the remaining session — for example a one-hour bar opened at 14:00 in a session that closes at 14:30 — the countdown in the price scale kept counting to a full interval instead of to the session close. It now counts to the bar's real close time, derived from the symbol's [`session`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#session), so the label shows when the bar actually closes. Charts whose datafeed reports a bar close time are unaffected, as that value was already used as-is.
- **Fixed a corrupted parallel channel when both of its base points are on the same bar.** Previously, this produced a corrupted state that returned `null` prices from [`getPoints`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ILineDataSourceApi#getpoints) and broke alert creation. The third point now correctly retains its click price.
- **Fixed the custom symbol status not following the symbol on the chart.** A status set through [`symbol`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ICustomSymbolStatusApi#symbol)
now updates when the series symbol changes. Note that a status is keyed by the
resolved symbol id, not the unresolved name passed to the widget.
- **Fixed stored chart colors being replaced by the default theme on start-up.** Previously, a chart created without the [`theme`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#theme) widget option applied the light theme on startup. That overwrote themed colors saved in a [`settings_adapter`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#settings_adapter) or in `localStorage`. The theme is now applied only when the option asks for one.

#### Trading Platform only \
- **Fixed the dragged chart showing a different bar spacing than the other charts when Date Range Sync was enabled.** In a multi-chart layout with Date Range Sync enabled, the synced charts always ended up
slightly zoomed out relative to the chart being dragged. Additionally, scrolling to either end of
the history could leave the other charts with a different bar spacing: near the most recent bar they
gained extra empty space on the right, and at the very beginning of the history they zoomed in on the
first few bars. The synced charts now reproduce the dragged chart's visible range, so all charts
display the same range with the same bar spacing.
- **Fixed the bracket profit and loss setting being shown for brokers without bracket support.** The **Brackets** option under *Profit and loss value* in the chart settings **Trading** tab is now hidden unless the connected broker reports bracket support through one of [`supportOrderBrackets`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportorderbrackets), [`supportPositionBrackets`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportpositionbrackets), [`supportIndividualPositionBrackets`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportindividualpositionbrackets), or [`supportCryptoBrackets`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportcryptobrackets). These flags default to `false`, so integrations that never enabled brackets no longer offer a setting that cannot affect anything. The option's visibility follows the broker connecting and any later [`patchConfig`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#patchconfig) calls.
- **Fixed synced drawings jumping when a point lies in the future.** In a multi-chart layout with drawing synchronization enabled, editing a drawing that extends past the last bar on a different resolution caused its points to jump or shift. Synced drawings now maintain their correct position across all timeframes after an edit.

### Documentation \
- **Added a section on why gaps appear on the chart.** [Gaps appear on the chart](https://charting-library-docs.xstaging.tv/latest/connecting_data/Datafeed-Issues.md#gaps-appear-on-the-chart) covers the two causes and what to set for each: [`has_empty_bars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_empty_bars) for a period without trades inside a session, and [`session_holidays`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#session_holidays) for a day the market was closed.
- **Added a Bar alignment section for multi-period resolutions.** [Bar alignment](https://charting-library-docs.xstaging.tv/latest/ui_elements/Resolution.md#bar-alignment) explains why resolutions such as `3D`, `2W`, and `3M` count periods from the start of the year. The anchor cannot be configured; enable [`disable_resolution_rebuild`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#disable_resolution_rebuild) to display bar times exactly as the datafeed provides them.
- **Added a Build with AI documentation section.** [Build with AI](https://charting-library-docs.xstaging.tv/latest/ai.md) explains how to point AI tools at the documentation, covering `llms.txt`, the docs map, per-page Markdown, and the type definition files. [Create AI library assistant](https://charting-library-docs.xstaging.tv/latest/ai/build-ai-assistant.md) covers turning a general-purpose assistant into a library expert with a single downloadable file.

#### Trading Platform only \
- **Added a guide to multiple-chart layouts.** [Multiple-chart layout](https://charting-library-docs.xstaging.tv/latest/trading_terminal/multiple-chart-layout.md) shows a diagram for every
[`MultipleChartsLayoutType`](https://charting-library-docs.xstaging.tv/latest/api/modules/Charting_Library#multiplechartslayouttype) value,
including the index that each chart position corresponds to.
The article also explains how to switch, resize, and read the current layout through the API.

---

## Version 32.1.0

*Date: Mon Aug 17 2026*

Welcome to **Version 32.1.0**.
This release lets you render fully custom mark tooltips with your own web components, adds collapsible Watchlist sections, and allows keeping the Buy/Sell buttons visible on resolutions a symbol does not support.
On the documentation side, every page is now available as Markdown for AI assistants, and the API Reference got a readability overhaul.

[**Read a detailed walkthrough of the v32.1.0 release**](https://charting-library-docs.xstaging.tv/blog/version-3210)

### New Features \
- **Added featureset that lets users pin a tooltip open by clicking the mark.** Enable the [`pin_bar_mark_tooltips_on_click`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#pin_bar_mark_tooltips_on_click) featureset to let users pin any bar mark tooltip — plain text or custom — by clicking the mark.

#### Trading Platform only \
- **Added support for custom timescale mark tooltips.** Timescale marks can now display fully custom tooltip content rendered by your own web component.
Provide the new [`customTooltip`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TimescaleMark#customtooltip) property on a mark and register the `tv-custom-timescale-mark` element via [`custom_js_urls`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#custom_js_urls) widget option.
Refer to the [Customize mark tooltips](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/customize-mark-tooltips.md) guide for details and a complete example.
- **Added support for custom bar mark tooltips and click-to-pin.** Bar marks now support the same web-component tooltips as timescale marks.
Provide the new [`customTooltip`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Mark#customtooltip) property on a mark and register a `tv-custom-bar-mark` element via [`custom_js_urls`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#custom_js_urls).
Refer to the [Customize mark tooltips](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/customize-mark-tooltips.md) guide for details.
- **Added the `show_buy_sell_buttons_on_unsupported_resolution` featureset.** When the [`show_buy_sell_buttons_on_unsupported_resolution`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#show_buy_sell_buttons_on_unsupported_resolution)
featureset is enabled, switching to a resolution that the current symbol does
not support no longer marks the instrument as non-tradable, so the Buy/Sell
buttons remain visible. The symbol itself is still resolved and tradable in
this case; only the requested interval is unavailable. The featureset is
disabled by default, and the buttons are hidden when the chart cannot display
data.
- **Added the ability to collapse and expand Watchlist sections.** Clicking a section header now hides or shows the symbols grouped under it, and the collapsed state is preserved across page reloads.
Creating and collapsing sections are both controlled by the `watchlist_sections` featureset, which is enabled by default.
- **Added the `tradedSourcesVisibility` method to the Trading Host.** The [`tradedSourcesVisibility`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.IBrokerConnectionAdapterHost#tradedsourcesvisibility)
method returns a watched value that shows or hides all trading sources on the chart — order and
position lines and execution marks. Setting the value to `false` temporarily hides them on all
charts without affecting the persisted chart settings. It is the same value that is toggled by
the *Hide positions and orders* option in the right toolbar.

### Bug Fixes \
- **Fixed incorrect market status when the user's machine clock is misconfigured.** The automatically-calculated market status now uses the synced server time
instead of the browser's local clock. Previously, if the user's machine clock
was wrong, the market status (for example, the `current_session` value exposed
through `marketStatus()`) could show the market as closed while it was open, or
vice versa. When the datafeed implements
[`getServerTime`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getservertime),
the status is now computed from that synced time; otherwise behavior is
unchanged.
- **Fixed an issue where a `time_frames` entry with a tick or seconds resolution and no `description` broke the date range toolbar.** A [`time_frames`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#time_frames) item that used a tick (for example, `"1T"`) or seconds (for example, `"1S"`) resolution without a [`description`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TimeFrameItem#description) crashed the date range toolbar. The generated label now supports tick and seconds resolutions, so `description` remains optional for all resolution types.
- **Fixed the Heikin-Ashi price line disappearing when real prices are shown on the price scale.** On a Heikin-Ashi chart with `mainSeriesProperties.haStyle.showRealLastPrice` enabled, the horizontal last-price line and its price-scale label now render at the real last price. Previously, with datafeeds that serve plain OHLCV bars (the typical case), the line silently failed to draw and the label was hidden.
- **Fixed a broken series after calling `load` with an undefined state.** Previously, calling [`load`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#load) with an `undefined` or invalid state used to disconnect the chart data sessions without restoring them. This left the series permanently blank even though the datafeed kept providing data. The method now ignores such calls before any teardown happens: a descriptive error is logged and the current chart state is left untouched.
- **Fixed a crash when switching chart types with a Volume Profile indicator on the chart.** Rapidly switching between chart types (for example, starting from Renko) while a
Volume Profile indicator was on the chart could throw a `TypeError` and leave the
chart unresponsive. Indicators that depend on the visible range stop themselves as
soon as their inputs become invalid, and doing so while the chart data was being
recalculated left the recalculation half-applied. Such indicators are now skipped
correctly, and the chart finishes updating as expected.
- **Fixed the `emoji` option being ignored when creating emoji drawings.** The option passed to [`createMultipointShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createmultipointshape) and [`createShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createshape) is now correctly applied.
  - Use the emoji character directly (e.g., `'😂'`). For more information, see [Drawing overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/Drawings-Overrides.md#emojis).
  - Invalid emoji values now log a warning instead of silently falling back to the default emoji.
- **Fixed the Moving Average Adaptive indicator producing extreme values on Renko charts.** On chart types whose prices snap to a fixed grid — such as Renko or Point & Figure — the
indicator could diverge to values many orders of magnitude away from the price. Its
smoothing factor is now bounded, so the plot stays within the price range on these chart
types as well as on symbols with very low volatility.
- **Fixed frozen countdown to bar close and clock.** Previously, time-based UI elements froze after initial load: the bottom toolbar clock stopped advancing, and the countdown to bar close only updated on price ticks. Real-time updates are now restored across all affected features, including the timezone clock, bar close countdown, market status, futures contract expiration countdown, and order timestamps.
- **Fixed the VWAP indicator anchor periods for symbols whose trading day starts on the previous calendar day.** On an intraday resolution, the `Week`, `Month`, `Quarter`, `Year`, `Decade`, and `Century` anchor periods used calendar dates instead of trading days. This placed overnight bars into the wrong period and reset VWAP at midnight instead of session start. The anchor period now uses the bar's trading day. It also requests all necessary data from the start of the session.
- **Fixed the Anchored VWAP drawing starting from the bar next to the selected one.** The Anchored VWAP drawing now starts on the bar it is anchored to. Previously, the anchor bar produced no value, so the line visually began one bar later and the bar was also excluded from the volume-weighted accumulation, which made all the following values slightly inaccurate.
- **Saving a chart layout while a drawing is still being created no longer breaks that layout.** Previously, calling [`save`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#save) during drawing creation stored it without points. Restoring such a layout created invisible drawings that couldn't be removed, and for `parallel_channel`, threw an error that lost all subsequent drawings and indicators. Unfinished drawings are now excluded from saved layouts, drawings without points are skipped on restore, and `parallel_channel` no longer throws an error during creation.
- **The "Make copy of chart layout" dialog is no longer pre-filled with the literal text "\{title} copy" for unsaved layouts.** The dialog opened by [`showSaveAsChartDialog`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#showsaveaschartdialog) now has an empty name input when the current chart layout has never been saved. Previously, the input was pre-filled with the literal placeholder text "\{title} copy" because there was no layout name to substitute. Saved layouts still get the "&lt;layout name&gt; copy" suggestion.

#### Trading Platform only \
- **Fixed console errors and chart blinking when Date Range Sync was used in a multi-chart layout with different resolutions.** The sync engine now correctly handles charts with no data or limited history, preventing redundant data requests and unhandled promise rejections.
- **Fixed order type tabs not being shown when modifying an order.** The Market, Limit, and Stop tabs in the Order Ticket are shown again when an existing order is opened for modification and the broker enables [`supportModifyOrderType`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportmodifyordertype). Previously the tabs were always hidden in this case, so the order type could not be changed.
- **Fixed missing bracket properties in the custom `showPositionDialog` handler.** The [`brackets`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.Brackets) argument passed to
[`showPositionDialog`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.BrokerCustomUI#showpositiondialog)
now also contains `guaranteedStop` and `trailingStopPips`, so a custom order
ticket can read the new value when the user drags a trailing-stop or
guaranteed-stop order on the chart.
- **Fixed the order quantity on the chart not being clickable.** Hovering over the quantity of a working order on the chart shows the _Modify_ button again, so the order can be edited without using the right-click menu or the Account Manager. The control is displayed when the broker enables [`supportEditAmount`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.BrokerConfigFlags#supporteditamount).

### Documentation \
- **Added Markdown versions of the documentation pages for AI assistants.** Every documentation page is now also published as plain Markdown at its own URL
with an `.md` suffix, so a page can be fed to an AI assistant without scraping
HTML.
  - Each page shows *Copy as Markdown* and *View as Markdown* controls under its
  title.
  - The docs root serves `llms.txt` with the list of all pages and
  `docs_map.md` with a full page map including headings.
  - The TypeScript definition files are hosted next to the docs and always match
  the documented version. Links to them are available on the API Reference
  overview page.
- **Improved readability of the API Reference pages.** Signatures now carry badges that mark deprecated, recommended, optional, and
read-only members, so it is clear at a glance which overload to use and which
interface methods an implementation has to provide. Deprecation notices appear
directly under the affected signature and structural headings are de-emphasized to reduce visual noise.
- **New article.** [Indicator placement](https://charting-library-docs.xstaging.tv/latest/ui_elements/indicators/indicator-placement.md)
explains how the library selects a pane and a price scale for an indicator, documents the
`forceOverlay` parameter and every value of the `priceScale` option, and describes how to move
an indicator to another pane.

---

## Version 32.0.0

*Date: Wed Jul 01 2026*

Welcome to **Version 32.0.0**.
This release introduces worker-based chart processing for improved performance, migrates core widget methods to a Promise-based API, extends countdown support to daily, weekly, and monthly bars, and includes updates to drawing tool names and availability.

[Read a detailed walkthrough of the v32.0.0 release](https://charting-library-docs.xstaging.tv/blog/version-3200)

### Breaking Changes \
- **Changed return values for `dataReady`, `setChartType`, and `saveChartToServer`.** Calling these methods without callbacks now returns a promise instead of the previous fire-and-forget behavior.
  - `widget.activeChart().dataReady()` without arguments now returns `Promise<boolean>` instead of a synchronous boolean. Use `await widget.activeChart().dataReady()` when waiting for data to load, or migrate synchronous readiness checks to an explicit synchronous state check such as `widget.activeChart().getSeries().barsCount() > 0`.
  - `widget.activeChart().setChartType(type)` now returns `Promise<void>` and rejects with an `Error` if the chart type change cannot load data. The deprecated callback overload keeps the previous callback behavior.
  - `widget.saveChartToServer()` called without arguments now returns a `Promise<void>` that rejects with a `SaveChartError` when saving fails. Previously such a call ignored failures, so handle the returned promise to avoid unhandled rejections. Calls that pass `onComplete`/`onFail` callbacks keep the previous behavior.
- **Renamed drawing tool names in `custom_translate_function` and `drawings_access`.** The `originalText` argument passed to [`custom_translate_function`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_translate_function) now reflects the updated tool names (for example, `"trendline"` instead of `"Trend Line"`). The `name` values in the `tools` array of [`drawings_access`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#drawings_access) follow the same new naming (for example, `"Trendline"` instead of `"Trend Line"`).
- **Removed the Anchored Text drawing tool from the left panel.** Use the *Text* tool with the *Anchor* option switched on to get the same results.

### New Features \
- **Added countdown support for DWM resolutions.** The countdown to bar close can now be displayed for daily, weekly, and monthly resolutions.
- **Added the `workers` widget option for worker-based chart calculations and processing.** Use the `workers.enabled` widget constructor option to let the library run chart calculations and processing, including indicator calculations, in a dedicated worker thread. If the worker startup fails, the library automatically falls back to the main-thread implementation.
- **Added Promise-based alternatives for callback widget API methods.** The remaining callback-style methods — `chartReady` (replacing `onChartReady`), `save`, `getSavedCharts`, `saveChartToServer`, `removeChartFromServer`, `showNoticeDialog`, `showConfirmDialog`, `dataReady`, and `setChartType` — can now be called without callbacks and return promises.
  - The callback-based overloads remain available for backward compatibility and emit a one-time deprecation warning per widget/API instance.
  - `widget.setSymbol(symbol, interval, callback)` is deprecated in favour of the existing `widget.activeChart().setSymbol(symbol, options?)` method.
  - The Promise-based `saveChartToServer` rejects with a `SaveChartError` (available as `TradingView.SaveChartError`) — an `Error` subclass that carries the same `SaveChartErrorInfo` object the deprecated `onFail` callback receives, via its `info` property.
  - **Important:** these methods will be removed in a future major release — migrate to the Promise-based API to avoid breakage when that happens.
- **Added the `keep_selected_group_on_tool_creation` featureset.** When enabled, drawings created via [`IChartWidgetApi.createShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createshape) and [`IChartWidgetApi.createMultipointShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createmultipointshape) are automatically placed into the group of the previously selected drawing or group, provided no explicit `zOrder` is passed in the call options. Toolbar-, hotkey-, and paste-driven drawing creation always uses this behavior regardless of the featureset state.

#### Trading Platform only \
- **Added the `supportUnpairedExitLevels` flag to allow single-sided exit levels within brackets.** When [`supportMultipleExitLevels`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportmultipleexitlevels) is enabled, each exit level requires both a take-profit and a stop-loss by default. Now, with [`supportUnpairedExitLevels`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportunpairedexitlevels) set to `true`, an exit level can contain only one side — either a take-profit or a stop-loss. Note that unpaired levels can only be created in the [Order Ticket](https://charting-library-docs.xstaging.tv/latest/trading_terminal/order-ticket.md): chart trading adds paired levels only. See [Multiple exit levels](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/brackets.md#multiple-exit-levels) for details.

### Improvements \
- **Renamed legend display labels on the Status line settings tab.** The following labels in the **Settings → Status line** dialog have been updated:
  - **Symbol** → **Instrument**
  - **Description** → **Name**
  - **Ticker** → **Symbol**
  - **Ticker and description** → **Symbol and name**
  - **Long Description** (requires the [`symbol_info_long_description`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#symbol_info_long_description) featureset) → **Description**

### Bug Fixes \
- **Fixed an issue where timescale marks would not render on slow network connection.** 
- **Fixed realtime DWM bar alignment when `disable_resolution_rebuild` is enabled.** Realtime updates from [`subscribeBars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#subscribebars) for daily, weekly, and monthly resolutions are now aligned to the expected bar slot when [`disable_resolution_rebuild`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#disable_resolution_rebuild) is enabled. This prevents compare or overlay series from updating the previous candle or leaving a gap when the realtime timestamp falls inside the current  DWM (daily, weekly, monthly) period.
- **Fixed header toolbar crash when the `use_symbol_name_for_header_toolbar` featureset was enabled alongside the `saved_data` widget option.** 
- **Fixed Risk/Reward drawings with custom price formatters.** Risk/Reward drawings now use custom `priceFormatterFactory` values in the default formatter path, preventing `NaN` or `Infinity` labels on small-price symbols.
- **Fixed repeated no-data requests on monthly resolutions.** The library now correctly stops requesting older history when a datafeed returns `noData: true` for an empty monthly series.
- **Fixed chart freezing when adding indicators that request daily data, such as Pivot Points Standard.** Session holiday and correction calculations are now cached and use binary
search instead of recomputing on every bar update. Previously, adding an
indicator that requests daily, weekly, or monthly data (for example, Pivot
Points Standard on an intraday chart) on a symbol with many `session_holidays`
or `corrections` entries could saturate the main thread and freeze the chart
on slower machines, especially during realtime updates or when scrolling back
to load more history.
- **Fixed crosshair appearing on mobile after switching timeframes.** 

#### Trading Platform only \
- **Fixed an issue where "Add symbol to watchlist" appeared in the legend menu when the `add_to_watchlist` featureset is disabled.** 
- **Fixed DOM order drag-and-drop sending the wrong price at non-default step sizes.** Dragging an order in the Depth of Market widget now passes the correct price to `modifyOrder` regardless of the selected price-step aggregation. Previously, any step size other than the default scaled the modified price by the step factor.

### Documentation \
- **Updated the Implement Datafeed tutorial to use the Binance REST API.** All code examples now use the Binance REST API instead of CryptoCompare, and the tutorial has been extended with a new [Extend to Trading Platform](https://charting-library-docs.xstaging.tv/latest/tutorials/tutorials/implement_datafeed_tutorial/extend-to-trading-platform.md) section covering real-time quotes, DOM, news, and save/load integration.
- **Added a guide for enabling the margin meter in the Order Ticket.** The new section in the [Order Ticket](https://charting-library-docs.xstaging.tv/latest/trading_terminal/order-ticket.md#enable-margin-meter) article explains what the margin meter displays and provides step-by-step setup instructions covering the [`supportMargin`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportmargin) flag, the [`subscribeMarginAvailable`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#subscribemarginavailable) and [`unsubscribeMarginAvailable`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#unsubscribemarginavailable) broker methods, and the [`marginRate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.InstrumentInfo#marginrate) property.

---

## Version 31.2.0

*Date: Tue May 05 2026*

### New Features \
- **Added the `group` property to custom indicator input metainfo.** This property allows you to organize related [inputs](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo/Custom-Studies-Inputs.md) under a common header. The `group` value is used as the header's display text in the *Settings* dialog.

### Improvements \
#### Trading Platform only \
- **Added optional `listId` parameter to `createList` watchlist API method.** The [`createList`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWatchListApi#createlist) method now accepts an optional `listId` parameter. When provided, if a watchlist with this ID already exists it will be updated instead of creating a duplicate. This allows syncing watchlist IDs with a remote backend to ensure consistency across tabs.
- **Improved account selection behavior in the Account Manager.** The account selection dropdown now automatically closes after an account is selected.
- **Added UI support for multiple exit levels on the chart.** The Take Profit and Stop Loss buttons now reappear on the parent order after the initial brackets are placed. This allows users to add [multiple exit levels](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/brackets.md#multiple-exit-levels) directly from the chart.

### Bug Fixes \
- **Fixed `resetData` breaking timescale display on multichart layout.** 
- **Fixed the factor applied to the True Strength Index indicator.** The indicator now correctly returns values within the -100 to +100 range, instead of the previous -1 to +1 range.

#### Trading Platform only \
- **Fixed cross-tab watchlist pollution when `watchlist_cross_tab_sync` and `use_localstorage_for_settings` are disabled.** Watchlists created in one tab would incorrectly appear in other tabs even when the `watchlist_cross_tab_sync` featureset was disabled. Watchlist creation now skips broadcasting to other tabs when `watchlist_cross_tab_sync` is disabled.
- **Fixed broker custom UI position dialogs receiving incomplete exit level data.** When [`supportMultipleExitLevels`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportmultipleexitlevels) is enabled, [`customUI.showPositionDialog`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerCustomUI#showpositiondialog) now receives `brackets.exitLevels` for position and individual position bracket dialogs.
- **Fixed delayed chart refresh when applying trading property overrides.** The chart now updates immediately when applying overrides to `tradingProperties.showOrders` and `tradingProperties.showPositions`, without requiring user interaction.

### Documentation \
- **New datafeed subscriptions guide.** Added an article detailing [datafeed subscriptions lifecycle](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/datafeed-subscriptions.md).
It explains what the library treats as a unique dataset, how multiple subscriptions work, and why the library unsubscribes from updates with a delay.

---

## Version 31.1.0

*Date: Wed Apr 08 2026*

Welcome to **Version 31.1.0**.
This release introduces **CSP nonce** support for stricter security compliance,
adds **save/load context** to enable globally shared drawings, and brings a new way to **organize custom indicator inputs**.

[**Read a detailed walkthrough of the v31.1.0 release**](https://charting-library-docs.xstaging.tv/blog/version-3110)

### New Features \
- **Added CSP nonce support for widget bootstrap scripts and same-origin iframe loading.** The new [`nonce`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#nonce) widget constructor property applies a Content Security Policy (CSP) nonce to TradingView-owned bootstrap scripts and runtime-created style/script tags inside the library iframe. When `nonce` is omitted, the library attempts to infer the nonce from `window.__tvCspNonce` or a host-page `<script nonce>`. Script nonce propagation is supported. However, strict nonce-based `style-src` CSP is not currently supported, and library styles still require `style-src 'unsafe-inline'`. This property also works with the [`iframe_loading_same_origin`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#iframe_loading_same_origin) featureset. In this case, the `sameorigin.html` response can provide its own nonce by setting `window.__tvCspNonce`, which takes precedence over the parent-side value.
- **Added globally shared mode for drawings.** This feature allows users to synchronize drawings across all layouts for the same symbol.
The update also adds a "New drawings sync globally" button to the [drawing toolbar](https://charting-library-docs.xstaging.tv/latest/ui_elements/drawings.md#drawing-toolbar).

### Improvements \
- **Extended save/load adapter API for separate drawings storage.** The [`saveLineToolsAndGroups`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IExternalSaveLoadAdapter#savelinetoolsandgroups) method now receives an optional `context` argument containing metadata (`sharingMode`, `symbol`, `requestId`). The [`loadLineToolsAndGroups`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IExternalSaveLoadAdapter#loadlinetoolsandgroups) request context is exposed through [`LineToolsAndGroupsLoadRequestContext`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LineToolsAndGroupsLoadRequestContext). For more information, see [Saving drawings separately](https://charting-library-docs.xstaging.tv/latest/saving_loading/saving_drawings_separately.md).

### Bug Fixes \
#### Trading Platform only \
- **Fixed an error in the broker sample implementation when placing a Stop Loss order.** 
- **Fixed an issue where adding orders with exit levels caused a `ReferenceError TradedItemType is not defined`.** 

---

## Version 31.0.0

*Date: Fri Mar 06 2026*

Welcome to **Version 31.0.0**.
This release introduces a new table view for precise data analysis, brings support for multiple exit levels, and includes other improvements and bug fixes.

[**Read a detailed walkthrough of the v31.0.0 release**](https://charting-library-docs.xstaging.tv/blog/version-3100)

### New Features \
- **Added table view for data visualization.** Users can now view chart and indicator data in a table format.
This mode can be opened via the legend's "More" menu or the chart context menu.

#### Trading Platform only \
- **Added multiple exit levels (brackets) support.** When the [`supportMultipleExitLevels`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportmultipleexitlevels) configuration flag is enabled,
users can protect orders and positions with multiple take-profit and stop-loss levels at different prices and quantities.
This feature introduces the `exitLevels` property to order-related interfaces and the `exitLevelId` property to `BracketOrder` for managing these individual levels.
See [Multiple exit levels](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/brackets.md#multiple-exit-levels) for more information.
- **Added support for the Crypto Exchange Order Ticket for specific symbols.** Use new [`supportCryptoExchange`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SymbolSpecificTradingOptions#supportcryptoexchange) property in [`SymbolSpecificTradingOptions`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SymbolSpecificTradingOptions) to control this behavior.
Note that the crypto-specific ticket is displayed only if the [`supportCryptoExchangeOrderTicket`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportcryptoexchangeorderticket) flag is enabled and the symbol's [type](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.InstrumentInfo#type) is `crypto`.
- **Added symbol logo support in trading dialogs.** Symbol logos can now be displayed in the *Cancel order* and *Close position* dialogs.
To enable them, use the [`show_symbol_logo_in_cancel_order_dialog`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#show_symbol_logo_in_cancel_order_dialog) and [`show_symbol_logo_in_close_position_dialog`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#show_symbol_logo_in_close_position_dialog) featuresets alongside the global [`show_symbol_logos`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#show_symbol_logos) featureset.

### Improvements \
- **Redesigned empty state styling on the main chart.** Updated the icons and text for all empty states (including invalid symbols and no data) to match the latest design.
The empty state container now has a transparent background and full pane coverage.
This provides improved responsive behavior across multi-chart layouts and the Table view.

#### Trading Platform only \
- **Added the `supportAdaptiveLayout` broker configuration flag.** When [`supportAdaptiveLayout`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradedGroupConfig#supportadaptivelayout) is `true` (default), trading buttons (TP/SL, P&L) on position and order lines will hide on smaller screens and appear on larger ones.
When `false`, these buttons will always be visible, regardless of screen width.
- **Improved trading settings logic.** The *Reverse position button* option is now automatically disabled in the *Trading settings* whenever *Positions and orders* is unchecked.
- **Quantity input types no longer reset when editing orders on the chart.** The Order Ticket now keeps your selected quantity input type (USD, % balance, Risk) even when you adjust order prices or quantities directly on the chart.
- **Improved "No overlap" mode behavior.** The "No overlap" mode setting in the context menu is now persistent, meaning the separation of orders and positions remains active until manually toggled off.

### Bug Fixes \
- **Fixed a bug where symbols with no trading sessions for an entire week due to holidays could not request data.** 
- **Fixed the profit and loss calculation for the risk/reward drawing.** The calculation now correctly uses the actual `qty` based on `lotSize` and multiplies by `pointValue`.
Previously, profit and loss was calculated as if `lotSize = 1`, which produced incorrect values when changing lot size.

#### Trading Platform only \
- **Fixed quantity rounding for symbols with integer quantities in the Order Ticket.** The quantity calculator now rounds down to `0` if the specified risk or order value is less than the cost of a single unit.
This ensures that validation fails and prevents users from placing an order for `1` unit when the entered value is insufficient to cover the minimum trade value.
- **Fixed an issue where the bracket cancellation dialog would fail to appear.** Previously, when attempting to cancel a bracket order repeatedly, the confirmation dialog might not show up, which prevented the bracket order from actually being cancelled.

### Documentation \
- **New events and subscriptions guide.** Added an article detailing the library's [event system](https://charting-library-docs.xstaging.tv/latest/configuration/events-and-subscriptions.md).
It explains the distinction between widget, chart, and component events.
- **New trading overrides convention guide.** Added a section explaining the [hierarchical naming pattern](https://charting-library-docs.xstaging.tv/latest/customization/overrides/trading-overrides.md#override-properties) for `BrokerOrderOverrides` and `BrokerPositionOverrides`.
It helps identify the specific properties needed to customize the visual state of trading elements.
- **Reorganized the documentation for faster onboarding.** We have streamlined our documentation structure to help you get up and running more quickly.
The [Introduction](https://charting-library-docs.xstaging.tv/latest/introduction.md) and [Get started](https://charting-library-docs.xstaging.tv/latest/quick-start.md) articles are now more focused, and advanced topics have been moved to dedicated functional categories like *Configuration* and *Reference*.
- **Other updates.** The following enhancements were made:
  - Added instructions for [enabling enhanced screen reader descriptions](https://charting-library-docs.xstaging.tv/latest/configuration/accessibility.md#enhanced-descriptions) using the `aria_crosshair_price_description` and `aria_detailed_chart_descriptions` featuresets. They allow screen readers to announce crosshair prices and provide detailed descriptions when the active chart changes.
  - Clarified descriptions for `supportEditAmount`, `supportModifyBrackets`, and `supportModifyOrderPrice` in the [`BrokerConfigFlags`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags) interface.

---

## Version 30.3.0

*Date: Wed Jan 21 2026*

### New Features \
- **Added the `legend_bar_change_colors_based_on_value` featureset.** When enabled, bar change values in the legend are dynamically colored. For non-OHLC chart types, the color depends on the value (positive, negative, or zero). For OHLC chart types, the library uses the series' own color scheme.
- **Added the `applyOverrides` method to the `IChartWidgetApi` interface.** Unlike [`IChartingLibraryWidget.applyOverrides`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#applyoverrides), which applies overrides to **all charts**, this new method allows applying overrides to **specific chart instances**.
Refer to [Apply overrides](https://charting-library-docs.xstaging.tv/latest/ui_elements/Chart.md#apply-overrides) for usage example.

### Bug Fixes \
#### Trading Platform only \
- **Fixed an issue where orders and positions were no longer displayed after a network reconnection.** 

---

## Version 30.2.0

*Date: Mon Dec 22 2025*

Welcome to **Version 30.2.0**.

This release introduces a more efficient way to **handle extensive symbol lists**, adds **smarter data loading** for the VWAP indicator, restores the **dynamic Depth of Market**, and includes other improvements and bug fixes.

[**Read a detailed walkthrough of the v30.2.0 release**](https://charting-library-docs.xstaging.tv/blog/version-3020)

### New Features \
- **Added support for paginated Symbol Search results.** Added the optional [`searchSymbolsPaginated`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#searchsymbolspaginated) method to the Datafeed API. When implemented, the library uses this method instead of [`searchSymbols`](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/required-methods.md#searchsymbols), loading Symbol Search results in "pages" rather than returning all results at once. For example, the first 50 results can be returned initially, and then more can be loaded on demand as the user scrolls down the list of symbols.
- **Added the `--tv-color-bar-mark-background-color` CSS variable.** This variable allows you to set a custom background color for tooltips shown for [bar marks](https://charting-library-docs.xstaging.tv/latest/ui_elements/Marks.md#marks-on-the-chart).
For more information on adjusting UI elements using CSS variables, see [CSS Color Themes](https://charting-library-docs.xstaging.tv/latest/customization/styles/CSS-Color-Themes.md).
- **Supported updating Overlay indicator bars that have a time value less than the two most recent main series times.** Ensured that real-time bars are plotted when an Overlay is "behind" the main series, specifically when the most recent Overlay bar time is less than `mainSeriesBars[mainSeriesBars.length - 2]`.

#### Trading Platform only \
- **Reenable the Depth of Market (DOM) widget's dynamic mode by default.** The [DOM widget](https://charting-library-docs.xstaging.tv/latest/trading_terminal/depth-of-market.md) was made static starting with version 28. This change has been reversed so that the pre-28 dynamic mode is enabled by default. The static mode added in version 28 is still available by enabling the `static_dom` featureset.

### Improvements \
- **VWAP indicator loads the exact amount of data to reach the target anchor.** Instead of showing an error when there isn’t enough data to calculate the VWAP, the indicator now loads the exact amount of data required to reach the target anchor.
- **Added `isAlwaysShownInLegend` property to input definitions in metainfo.** When set, this property keeps any [indicator inputs](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo/Custom-Studies-Inputs.md) (`StudySymbolInputInfo`) visible in the legend, even when other indicator inputs are hidden. Note that the [`always_show_study_symbol_input_values_in_legend`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#always_show_study_symbol_input_values_in_legend) featureset must be enabled for this property to take effect.

### Bug Fixes \
- **Fixed an issue where the floating toolbar three dots menu would not call the context menu APIs.** 
- **Fixed inaccurate rounding in the Hull indicator calculation.** 
- **Fixed an issue where the `onTick` event would not fire.** 
- **Fixed an issue where custom indicators that return null values were failing to plot.** 
- **Fixed an issue where the `getVisibleBarsRange` method returned the wrong user time.** 
- **Fixed an issue where the Overlay indicator was failing to plot because of duplicate bar times.** 

### Documentation \
- **New drag-to-export guide.** Check out a guide on how to [enable the drag-to-export feature](https://charting-library-docs.xstaging.tv/latest/ui_elements/Chart.md#enable-drag-to-export-feature), including an interactive example.
It explains how users can drag the chart area to export data to external applications, such as pasting JSON into a text editor.
- **New troubleshooting section.** Added a section that explains possible causes and solutions for when [individual positions are not displayed on the chart](https://charting-library-docs.xstaging.tv/latest/trading_terminal/common-issues.md#individual-positions-are-not-displayed-on-the-chart).

---

## Version 30.1.0

*Date: Mon Nov 10 2025*

Welcome to version 30.1.0!
This release brings clear indicator legends, more flexible drag-to-export feature, and various other improvements and bug fixes.

**[Read a detailed walkthrough of the v30.1.0 release](https://charting-library-docs.xstaging.tv/blog/version-3010)**

### New Features \
- **Added the `always_show_study_symbol_input_values_in_legend` featureset.** When enabled, this featureset keeps symbol-type [indicator inputs](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo/Custom-Studies-Inputs.md) (`StudySymbolInputInfo`) visible in the legend, even when other indicator inputs are hidden. This allows users to visually distinguish multiple instances of the same indicator on the chart by their source symbol.

### Improvements \
- **Improved drag-to-export feature.** When the [`chart_drag_export`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#chart_drag_export) featureset is enabled and [`setDragExportEnabled(true)`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#setdragexportenabled) is called, the chart remains responsive to mouse interactions instead of blocking them. The library now emits [`dragstart`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SubscribeEventsMap#dragstart) for all drags. To treat a drag as a drag-drop export, set payload via the parameters of the [`setData`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.DragStartParams#setdata) method. The [event parameters](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.DragStartParams) also include current modifier keys (ctrl/meta/alt/shift), enabling patterns like Cmd+Drag without relying on global key listeners.
- **Added the `getVisibleBarsRange` method.** [`getVisibleBarsRange`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#getvisiblebarsrange) returns the range of bar times currently shown on the chart. The method includes existing bars and visible incomplete bars produced by non-time-based chart styles (for example, Renko). Unlike [`getVisibleRange`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#getvisiblerange), `getVisibleBarsRange` doesn't include future bar times beyond the last visible bar.
- **Added a dropdown to change the type of Moving Average used for calculating Bollinger Bands.** 
- **Support setting `noData` with non-empty bars response.** It is now possible to signal that there is no more data available, while at the same time returning bars via the [`getBars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getbars) callback. Previously, this would cause a `"noData should be set when there is no data in the requested period and earlier only"` warning to be logged to the console, and a second call would be made to [`getBars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getbars).

### Bug Fixes \
- **Fixed an issue where the widget bar would disappear when resizing.** When transitioning to higher dimensions, the widget bar would not necessarily be properly displayed.
- **Fixed VWAP issue.** The VWAP indicator used to break the chart when applied to a Japanese style chart.
- **Fixed an issue where the main series wouldn’t load more data if an indicator error appeared.** 
- **Fixed an issue where the Moving Average Double indicator ignored the `Method` input.** 
- **Fixed an issue where an error could be thrown after a pane is removed.** 
- **Fixed an issue where creating an anchored shape would fail if placed before the first available bar.** 
- **Fixed an issue where the Bollinger Bands indicator could be loaded inconsistently.** The result differed depending on whether it was added from the header dropdown or via the `createStudy` method.

#### Trading Platform only \
- **Fixed an issue where `showOrderDialog` would use the default implementation instead of the one from `customUI`.** 
- **Fixed an issue where interacting with the DOM could cause errors in the console.** 
- **Fixed an issue where the Order Panel would not be shown on screens less than 493 pixels high.** 

### Documentation \
- **Updated navigation and structure.** Restructured and expanded documentation for better navigation and clarity:
  - Created a new [Time and sessions](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions.md) section with an introductory article explaining how to correctly configure bar times, symbol sessions, and resolutions in the datafeed.
  - Reorganized the [Tutorials](https://charting-library-docs.xstaging.tv/latest/tutorials.md) section into four dedicated categories: Tutorials, How-to guides, Framework integrations, and Interactive code examples.
- **Added new troubleshooting sections.** Each section explains possible causes and solutions for the corresponding issue.
  - [Incorrect time display in Japanese-style charts](https://charting-library-docs.xstaging.tv/latest/connecting_data/Datafeed-Issues.md#japanese-charts-show-incorrect-time)
  - [Memory leak investigation steps](https://charting-library-docs.xstaging.tv/latest/troubleshooting.md)
  - [P&L showing 0 in bracket orders](https://charting-library-docs.xstaging.tv/latest/trading_terminal/common-issues.md#pl-in-bracket-orders-shows-0)
- **Other updates.** The following enhancements were made:
  - Added an [interactive example](https://charting-library-docs.xstaging.tv/latest/ui_elements/Marks.md#example) showing how to implement marks on the chart or time scale.
  - Expanded explanation and added an example for [enabling custom resolutions](https://charting-library-docs.xstaging.tv/latest/ui_elements/Resolution.md#enable-custom-resolutions).
  - Exposed the `addPlusButton` [action ID](https://charting-library-docs.xstaging.tv/latest/ui_elements/Chart.md#execute-action-by-id) that enables or disables the *Plus* button on the price scale for [quick trading](https://charting-library-docs.xstaging.tv/latest/ui_elements/Price-Scale.md#quick-trading).
  - Clarified the behavior of the [`show_zoom_and_move_buttons_on_touch`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#show_zoom_and_move_buttons_on_touch) featureset on mobile devices.
  - Documented a limitation for `long_positions` and `short_positions` drawing types where the [`text`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.CreateShapeOptions#text) property is auto-generated and must not be set manually.
  - Clarified method descriptions for `mergeUp`, `mergeDown`, `unmergeUp`, and `unmergeDown` in both [`IStudyApi`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IStudyApi) and [`ISeriesApi`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ISeriesApi) interfaces.
  - Updated the [Connecting data](https://charting-library-docs.xstaging.tv/latest/connecting_data.md) article with clearer descriptions of available integration approaches and their appropriate use cases.

---

## Version 30.0.0

*Date: Mon Sep 22 2025*

Welcome to version 30! This release is packed with new features, significant improvements, and important bug fixes.

To provide more context for these updates, we're excited to introduce a **[What's new](https://charting-library-docs.xstaging.tv/blog)** section in our documentation.
Each release will now be accompanied by a blog-style post and we invite you to read our first one to better understand the key highlights listed below.

**[Read a detailed walkthrough of the v30 release](https://charting-library-docs.xstaging.tv/blog/version-3000)**

### Breaking Changes \
- **Scrolling and resizing cannot be canceled anymore.** Chart scrolling or resizing via the time or price scale no longer triggers a change event. Therefore, these actions cannot be canceled with undo action anymore.
- **Update line tools overrides.** The text visibility checkbox has been removed from the drawing settings. Now, the text is always displayed when specified.
For this reason, the `showLabel` override property has no effect for the line tools such as trendline.
- **Update UDF properties.** Both `exchange-listed` and `exchange-traded` have been marked deprecated in favour of a single `exchange_listed_name` property.
From version 31 they will be removed.
- **Extend featureset to display inactivity gaps on DWM charts.** The new [`inactivity_gaps`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#inactivity_gaps) featureset replaces the existing `intraday_inactivity_gaps` and enables the display of inactivity gaps both on intraday and DWM (daily, weekly, monthly) charts. For more information, refer to the [Show/hide gaps on the chart](https://charting-library-docs.xstaging.tv/latest/ui_elements/Chart.md#showhide-gaps-on-the-chart) section.
- **Removed support for iOS version below 15.** Only iOS versions including and above 16 are now compatible with the library.

#### Trading Platform only \
- **Default value of `supportOrdersHistory` changed to `true`.** This means the *History* page in the [Account Manager](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md) is enabled by default and requires the [`ordersHistory`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#ordershistory) method to be implemented. If you don't plan to support order history, set [`supportOrdersHistory`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportordershistory) to `false` in your broker configuration. This hides the *History* page and prevents related errors.

### New Features \
- **Added the "Day of week labels" checkbox to the "Scales and lines" settings dialog.** 
- **Added a floating tooltip for detailed bar analysis in the *Cursors* menu.** On a long press on the chart, the tooltip appears and displays the OHLCV values and price change for the selected bar.
It then follows the cursor or finger as you move, providing a seamless way to inspect data across the chart.
To disable this feature, use the `long_press_floating_tooltip` featureset.

#### Trading Platform only \
- **Added "No overlap mode" toggle for orders and positions.** A new option is now available in the context menu of orders and positions on the chart. When enabled, it prevents trading lines and labels at the same price level from stacking, automatically offsetting them vertically for better readability. 

### Improvements \
- **Added option to remove locked drawings.** A new toggle *Always remove locked drawings* is now available in the left toolbar’s delete menu.
When enabled, this option forces the deletion of locked drawings along with other items.
- **Added subscription for *zoom out* tool.** [`IChartWidgetApi`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi) has a new property `canZoomOutWV`. It returns whether the chart can be zoomed out using [`zoomOut`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#zoomout).
- **The `onSymbolChanged` method returns the right type.** [`onSymbolChanged`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#onsymbolchanged) now returns the expected type.
- **Deprecated support for letters in shortcuts.** The support for letters in [shortcuts](https://charting-library-docs.xstaging.tv/latest/configuration/Shortcuts.md) has been deprecated. Starting from version 31, string key names are no longer supported.
Old styles like `'ctrl+shift+/'` or `['ctrl', 'shift', '/']` are deprecated. Use the supportable style like `['ctrl', 'shift', 191]` instead. For more information, refer to the [Manage shortcuts](https://charting-library-docs.xstaging.tv/latest/configuration/Shortcuts.md#manage-shortcuts) section.
- **Added a `label` property to StudyOrDrawingAddedToChartEventParams.** The [`label`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.StudyOrDrawingAddedToChartEventParams#label) property contains the indicator's name as defined in the [`description`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.RawStudyMetaInfo#description) field of its [metainfo](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo.md).
- **New featuresets for legend in-place edit.** The `disable_legend_inplace_resolution_change` and `disable_legend_inplace_symbol_change` featuresets control whether users can change the resolution or symbol directly from the [legend](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md).
- **Show symbol name in the _Сompare_ dialog.** When the [`use_symbol_name_for_header_toolbar`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#use_symbol_name_for_header_toolbar) featureset is enabled, the symbol [`name`](https://charting-library-docs.xstaging.tv/latest/connecting_data/Symbology.md#name) is displayed in the _Compare_ search dialog instead of [`ticker`](https://charting-library-docs.xstaging.tv/latest/connecting_data/Symbology.md#ticker).
- **Added new time zone for Kabul.** 
- **Added new APIs to control the watermark settings.** The [Watermark API](https://charting-library-docs.xstaging.tv/latest/ui_elements/watermarks.md#watermark-api-recommended) now has three different properties that can be set independently:
  - [`tickerVisibility`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWatermarkApi#tickervisibility) to toggle the display of the ticker (e.g. AAPL)
  - [`intervalVisibility`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWatermarkApi#intervalvisibility) to toggle the display of the interval (e.g. 1h)
  - [`descriptionVisibility`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWatermarkApi#descriptionvisibility) to toggle the display of the description (e.g. Apple Inc.)
- **The `setVisibleRange` method can be rejected.** [`setVisibleRange`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#setvisiblerange) now returns a `Promise` that can be rejected.
- **Added `chart_theme_changed` event to `SubscribeEventsMap`.** The [`chart_theme_changed`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SubscribeEventsMap#chart_theme_changed) event is fired when a user applies a saved [chart template](https://charting-library-docs.xstaging.tv/latest/saving_loading.md#chart-templates), resets the theme to the default built-in settings, or when the [`changeTheme`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#changetheme) or [`loadChartTemplate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#loadcharttemplate) methods are called.

#### Trading Platform only \
- **New `applyTradingCustomization` method.** This method allows you to override the style of order and position lines created with the [Broker API](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts.md#broker-api) after the widget has been created.
- **Added a date property to `PositionBase`.** [`PositionBase`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.PositionBase) now has an optional `updateTime` property.
- **Added a `canBeClosed` property to different Position APIs.** Both [`IndividualPositionBase`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IndividualPositionBase) and [`IndividualPosition`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IndividualPosition) now have an optional `canBeClosed` property to determine if a position can be closed.
- **Added price information (price and profit/loss details) to the tooltip for positions, orders, and brackets.** 
- **Redesigned *Trading settings* panel.** The *Trading settings* panel has been reworked to be more intuitive and provide users with clearer options for customizing their trading view.

### Bug Fixes \
- **Fixed an issue where Spread and Ratio indicators did not work correctly on intraday resolutions.** Previously, the Spread and Ratio indicators did not work correctly on intraday resolutions when the compared symbol had a different session (e.g., 24x7 and 0930-1630).
- **Fixed an issue where the _Long Position_ and _Short Position_ drawings were not reversed correctly.** 

#### Trading Platform only \
- **Fixed a bug that allowed orders to be placed without a price.** 
- **Fixed *Reverse* button color overrides.** Previously, setting override properties for the *Reverse* button within the [`trading_customization`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#trading_customization) object would result in the button rendering as black.

### Documentation \
- **AI docs assistant.** You can now download a comprehensive knowledge file containing our complete, up-to-date documentation and full TypeScript definitions. Feed this file to your favorite LLM to create a dedicated expert assistant for our library, ensuring you get accurate, context-aware answers and code examples. [Learn how to set it up](https://charting-library-docs.xstaging.tv/latest/ai/build-ai-assistant.md).
- **New watermarks guide.** The [Watermarks](https://charting-library-docs.xstaging.tv/latest/ui_elements/watermarks.md) article explains how to programmatically control the watermark's visibility, color, and content using the Watermark API.
- **New profit and loss article.** The [Profit and loss](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/profit-and-loss.md) article explains how to provide P&L values from your backend. It details the different methods for updating the data and clarifies how the library uses this data for the *Money*, *Ticks*, and *Percentage* display modes.
- **Other updates.** The following enhancements were made:
  - Added a new section that describes [time ranges](https://charting-library-docs.xstaging.tv/latest/ui_elements/Time-Scale.md#time-range) and how to use `setVisibleRange`.
  - Added a new section that describes [how to show/hide gaps on the chart](https://charting-library-docs.xstaging.tv/latest/ui_elements/Chart.md#showhide-gaps-on-the-chart) using the `intraday_inactivity_gaps` featureset.
  - Updated information on [mobile app development](https://charting-library-docs.xstaging.tv/latest/mobile_specifics.md#mobile-applications).
  - Updated [`setMinimumAdditionalDepth`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IContext#setminimumadditionaldepth) description, mentioning when to use the method.
  - Updated the [Trading primitives](https://charting-library-docs.xstaging.tv/latest/trading_terminal/Trading-Primitives.md) article, providing clear explanations and examples on the primitive methods.
  - Updated the [Online playgrounds](https://charting-library-docs.xstaging.tv/latest/tutorials/Online-Editors.md) article, providing templates for [CodePen](https://codepen.io/tradingview).
- **Update the Datafeed API tutorial.** We updated both the code example and documentation for the [How to connect data via datafeed API](https://charting-library-docs.xstaging.tv/latest/tutorials/tutorials/implement_datafeed_tutorial.md) tutorial. The latest version introduces several key improvements:

  - Added support for minute and hour resolutions.
  - Removed `full_name` from the `SymbolInfo` object. Now, `ticker` is used instead.
  - `searchSymbols` now properly filters results by user input, selected exchange, and symbol type.
  - `getBars` now selects the correct API endpoint based on the requested `resolution` (minute, hour, or day), ensuring the most appropriate data is used.
  - Reworked streaming logic to support multiple subscriptions to data updates.

---

## Version 29.6.0

*Date: Wed Aug 13 2025*

### Improvements \
- **Added a `label` property to `StudyOrDrawingAddedToChartEventParams`.** The [`label`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.StudyOrDrawingAddedToChartEventParams#label) property contains the indicator's name as defined in the [`description`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.RawStudyMetaInfo#description) field of its [metainfo](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo.md). 

---

## Version 29.5.0

*Date: Tue Aug 05 2025*

### Improvements \
- **Improved crosshair movement in tracking mode on mobile.** Previously, the crosshair moved incorrectly in tracking mode when `vert_touch_drag_scroll` was disabled. Now, page scrolling is disabled in tracking mode, allowing the crosshair to move on touch.

#### Trading Platform only \
- **Added `setLayoutSizes` method to `IChartingLibraryWidget`.** The [`setLayoutSizes`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#setlayoutsizes) method can be used to resize the charts in [multiple-chart layouts](https://charting-library-docs.xstaging.tv/latest/trading_terminal.md#multiple-chart-layout).

### Bug Fixes \
- **Fixed an issue where setMinimumAdditionalDepth would be ignored.** Fixed an issue where custom studies would sometimes not request enough historic bars after calling [`setMinimumAdditionalDepth`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IContext#setminimumadditionaldepth).
- **Fixed an issue where pivot points could be drawn on the wrong bar for overnight sessions.** Fixed an issue where pivot points could be drawn on the wrong bars for symbols with overnight sessions when calculating with a daily timeframe.

---

## Version 29.4.0

*Date: Tue Jun 25 2025*

### New Features \
- **Added new legend property.** A new overrides property `paneProperties.legendProperties.showSeriesLegendCloseOnMobile` was added to hide/show the close value in the legend when on mobile. The default value is `true`.

#### Trading Platform only \
- **Support multiple tick resolution.** The library now supports multiple [tick resolutions](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/configure-datafeed-resolutions.md#resolution-in-ticks). Previously, it was possible to set only `1T` resolution.
Note that the library does not support tick multipliers. This means it is not possible to build a higher resolution (e.g., `10T`) from a lower one (e.g., `1T`). Therefore, your datafeed must explicitly provide each required resolution.
- **Enabled custom price formatting for Watchlist values.** `priceFormatterFactory` from [`custom_formatters`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_formatters) can now be used to format values displayed in the Watchlist columns titled _Last_ and _Chg_.

### Improvements \
- **Updated snapshots functionality in the top toolbar.** Now, handling and storing [snapshots](https://charting-library-docs.xstaging.tv/latest/ui_elements/Snapshots.md) rely solely on the [`snapshot_url`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#snapshot_url) property.
This means all server-side snapshot actions (*Copy link*, *Open in new tab*, *Tweet image*) must be implemented using your own server.
For details on how to set up your own server, see our guide to [implementing a snapshot server](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/implement-snapshots-server.md).
- **Added the `use_symbol_name_for_header_toolbar` featureset.** This featureset allows you to show the symbol name over the ticker in the _Symbol Search_ dialog.
- **Added `searchSource` parameter to `searchSymbols`.** [`searchSymbols`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#searchsymbols) now receives a new parameter `searchSource` to indicate where the search was triggered from.
- **Added a new property to the `BrokerCustomUI` interface.** [`showReversePositionDialog`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerCustomUI#showreversepositiondialog) allows overriding the default *Reverse position* dialog with a custom implementation.
- **Added VWAP insufficient data warning.** Users will now see a warning icon and message in the legend if there isn't enough data loaded to calculate VWAP.
- **Add featureset to display inactivity gaps on intraday charts.** The new `intraday_inactivity_gaps` featureset enables the display of inactivity gaps on intraday charts. These gaps represent periods within the trading session when there has been no trading activity, resulting in missing bars on the chart.
When `intraday_inactivity_gaps` is enabled, a checkbox appears in the chart settings dialog, allowing users to toggle inactivity gaps on or off. The featureset also exposes the `intradayInactivityGaps` watched value on the Widget API for programmatic control.
- **Improved data loading efficiency by throttling data requests during user scrolling.** This significantly reduces the frequency of small, incremental requests to the Datafeed API.

#### Trading Platform only \
- **Order & Position lines display the same information on desktop and mobile.** Users can now benefit from the same design on both desktop and mobile when an order/position is displayed on the chart.

### Bug Fixes \
- **Fixed indicator template favorite menu bug.** Fixed an issue where favoriting an indicator template with leading whitespace in its name caused the quick access button in the header menu to appear empty.
- **Fixed Relative Strength Index indicator.** The Relative Strength Index indicator was broken in version 29.2.0 and has now been fixed.
- **Fixed a bug where switching chart type to a Japanese one would lead to an error in the console.** 
- **Fixed vertical line drawing bug.** Fixed an issue where it was impossible to move an existing vertical line drawing to the right of the most recent bar on the chart.
- **Fixed an error when drawing execution shapes on the chart led to an invalid chart state.** Fixes [#9109](https://github.com/tradingview/charting_library/issues/9109)
- **Fixed the spread operator issue in the Compare symbol dialog.** Spread operators now function correctly in the _Compare symbol_ dialog, ensuring consistency with the _Symbol Search_ dialog.
- **Fix for sameorigin.html loading from relative path.** This fix ensures proper loading of the `sameorigin.html` file when using the `iframe_loading_same_origin` featureset and the current page is not the root page.

#### Trading Platform only \
- **The `_getStyleOverrides` error message.** Fixed a bug where the `_getStyleOverrides` error message could be seen in the console when instantiating the chart with pre-existing orders or positions.
- **Fix rendering of multiple execution shapes on a single bar.** Fixed an issue where adding multiple [execution shapes](https://charting-library-docs.xstaging.tv/latest/ui_elements/drawings/drawings-api.md#createexecutionshape) to a single bar would only render the first shape.

### Documentation \
- **New tutorial.** Check out our [new tutorial](https://charting-library-docs.xstaging.tv/latest/tutorials/tutorials/implement-broker-api.md) on how to implement the required methods to enable basic trading functionality using the Broker API.
By the end of this tutorial, you will learn how to enable trading UI and how to store, return, and update orders to make the trading flow functional.
- **New troubleshooting article.** Explore a new article on common [customization issues](https://charting-library-docs.xstaging.tv/latest/customization/customization-issues.md) and potential solutions.
- **Other enhancements.** Updated the [Custom themes API](https://charting-library-docs.xstaging.tv/latest/customization/styles/custom-themes.md) article and added a new [example](https://codepen.io/tradingview/pen/xbGRaKd) to demonstrate how chart colors can be adjusted using this API.

---

## Version 29.3.0

*Date: Thu May 08 2025*

### New Features \
- **Added HLC bars chart style.** The HLC bars chart style is the same as regular bars but doesn't display the open price. When exporting a series or [overlay](https://charting-library-docs.xstaging.tv/latest/ui_elements/indicators.md#add-and-compare-new-series) indicator that uses the HLC bars chart style, open values are not included. Open values also do not appear in the data window or [legend](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md) for series or overlay indicators using this style.

### Improvements \
- **Added price scale details to context menu event.** When invoking the [context menu](https://charting-library-docs.xstaging.tv/latest/ui_elements/context-menu.md) on the price scale, it now returns the following details:
  - `id` of the price scale
  - `paneIndex` which is the index of the pane the price scale is linked to
  - `chartIndex`  which is the index of the chart the price scale is linked to
- **Added icon to dropdown items.** A new property `icon` was added to the [`DropdownItem`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.DropdownItem) interface.

### Bug Fixes \
- **Empty context menu.** Fixed an issue where the [context menu](https://charting-library-docs.xstaging.tv/latest/ui_elements/context-menu.md) would be partially empty on mobile
- **onContextMenu callback received incorrect arguments.** Fixed a bug where the [`onContextMenu`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#oncontextmenu) callback received an object instead of the expected arguments.
- **Autosave won't trigger with empty text box created during autosave delay.** 
- **Fixed an error where vertical lines would revert to their previous position when moved beyond latest bar.** Fixes [#8894](https://github.com/tradingview/charting_library/issues/8894)

### Documentation \
- **The following enhancements were made.** 
  - Added a new section explaining how to [programmatically open and close Symbol Search](https://charting-library-docs.xstaging.tv/latest/ui_elements/Symbol-Search.md#openclose-symbol-search).
  - Updated the [Customization overview](https://charting-library-docs.xstaging.tv/latest/customization.md) and [Time zones](https://charting-library-docs.xstaging.tv/latest/ui_elements/timezones.md) articles.

---

## Version 29.2.0

*Date: Tue Apr 08 2025*

### New Features \
- **Added new methods to Trading Host.** The [Trading Host](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts.md#trading-host) now includes three new methods designed to clear specific caches and trigger fresh data fetches:
  - [`ordersFullUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#ordersfullupdate)
  - [`positionsFullUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#positionsfullupdate)
  - [`individualPositionsFullUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#individualpositionsfullupdate)

#### Trading Platform only \
- **Added cross-tab synchronization for watchlists.** This feature is enabled by default and requires the `use_localstorage_for_settings` [featureset](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md) to be enabled.
To disable the cross-tab synchronization, use the `watchlist_cross_tab_sync` featureset.

### Improvements \
- **New `resetCache` method.** The new `resetCache` method allows you to delete previously loaded data for all symbol and resolution combinations known to the datafeed at once. You can use this method instead of [`onResetCacheNeededCallback`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#subscribebars) to clear the cache before calling [`resetData`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#resetdata). In this case, you do not need to wait for [`subscribeBars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#subscribebars) to be called to access the callback.

### Bug Fixes \
- **Save button tooltip still shows shortcut when `save_shortcut` is disabled.** Fixed a bug where the _Save_ button's tooltip still showed the shortcut when the `save_shortcut` featureset was disabled. Fixes [#8925](https://github.com/tradingview/charting_library/issues/8925)
- **Compare Symbol search dialog behavior.** Fixed an issue where the library would try to resolve a symbol that may not exist when users pressed _Enter_ whenever the featureset `allow_arbitrary_symbol_search_input` would be enabled.
- **Adding a custom interval could cause an error.** Adding a custom interval after enabling the [`custom_resolution`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#custom_resolutions) featureset used to cause a console error.
- **Fixed an issue where on some occasions PineJS functions would not return the right values when internally comparing it to MIN_VALUE or MAX_VALUE.** 
- **Future bar time extrapolation with `disable_resolution_rebuild`.** Fixed an issue where future bar times would be extrapolated incorrectly when the `disable_resolution_rebuild` featureset was enabled, and daily bars that do not consider the January 1 to be the first day of the year were provided to the library.
- **Compare symbol legend context menu.** Fixed an issue where the context menu for compared symbols would show the _Add this indicator to favorites_ item.
- **Main series context menu.** Fixed an issue where the [context menu](https://charting-library-docs.xstaging.tv/latest/ui_elements/context-menu.md) for the main series would show a blank space instead of the _Add SYMBOL to watchlist_ item.
- **Watchlist item counter.** Fixed an issue where the watchlist item count would include section titles in its calculation.
- **Fixed an issue with time scale marks that couldn't contain any underscore character.** 
- **Fixed a bug where `getBars` failed to display error messages containing semicolons.** 
- **Fixed drawing keyboard shortcuts.** Fixed an issue where using keyboard shortcuts to add drawings would sometimes open the _Symbol Search_ dialog instead of adding the intended drawing.

### Documentation \
- **The following enhancements were made.** 
  - Added a new section explaining how to [display pre- and post-market price lines](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/Extended-Sessions.md#enable-the-price-line).
  - Added a new section explaining how to [provide profit and loss values](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/profit-and-loss.md) in Trading Platform.
  - Updated the [Trading Session](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/Trading-Sessions.md) article with information on how to specify [session history](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/Trading-Sessions.md#session-history)

---

## Version 29.1.0

*Date: Fri Mar 07 2025*

### New Features \
- **Added the _Another symbol_ input field to Moving Average Multiple, Moving Average Triple, and Pivot Points Standard.** This field allows users to specify a different symbol for calculating the indicator. By default, the current symbol on the chart is used.

#### Trading Platform only \
- **Pre-/post-market lines.** Added the `pre_post_market_price_line` featureset that allows you to enable or disable the pre-/post-market price lines. To display the pre-/post-market lines, you need to provide the `rtc` property in [quotes](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Datafeed.DatafeedQuoteValues).

### Improvements \
- **Adds an offset input to the Bollinger Bands indicator.** 
- **Allow overriding the default shortcuts.** Now, you can override the default shortcuts using the [`onShortcut`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#onshortcut) method. Note that modal dialogs shortcuts cannot be changed.

### Documentation \
- **New articles.** Explore our latest articles:
  - [Object tree](https://charting-library-docs.xstaging.tv/latest/ui_elements/object-tree.md) — an overview of the feature.
  - [Quotes](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/quotes.md) — an article explaining the importance of quotes in Trading Platform.
- **Other updates.** The following enhancements were made:
  - Updated the guide on [how to add a custom page to the Account Manager](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/create-custom-page-in-account-manager.md). It now describes how to make the symbol name clickable on the custom page.
  - Added a guide on how to troubleshoot when [quotes are not displayed or refreshed](https://charting-library-docs.xstaging.tv/latest/connecting_data/Datafeed-Issues.md#quotes-are-not-displayed-or-refreshed).
  - Added a guide on how to troubleshoot [delays in Trading Platform UI elements](https://charting-library-docs.xstaging.tv/latest/connecting_data/Datafeed-Issues.md#delays-in-trading-platform-ui-elements).
  - Added a new FAQ — [Does the library set cookies](https://charting-library-docs.xstaging.tv/latest/resources/Frequently-Asked-Questions.md#other-questions).

---

## Version 29.0.0

*Date: Wed Feb 05 2025*

This major release introduces new features and enhancements focused on expanding UI customization options. Users now have greater control over drawings and indicators, allowing for a more tailored and flexible experience.

This release also includes several [breaking changes](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#v29_0-breaking-change) that impact the library API. Consider them to ensure compatibility with your implementation.

Key updates:

- Better chart management with [leftmost bar visibility](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#v29_0-leftmost_bar_visibility)
- Advanced [customization](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#v29_0-customize_order_and_position_lines) in Trading Platform
- An alternative [loading mode](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#version-2810)
- Enhanced [visualization](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#v28_3-symbol_name_in_the_watchlist_and_details_widgets) in the Watchlist and Details widgets
- Removal of [Trading API](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#v29_0-removed_trading_api_methods_from_advanced_charts) methods from Advanced Charts

For a detailed breakdown of changes, refer to the sections below.

### Breaking Changes \
- **Removed trading API methods from Advanced Charts.** The following methods are now available exclusively in Trading Platform. If you’re using Advanced Charts, these methods will no longer be accessible.
  - [`createOrderLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline)
  - [`createPositionLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline)
  - [`createExecutionShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createexecutionshape)
- **Changed the `getPositionDialogOptions` signature.** The [`getPositionDialogOptions`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerCommon#getpositiondialogoptions) method is asynchronous and returns a promise now. The method also expects a symbol as a parameter.
- **Broker API simplification.** To further improve and simplify the library, we have merged the two existing APIs, `IBrokerWithoutRealtime` and `IBrokerTerminal`, and now exclusively expose the latter. Additionally, we have removed the `subscribeDOM`/`unsubscribeDOM` methods, as they were rarely used and duplicated the functionality of [`subscribeDepth`](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/trading-platform-methods.md#subscribedepth)/[`unsubscribeDepth`](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/trading-platform-methods.md#unsubscribedepth). This change ensures that the datafeed fully handles all data management responsibilities.
- **Removed the anchored note drawing.** 
- **Renamed the note drawing to pin.** 
- **Updated the default colors for drawings/indicators with Volume Profiles.** 
- **Added MACD smoothing inputs.** 
- **Drawing creation methods now return Promises instead of synchronous values.** The drawing creation methods ([`createShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createshape), [`createMultipointShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createmultipointshape), and [`createAnchoredShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createanchoredshape)) now return Promises that resolve to the drawing ID. The methods also throw an Error through a rejected Promise when the drawing creation fails, instead of returning `null`.

#### Trading Platform only \
- **Trading Platform methods for drawing creation now return Promises instead of synchronous values.** The ([`createOrderLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline), [`createPositionLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline), and [`createExecutionShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createexecutionshape)) methods now return Promises that resolve to the corresponding API interface. 

### New Features \
- **Added the _Another symbol_ input field to Ichimoku Cloud, Bollinger Bands, and Average Price.** This field allows users to specify a different symbol for calculating the indicator. By default, the current symbol on the chart is used.

#### Trading Platform only \
- **New properties for customizing order and position lines.** You can now override the style of order and position lines created with the [Broker API](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts.md#broker-api).
The [`trading_customization`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#trading_customization) option in the Widget Constructor now supports `brokerOrder` and `brokerPosition` properties.
For more details, see the [Trading Overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/trading-overrides.md#created-with-broker-api) article.

### Improvements \
- **Added an option to keep the leftmost bar visible after resolution switching.** By default, the library resets the chart to the latest data when the resolution is changed. To keep the current time range, users can enable the Save chart left edge position when changing interval option in *Chart settings* → *Scales*.
- **Added option to hide/show scroll to the most recent bar button.** The presence of the *Scroll to the most* recent bar button now depends on the Navigation buttons settings (*Chart settings* → *Canvas* → *Buttons* → *Navigation*).
- **Added a new `paneIndex` getter to the `StudyAPI`.** The [`paneIndex`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IStudyApi#paneindex) function returns the index of the pane the indicator belongs to.
- **Enabled users to adjust coordinates of parallel channel within the drawing settings.** 
- **Enabled users to reverse the long/short position drawings.** 
- **Buy/Sell buttons' visibility can now be changed for each chart in the layout.** 
- **Added the Volume option for the date range and date & price range tools.** 
- **Added multiline option for parallel channel.** Additional level lines have been added.
- **Show price line of Heikin Ashi on real price when the real price label is selected.** On Heikin Ashi chart, the price line now matches the position of the *Last price* label when the *Real prices on price scale (instead of Heikin-Ashi price)* setting is enabled.
- **Added new time zone Azores (UTC-1).** 
- **Added an error message for unsupported resolutions.** If the selected resolution is not supported by the current symbol, an error message appears on the chart along with a button to switch to a supported resolution.
- **Implemented dynamic loading for drawings to optimize bundle size.** Drawings have been refactored to utilize dynamic imports, reducing the initial bundle size by loading these components on-demand. This optimization results in faster initial page loads and improved application startup time, while maintaining full drawing functionality through lazy loading when tools are actually accessed by users.
- **Added a star icon to chart context menu for indicator.** This icon is displayed next to the _Add this indicator to favorites / Remove this indicator_ from favorites option in the indicator context menu.

#### Trading Platform only \
- **Changed the return type for `OrderPreviewResult`.** When implementing [`previewOrder`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#previeworder), you can specify links to external URLs now. The links will be displayed within the `warnings` or `errors` block.  

### Bug Fixes \
- **Fixed unreliable onChartReady callback with cached bundles.** When using `iframe_loading_compatibility_mode` with cached library bundles, the `onChartReady` callback would sometimes fail to execute. Fixes [#8889](https://github.com/tradingview/charting_library/issues/8889)
- **Long/short position tools are extended to the right if the next bar crosses stop/profit level.** Fixed a bug where long/short position would get partially extended to the right if the next bar crossed the stop/profit level.
- **Fixed hovering on the indicator legend.** Now, when an indicator is deleted via the legend, the hover state shifts to the legend of the next indicator below.
- **Fixed an issue when cloning drawings that were not selected.** Fixed a bug where _Ctrl+Drag_ would create copies of the last selected drawings on chart, even if they were no longer selected. Now, this shortcut enables area selection.

### Documentation \
- **New how-to guide.** Check out a new [guide](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/add-custom-button-to-top-toolbar.md) on how to add a custom button to the top toolbar.
- **Other updates.** The following enhancements were made:
  - Added a new section that explains [multiple symbol resolving](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/required-methods.md#multiple-symbol-resolving).
  - Updated the [Toolbars](https://charting-library-docs.xstaging.tv/latest/ui_elements/Toolbars.md) article.
  - Added a new [section](https://charting-library-docs.xstaging.tv/latest/ui_elements/Chart.md#execute-action-by-id) that describes how to trigger specific actions, such as opening the *Chart settings* dialog, using the [`executeActionById`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#executeactionbyid) method.
  - Added an [overview](https://charting-library-docs.xstaging.tv/latest/product-comparison.md) of other TradingView products.

---

## Version 28.5.0

*Date: Wed Dec 18 2024*

**New Features**

- **Added `baselinePosition` property for column series.** The [`baselinePosition`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ColumnStylePreferences#baselineposition) property allows column series to be drawn relative to the specified baseline value.
  - The default value is `'bottom'`, which draws columns with the bottom of the chart pane as their baseline.
  - Setting the value to `'zero'` draws columns with a baseline of 0, displayed as either 0% or 0.00 depending on the price scale mode.
- **Added the _Another symbol_ input field to Moving Average Double.** This field allows users to specify a different symbol for calculating the indicator. By default, the current symbol on the chart is used.

**Documentation**

- **New how-to guide.** Check out a new [guide](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/create-custom-page-in-account-manager.md) that explains how to create a custom page in the Account Manager.
- **Other updates.** The following enhancements were made:
  - Added a new section that explains how to enable and specify [last day change values](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md#last-day-change-values).
  - Updated information on [overnight sessions](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/Trading-Sessions.md#overnight-sessions).
  - Updated information on how to [close](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/positions.md#close-positions) and [reverse](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/positions.md#reverse-positions) positions.
  - Updated API overview page.

## Version 28.4.0

*Date: Thu Nov 28 2024*

**New Features**

- **Added `includeOHLCValuesForSingleValuePlots` option when exporting data.** When set to `true`, this option forces all four OHLC plot values to be exported, even if the plot has a single value. This applies, for example, when the symbol has `visible_plots_set: 'c'` or when the exported plot is a single-value style (Area, Baseline, Line, Line with markets, Stepline, or Column).

**Improvements**

- **Added logging of quotes events.** Added extra logging of quote events when [debug mode](https://charting-library-docs.xstaging.tv/latest/tutorials/tutorials/enable-debug-mode.md#enable-debug-mode-for-data-connection) is enabled. The logs will contain information about quote data requests, real-time subscribe and unsubscribe events, and alerts for data requests that do not respond within 10 seconds.

**Bug Fixes**

- **Fixed an issue where missing translations caused errors when opening the settings dialog of the Ichimoku Cloud indicator.**
- **Fixed an issue where the Point and Figure series would not be displayed.**

**Documentation**

- **New articles.** Explore our latest articles:
  - [Positions](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/positions.md) — an article that overviews position types supported in the library and describes how to manage them.
  - [UI elements](https://charting-library-docs.xstaging.tv/latest/ui_elements.md) — an overview of the library's UI elements.
  - [News](https://charting-library-docs.xstaging.tv/latest/trading_terminal/news.md) — an article that explains how to connect data to the _News_ widget.
- **Other updates.** The following articles were improved:
  - [Custom themes API](https://charting-library-docs.xstaging.tv/latest/customization/styles/custom-themes.md)
  - [CSS color themes](https://charting-library-docs.xstaging.tv/latest/customization/styles/CSS-Color-Themes.md)
  - [Market Status](https://charting-library-docs.xstaging.tv/latest/ui_elements/market-status.md)

## Version 28.3.0

*Date: Thu Oct 24 2024*

**New Features**

- **Symbol name in the Watchlist and Details widgets.** Now, the [`DatafeedQuoteValues.short_name`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Datafeed.DatafeedQuoteValues#short_name) value is displayed as a symbol's short name in the [Watchlist](https://charting-library-docs.xstaging.tv/latest/trading_terminal/Watch-List.md) and [Details](https://charting-library-docs.xstaging.tv/latest/trading_terminal.md#details).
 You can disable the [`prefer_quote_short_name`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#prefer_quote_short_name) featureset to revert to the old behavior. In this case, the [`ticker`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#ticker) value will be used instead. **Trading Platform Only**

**Bug Fixes**

- **Anchored note in multi-layout.** Fixed an issue where plotting a saved anchored note in multi-layout would raise an error. **Trading Platform Only**
- **Fixed symbol logo persistence in legend.** Resolved an issue where a failed image load (e.g., a 404 error) for a symbol logo would cause the previous logo to persist in the legend. Now, the legend correctly updates to reflect the absence of a logo when loading fails. See the [Symbol logos](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md#symbol-logos) section of the Legend documentation for more details on the feature.
- **Fixed ordering of symbol logos.** Fixed an issue where symbol logos with two URLs defined in [`logo_urls`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#logo_urls) were displayed in an inconsistent order. The order has been corrected on the chart legend and within the Account Manager table.

## Version 28.2.0

*Date: Tue Oct 01 2024*

**New Features**

- **Added `Rank Correlation Index` indicator.**
- **Support building seconds bars from ticks.** Trading Platform now supports building seconds bars from ticks for symbols configured to support it. Compatible symbols must set the [`build_seconds_from_ticks`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#build_seconds_from_ticks) flag to `true`. Additionally, [`has_seconds`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_seconds) and [`has_ticks`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_ticks) must be `true`, and [`seconds_multipliers`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#seconds_multipliers) must be an empty array or only contain multipliers that the datafeed provides itself. **Trading Platform Only**

**Improvements**

- **Added an option to customize the default Volume MA calculation in the Volume indicator.** By default, the Volume MA, optionally plotted in the Volume indicator, used the SMA calculation. We have now introduced two additional options: EMA and WMA.
- **Added new event to `SubscribeEventsMap`.** The [`timeframe_interval`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SubscribeEventsMap#timeframe_interval) event is triggered when the one of the bottom left intervals is selected or the [`setTimeFrame`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#settimeframe) API is used.
- **Added a symbol change to MACD indicator.** It is now possible to change the targeted symbol when plotting MACD indicator without using the main series.
- **Sped up sorting animation in the Account Manager.** Raised by [#8760](https://github.com/tradingview/charting_library/issues/8760) **Trading Platform Only**

## Version 28.1.0

*Date: Wed Sep 04 2024*

**Breaking Changes**

- **Deprecated API methods.** [`activateBottomWidget`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#activatebottomwidget) is now marked `deprecated`. Please use [`setAccountManagerVisibilityMode`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#setaccountmanagervisibilitymode) instead.
If you want to retrieve the current state of the Account Manager please use [`getAccountManagerVisibilityMode`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#getaccountmanagervisibilitymode)

**New Features**

- **Added `iframe_loading_same_origin` featureset.** The `iframe_loading_same_origin` featureset ensures the library's iframe is loaded from the same domain as the `library_path` files.

**Improvements**

- **Added new event to `SubscribeEventsMap`.** The [`study_dialog_save_defaults`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SubscribeEventsMap#study_dialog_save_defaults) event is triggered when the _Save as default_ option is selected in the indicator settings.
- **Changed the return type for `OrderPreviewResult`.** When implementing [`previewOrder`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#previeworder), you can specify links to external URLs now. The links will be displayed within the `warnings` or `errors` block.  **Trading Platform Only**
- **Added an item counter for custom pages.** By default, custom pages added to the [Account Manager](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md) do not display the number of items in their corresponding table. Enabling [`displayCounterInTab`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.AccountManagerPage#displaycounterintab) will show this number next to the tab title.  **Trading Platform Only**

**Bug Fixes**

- **charting_library_debug_mode.** Fixed an issue where enabling the featureset `charting_library_debug_mode` was of no effect.

- **Instant display of refreshed marks.** Fixed an issue where new [marks](https://charting-library-docs.xstaging.tv/latest/ui_elements/Marks.md) added after calling [`refreshMarks`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#refreshmarks) were not immediately displayed on the chart. Previously, these marks only appeared after user interaction, but now they are instantly visible once the data is provided.
- **Fixed an issue with `multiple_watchlists` featureset.** When the `multiple_watchlists` featureset was disabled, it was still possible to see the `Create a new list` option under the Watchlist drop-down menu.

**Documentation**

- **New how-to guide.** Check out a new guide on [enabling debug modes](https://charting-library-docs.xstaging.tv/latest/tutorials/tutorials/enable-debug-mode.md) to help identify potential issues when implementing your app and ensure it is running smoothly.

## Version 28.0.0

*Date: Wed Aug 14 2024*

**Breaking Changes**

- **Removed `full_name`.** The `LibrarySymbolInfo.full_name` property was removed from public API. The property contained strings in the `'EXCHANGE:SYMBOL'` format and was used to request data from the datafeed. Therefore:
  - Now, you should use either the [`name`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#name) or [`ticker`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#ticker) property to specify an identifier for a certain symbol. For more information, refer to the [Symbology](https://charting-library-docs.xstaging.tv/latest/connecting_data/Symbology.md#symbol-name) article.
  - Instead of `'EXCHANGE:SYMBOL'`, the library will send either `name` or `ticker` values to the datafeed when calling methods such as [`getBars`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getbars), [`getQuotes`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedQuotesApi#getquotes), and [`subscribeQuotes`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedQuotesApi#subscribequotes).
  - The `'EXCHANGE:SYMBOL'` strings are no longer displayed in the Trading Platform UI. The symbol name will be used instead. You can disable the [`prefer_symbol_name_over_fullname`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#prefer_symbol_name_over_fullname) featureset to revert to the old behavior. **Trading Platform Only**
- **Deprecated API methods.** The following methods are now marked `deprecated` for the Advanced Charts users.
  - [`createOrderLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline)
  - [`createPositionLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline)
  - [`createExecutionShape`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createexecutionshape)

  These methods will be removed from the Advanced Charts library in the next major version.
  However, they will still be available in Trading Platform.
- **Make `cancelOrders` optional.** The [`cancelOrders`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#cancelorders) method is marked as optional because the library calls it only for the [Depth of Market](https://charting-library-docs.xstaging.tv/latest/trading_terminal.md#depth-of-market) widget. **Trading Platform Only**
- **Removed the `calculatePLUsingLast` flag.** The `calculatePLUsingLast` [broker configuration flag](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/trading-features-configuration.md) has been removed. **Trading Platform Only**
- **Symbol search dialog behavior.** Previously, when users pressed _Enter_ in the [_Symbol Search_](https://charting-library-docs.xstaging.tv/latest/ui_elements/Symbol-Search.md) dialog, they could enter arbitrary input directly. This input was passed to the datafeed for resolution and loading, regardless of whether the input matched any search results.
Now, pressing _Enter_ selects the top search result unless the user has explicitly chosen another item. If there are no search results, pressing _Enter_ will have no effect. You can enable the [`allow_arbitrary_symbol_search_input`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#allow_arbitrary_symbol_search_input) featureset to use the old behavior.
- **Change custom translation API.** Change the [custom_translate_function](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_translate_function) interface to accept different parameters: the original text, the singular original text, and the translated text. For example "prices", "price", "prix".
- **Changed the behavior of data display in the Depth of Market widget.** Now, data is displayed in static mode.
This means that the price series is fixed, while the current price moves within, above, or below the designated range.
To center on the current price, click the centering button () or use the *Shift + Alt/Option + C* shortcut.
Previously, centering was applied dynamically.
- **Renamed the Symbol Info dialog.** The _Symbol Info_ dialog and the corresponding items in context menus are called _Security Info_ now. [#8444](https://github.com/tradingview/charting_library/issues/8444)
- **Renamed ErrorCallback to DatafeedErrorCallback.** `ErrorCallback` used in `IDatafeedChartApi` has been renamed to `DatafeedErrorCallback`.
- **Updated `selectedCurrency` behavior.** In `CurrencyInfo`, the [`selectedCurrency`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.CurrencyInfo#selectedcurrency) property now returns `null` instead of `"Mixed"` when price scales contain mixed currencies.
- **Deprecated property.** The `brokerConfig` property in the [`TradingTerminalWidgetOptions`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions) interface is deprecated and will be removed in the next major release.
Use the [`broker_config`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#broker_config) property instead.

**New Features**

- **New Custom themes API.** This API allows you to customize colors of the chart elements including toolbars, dialogs, and buttons.
To do this, you should specify your own theme with a custom color palette.
For more information, refer to the [Custom themes API](https://charting-library-docs.xstaging.tv/latest/customization/styles/custom-themes.md) article.
- **Added Volume Candles chart style.** This chart style allows for a visual assessment of the volume of trades for each candle. These are still candlesticks, but the width of each candle depends on the volume of trades during the period of formation of this candle. The greater the trading volume during the formation period of the candle, the larger the width of the candle.
To display Volume Candles, select the corresponding option in the drop-down menu on the top toolbar. **Trading Platform Only**

**Improvements**

- **Behavior change for `chartContextMenuActions`.** When the [`chartContextMenuActions`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal#chartcontextmenuactions) method returns an empty array, the _Trade_ item within the chart [context menu](https://charting-library-docs.xstaging.tv/latest/ui_elements/context-menu.md) will not be displayed. Previously, the item was rendered but grayed out. **Trading Platform Only**
- **Added the `library_custom_fields` property to the `LibrarySymbolInfo` interface.** This property is used to include additional metadata in the symbol information. The metadata will not be processed by the library.
- **Added extra properties to `symbolExt` method.** The [`symbolExt`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#symbolext) method now returns additional properties including `ticker`.
- **Added the `debug_broker` option to the Widget Constructor.** When [`debug_broker`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#debug_broker) is specified, the library logs calls and responses to [`IBrokerTerminal`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerTerminal) and [`IBrokerConnectionAdapterHost`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost) in the browser console. You can set `debug_broker` to one of the debug levels defined by [`BrokerDebugMode`](https://charting-library-docs.xstaging.tv/latest/api/modules/Charting_Library#brokerdebugmode). **Trading Platform Only**
- **Updated the anchored VWAP drawing.** Add bands settings to the anchored VWAP drawing.
- **Added new methods to the Trading Host.** The `getOrderTicketSetting` and `setOrderTicketSetting` methods have been added to the [`IBrokerConnectionAdapterHost`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost) interface. These methods allow you to read and adjust Order Ticket settings. **Trading Platform Only**
- **Changed `const enum` to `enum` in the library type declarations.** This change allows you to import enums from the library in a TypeScript environment with the [`isolatedModules`](https://www.typescriptlang.org/tsconfig/#isolatedModules) option enabled, such as when using Vite or similar tools.
- **Added the `hideStudiesFromLegend` option to `ClientSnapshotOptions`.** When `hideStudiesFromLegend` is set to true, the legend within the generated screenshots won't contain any studies applied to the chart.
- **Exposed `connectionStatusUpdate` from `IBrokerConnectionAdapterHost`.** An existing [`connectionStatusUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#connectionstatusupdate) API has been exposed for [`IBrokerConnectionAdapterHost`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost) to help reflect connection status changes throughout the application lifecycle. **Trading Platform Only**
- **New keyboard shortcuts.** The following [shortcuts](https://charting-library-docs.xstaging.tv/latest/configuration/Shortcuts.md) were added:
  - _Shift_ + _Mouse wheel_  — scroll the chart horizontally
  - _Shift_ + _Alt_ + _B_ — place limit order to buy
  - _Shift_ + _Alt_ + _S_ — place limit order to sell
- **Enabled in-place editing for drawing texts.** For the following drawings, users can now add custom text and edit it on the chart:
  - _Fib Retracement_
  - _Trend-based Fib Extension_
  - _Horizontal_ and _Vertical Line_
  - _Trend Line_
  - _Info Line_
  - _Ray_
  - _Extended Line_
  - _Signpost_
  - _Note_
  - _Anchored Note_
  - _Comment_
  - _Rectangle_
  - _Ellipse_
  - _Circle_

  To enter the text, users should click the _+Add text_ placeholder that appears on hover.
- **Disabled color pickers in Chart settings.** If a certain price label or line is hidden on the chart, users cannot adjust the color of this label/line in the _Chart settings_ dialog.
- **Time zones.** Time zone updates:
  - Changed the Almaty (UTC+6) time zone to Astana (UTC+5).
  - Added the new Kuala Lumpur (UTC+8) time zone.
- **Visibility of price labels for risk-reward drawings.** Previously, price labels for the _Long position_ and _Short position_ drawings could be either hidden entirely or always displayed.
Now, if the price labels are disabled for a certain drawing, the labels will be displayed when the drawing is selected.
- **Accessibility improvement.** Users can now select the following elements in the _Legend_ when navigating with the keyboard.
  - The _More_ () button and items in the corresponding menu
  - The _Remove_ () button
- **Added new multiple-chart layouts combinations.** **Trading Platform Only**
- **New style settings for the note drawing.** Now:
  - The _Background_ and _Border_ settings are optional.
  - The default color of the drawing depends on the current chart [theme](https://charting-library-docs.xstaging.tv/latest/customization/theme.md).

**Bug Fixes**

- **Fixed the _Pivot Points Standard_ compatibility with Japanese chart types.** The _Pivot Points Standard_ indicator used to cause the _Assertion failed: data must have unique sorted times_ error when applied to chart types such as Line Break, Renko, Kagi, and Point-and-Figure under certain data conditions.
- **Workaround for corrupted chart layouts.** In rare cases, chart layouts can become corrupted and cause a _DEFAULT_SYMBOL is not defined_ error when loaded by the library. To work around this error, set [`symbol`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol) to be used as a fallback for any corrupted charts.
- **Fixed an issue where 0-volume data were not displayed in the Legend.** [#8662](https://github.com/tradingview/charting_library/issues/8662)
- **Fixed the time indicator.** The time indicator now correctly moves across the timeline in the [Market Status](https://charting-library-docs.xstaging.tv/latest/ui_elements/market-status.md) pop-up.
- **Fixed resizing for risk-reward tools.** The resizing of _Long position_ and _Short position_ drawings works correctly now. [#8513](https://github.com/tradingview/charting_library/issues/8513)
- **Fixed changing of drawing coordinates.** The setting dialog used to crash when users changed coordinates of drawings such as _Anchored Volume Profile_, _Fixed Range Volume Profile_, and _Regression Trend_.
- **Fixed the drawing settings bug.** Previously, when users clicked _Hide/Show_ on a drawing, the settings applied to this drawing would override the default ones. Now, changing drawing visibility does not affect the default settings. [#8434](https://github.com/tradingview/charting_library/issues/8434)
- **Fixed colors of the scale buttons.** The colors of the _A_ (auto) and _L_ (log) scale buttons match the chart background color now. [#8459](https://github.com/tradingview/charting_library/issues/8459)
- **Fixed bugs on the multiple-chart layout.** **Trading Platform Only** The following bugs were fixed:
  - The _Long/Short Position_ drawing used to cause errors if the drawing was hidden for a certain resolution and that resolution was currently displayed on the chart.
  - Synchronized _Path_ and _Polyline_ drawings were not displayed on larger resolutions if the first two points of the drawing were set at the same level on a smaller resolution.
  - The _Curve_ and _Double Curve_ drawings used to cause errors if a user moved the drawing before enabling layout synchronization.
  - Changing the Profit/Stop level of the synchronized _Long/Short Position_ drawing used to cause errors if the drawing was hidden for a certain resolution and that resolution was currently displayed on the chart.

**Documentation**

- **Updated types for overrides.** The following categories of overrides within the
[`ChartPropertiesOverrides`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartPropertiesOverrides)
have been added or updated:
  - Added types for the Step line chart style (`mainSeriesProperties.steplineStyle.*`).
  - Updated the types for `paneProperties.*`.
  - Added overrides that affect Trading Platform features (`tradingProperties.*`).
- **New articles.** Explore our latest articles:
  - [How to create a custom indicator](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/create-custom-indicator.md) — a step-by-step tutorial that demonstrates the Moving Average implementation.
  - [Custom indicators. Inputs](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo/Custom-Studies-Inputs.md) — an overview of how to specify and manage input parameters for a custom indicator.
  - [Authentication](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/authentication.md) — an article that outlines possible authentication approaches. **Trading Platform Only**

## Version 27.006

*Date: Tue May 21 2024*

**Bug Fixes**

- **Resolve quotes with ticker instead of symbol name.** The library will now request quote data using the [`ticker`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#ticker) property. If `ticker` is not provided in the `LibrarySymbolInfo` object, the `name` property will be used instead. This should resolve an issue some customers were experiencing where quote data was not being properly displayed in the [Watchlist](https://charting-library-docs.xstaging.tv/latest/trading_terminal/Watch-List.md) and [Legend](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md).

## Version 27.005

*Date: Tue May 07 2024*

**Improvements**

- **Update the anchored AVWAP drawing.** Add bands settings to the anchored VWAP drawing.
- **Subscribe to widget bar visibility events.** A new [`study_event`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SubscribeEventsMap#study_event) type was added: `widgetbar_visibility_changed`. It returns the visibility state of the widget bar.

**Bug Fixes**

- **Fixed a bug in the Market Status pop-up.** [Corrections](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/Extended-Sessions.md#corrections-for-extended-sessions) specified for the extended session in the [`session-correction`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySubsessionInfo#session-correction) properties were not displayed in the _Market Status_ pop-up window.

## Version 27.004

*Date: Wed Apr 17 2024*

**Breaking Changes**

- **Fixed time parameters in CrossHairMovedEventParams.** In version 26.001, we changed the `time` property of [`CrossHairMovedEventParams`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.CrossHairMovedEventParams) to be a timestamp in the selected time zone.
In this version, we reverted that change, and `time` represents a UTC timestamp again. Additionally, we introduced a new [`userTime`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.CrossHairMovedEventParams#usertime) property that represents a timestamp in the selected time zone.

**Improvements**

- **Added ability to disable pulse animation when chart type is set to Line.** New _disable_pulse_animation_ featureset allows users to disable the pulse animation when chart type is set to Line.

**Bug Fixes**

- **Fixed the price scale placement.** The [price scale](https://charting-library-docs.xstaging.tv/latest/ui_elements/Price-Scale.md) should be placed back to its original position when a change made through the _Settings_ dialog is canceled. Fixes [#4991](https://github.com/tradingview/charting_library/issues/4991)
- **Fixed the 52 Week High/Low indicator issue.** The 52 Week High/Low indicator no longer adds an empty space to the price scale when less than 52 weeks of historic bars are available. Fixes [#8137](https://github.com/tradingview/charting_library/issues/8137) [#8469](https://github.com/tradingview/charting_library/issues/8469)
- **Only calculate VWAP value when entire anchor period is loaded.** The VWAP indicator will only calculate values for the input anchor period if all bars in that period have been loaded.
- **Fixed a trailing stop modification dialog error.** Fixed a problem where opening the Order Ticket for a trailing stop position caused a "ReferenceError: isPositionLikeItem is not defined" error to be thrown.
- **Fixed the incorrect point position for the long position drawing.** The `getPositionPoints()` method will now return correct point positions. Fixes [#8230](https://github.com/tradingview/charting_library/issues/8230)
- **`BREAKING CHANGE` Position line price label does not use the correct price formatter.** The price scale will now correctly reflect the value when a formatter is used with [`createPositionLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline).
Both [`createOrderLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline) and [`createPositionLine`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline) methods behave similarly to the corresponding actions made in the UI via [Order Ticket](https://charting-library-docs.xstaging.tv/latest/trading_terminal/order-ticket.md).
Fixes [#8413](https://github.com/tradingview/charting_library/issues/8413) [#8324](https://github.com/tradingview/charting_library/issues/8324)

**Documentation**

- **New User accounts article.** Refer to [User accounts](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager/multiple-accounts.md) for information on how to manage user accounts in the [Account Manager](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md).
- **Session documentation updates.** The [Symbology](https://charting-library-docs.xstaging.tv/latest/connecting_data/Symbology.md#session) and [Extended sessions](https://charting-library-docs.xstaging.tv/latest/connecting_data/time-and-sessions/Extended-Sessions.md) articles now include more information on how to specify sessions and corrections for them.
- **New Save user settings article.** Refer to the [Save user settings](https://charting-library-docs.xstaging.tv/latest/saving_loading/user-settings.md) article for information on how to store user settings.
- **Updated Watchlist article.** Explore our latest [Watchlist](https://charting-library-docs.xstaging.tv/latest/trading_terminal/Watch-List.md) article that describes how to customize and handle the watchlist's data.

## Version 27.003

*Date: Thu Mar 14 2024*

**Improvements**

- **Added the resetLayoutSizes method.** Use [`resetLayoutSizes`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#resetlayoutsizes) to reset the sizes of all charts within a multiple-chart layout back to their initial default values. **Trading Platform Only**
- **Added the unloadUnusedCharts method.** The [`unloadUnusedCharts`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#unloadunusedcharts) method deletes non-visible charts from a multiple-chart layout. Use this method to
prevent the library's inherent behavior to restore previously displayed charts instead of creating new
charts when changing layouts. **Trading Platform Only**
- **Added a new type that reflects the ID of the created indicator.** A new [`study_event`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.SubscribeEventsMap#study_event) type was added: `create`. It returns the `id` of the newly created indicator.

**Bug Fixes**

- **Displaying volume indicator on chart load when visible_plots_set is not specified.** The chart will now correctly display the volume indicator if the `create_volume_indicator_by_default` featureset is enabled even if the symbols [LibrarySymbolInfo](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo) doesn't specify the optional [`visible_plots_set`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#visible_plots_set) property.
- **Prioritise widget constructor symbol over saved state.** The [`symbol`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol) property in the widget constructor will now have priority over symbols loaded from saved chart states when using [`saved_data`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#saved_data) or [`load_last_chart`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#load_last_chart). Fixes [#7922](https://github.com/tradingview/charting_library/issues/7922) [#8473](https://github.com/tradingview/charting_library/issues/8473) [#7926](https://github.com/tradingview/charting_library/issues/7926) [#8168](https://github.com/tradingview/charting_library/issues/8168)
- **Fixed an issue where the time_frames description was ignored.**

## Version 27.002

*Date: Thu Feb 22 2024*

**Improvements**

- **Add positive and negative filled areas to Spread.** The Spread indicator now has a positive and negative filled area above and below the baseline value of 0. The colors of the filled areas are green and red respectively.

**Bug Fixes**

- **Brush drawing_event is now raising a `create` event when starting drawing.**

**Documentation**

- **Improved drawing documentation.** Explore our latest articles about drawings.
  - New [Drawings API](https://charting-library-docs.xstaging.tv/latest/ui_elements/drawings/drawings-api.md) article describes how to manage drawings in the code.
  - Updated [Drawing Overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/Drawings-Overrides.md) article now includes more information on how to customize drawings.

## Version 27.001

*Date: Fri Feb 2 2024*

**Improvements**

- **Custom indicators can now dynamically hide indicator inputs in the legend when plots are hidden.** The `hideWhenPlotsHidden` option has been added for a custom indicator's input. It enables you to hide an input's value in the legend text when the user hides all of the specified plots.

**Bug Fixes**

- **Allow studies that extend the time scale to load historic bars before the leftmost bar of the main series.**

**Documentation**

- **New articles**
  - [Context menu](https://charting-library-docs.xstaging.tv/latest/ui_elements/context-menu.md)
  - [Orders](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/orders.md)
  - [Snapshots](https://charting-library-docs.xstaging.tv/latest/ui_elements/Snapshots.md)

## Version 27

*Date: Wed Jan 17 2024*

**Breaking Changes**

- **Custom study plot style text property moved.** The chars and shapes custom study plots `text` style property was moved from `metainfo.defaults.styles.[plot id].text` to `metainfo.styles.[plot id].text`. See this GitHub issue for more details [#8184](https://github.com/tradingview/charting_library/issues/8184)
- **Changed context menu behavior of the 'Plus' button and removed the 'show_context_menu_in_crosshair_if_only_one_item' featureset.** Now, the context menu of the *Plus* button opens even if the menu has only one item. Previously, the item's action was immediately executed if there was only one item in the context menu. Additionally, the `show_context_menu_in_crosshair_if_only_one_item` featureset has been removed.

**Breaking Changes: Trading Platform**

- **Changed parameter type in the showPositionDialog method.** The `position` parameter type of the [`showPositionDialog`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerCustomUI#showpositiondialog) method in the [`BrokerCustomUI`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerCustomUI) interface has been changed to `Position | IndividualPosition`.
- **Renamed flags in the BrokerConfigFlags interface.** The following flags have been renamed in the [`BrokerConfigFlags`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.BrokerConfigFlags) interface:
  - `supportTrades` flag has been renamed to `supportPositionNetting`;
  - `supportTradeBrackets` flag has been renamed to `supportIndividualPositionBrackets`;
  - `supportCloseTrade` flag has been renamed to `supportCloseIndividualPosition`;
  - `supportPartialCloseTrade` flag has been renamed to `supportPartialCloseIndividualPosition`;
  - `requiresFIFOCloseTrades` flag has been renamed to `requiresFIFOCloseIndividualPositions`.
- **Renamed TradeBase and Trade interfaces.** The `TradeBase` interface has been renamed to [`IndividualPositionBase`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IndividualPositionBase) and the `Trade` interface has been renamed to  [`IndividualPosition`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IndividualPosition) respectfully.
All fields and their types has been left unchanged.
- **Renamed tradeColumns field in the AccountManagerInfo interface.** The `tradesColumns` field in the [AccountManagerInfo](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.AccountManagerInfo) interface has been renamed to `individualPositionColumns`.
- **Renamed Trade member to IndividualPosition in the ParentType enum.** The `Trade` member of the [`ParentType`](https://charting-library-docs.xstaging.tv/latest/api/enums/Charting_Library.ParentType) enum has been renamed to `IndividualPosition`.
- **Renamed trade related methods in the IBrokerConnectionAdapterHost interface.** The following methods in the [`IBrokerConnectionAdapterHost`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost) have been changed:
  - the `tradeUpdate` method has been renamed to [`individualPositionUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#individualpositionupdate). The `trade` parameter of the method has been renamed to `individualPosition`. Also, the type of that parameter has been changed to `IndividualPosition`;
  - the `tradePartialUpdate` method has been renamed to [`individualPositionPartialUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#individualpositionpartialupdate). The type of the `changes` parameter has been changed to `Partial<IndividualPosition>`;
  - the `tradePLUpdate` method has been renamed to [`individualPositionPLUpdate`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#individualpositionplupdate);
  - the type of the `position` parameter of the [`showPositionBracketsDialog`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#showpositionbracketsdialog) method has been changed to `Position | IndividualPosition`.
- **Renamed methods in the IBrokerWithoutRealtime interface.** The following changes have been made in the [`IBrokerWithoutRealtime`](https://www.tradingview.com/charting-library-docs/v27/api/interfaces/Charting_Library.IBrokerWithoutRealtime.md) interface:
  - The `closeTrade` method has been renamed to `closeIndividualPosition`;
  - The `editTradeBrackets` method has been renamed to `editIndividualPositionBrackets`.
- **Renamed trade method in the IBrokerCommon interface.** The `trades` method in the [`IBrokerCommon`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerCommon) has been renamed to `individualPositions`. The return type of that method has been changed to `Promise<IndividualPosition[]>`.
- **Removed the Order Panel button from the right toolbar.** To open [_Advanced Order Ticket_](https://charting-library-docs.xstaging.tv/latest/trading_terminal.md#advanced-order-ticket), users should use the _Trade_ button in _Account Manager_ now.

**New Features**

- **Enabled in-place editing in Legend.** Users can change a symbol and resolution right from the [_Legend_](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md) now. [#7966](https://github.com/tradingview/charting_library/issues/7966)
- **Added Quick Search.** The _Quick Search_ dialog allows users to search for drawings, UI settings, and functions, such as _Remove Indicators_.
To open this dialog, users should click the _Quick Search_ button on the top toolbar or use the _Ctrl/Cmd_ + _K_ shortcut.
- **Added ability to show daily change in the chart legend.** New _Last day change values_ option allows users to show/hide the last day change values in the main series legend.
To make this option available in the _Chart Settings_ dialog, use the [`legend_last_day_change`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#legend_last_day_change) featureset. [#8193](https://github.com/tradingview/charting_library/issues/8193)
- **Updated drawing icons.** New icons for the _Text_, _Anchored Text_, _Note_, and _Anchored Note_ drawings. [#8181](https://github.com/tradingview/charting_library/issues/8181)

**Improvements**

- **`BREAKING CHANGE` Refactoring of the Ichimoku Cloud indicator.** Following feedback we've re-written the Ichimoku indicator and have brought the following changes:
  - 'Leading Span B' input is now 'Leading Span Periods'.
  - 'Lagging Span' input is now 'Lagging Span Periods'.
  - 'Leading Shift Periods' is a brand new input that aligns better to the original definition of the indicator.
  - Previously, 'Lagging span' was shifting both cloud and lagging lines. This should no longer apply as 'Leading Shift Periods' now handles the offset change for 'Lagging Span'.
- **`BREAKING CHANGE` Inputs renaming for Stochastic indicator.** Inputs for the Stochastic indicator have been renamed for consistency across our products.
- **`BREAKING CHANGE` Broker API clean up.** **Trading Platform Only** The `positionDialogOptions` object has been removed from the Broker's Configuration. Please use the `getPositionDialogOptions` method to customize the Position dialog.
- **Added new keyboard navigation shortcut.** Starting from version [26.002](https://charting-library-docs.xstaging.tv/latest/releases/release-notes.md#version-26002), the library supports a keyboard navigation activated via the _Alt/Opt_ + _Z_ shortcut. Now, you can change this default navigation shortcut to _Tab_. To do this, enable the new  [`accessible_keyboard_shortcuts`](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#accessible_keyboard_shortcuts) featureset. For more information, refer to [Keyboard navigation](https://charting-library-docs.xstaging.tv/latest/configuration/accessibility.md#keyboard-navigation).
- **Added ability to cancel order dragging by pressing Esc.** If a user presses _Esc_ while dragging the order, the order will be returned to its initial position.

**Bug Fixes**

- **Market status text during pre-market and post-market sessions.** The countdown text in the market status pop-up tooltip (in the legend area) has been fixed for pre-market and post-market sessions. The market status icon now shows an orange sunrise icon for pre-market and a blue moon icon for post-market.
- **Floating drawing toolbar context menu.** It wasn't possibly to override the context menu for the floating drawing toolbar.
- **Missing translation for No data here.** No data here message that is displayed on the chart whenever no bars are returned for a given symbol was missing its translation.
- **Disabling the 'open_account_manager' featureset now works as expected.** **Trading Platform Only**
- **Order Panel Custom Input Fields Reactivity.** **Trading Platform Only** The reactivity of UI elements within the order panel when using custom fields has been improved (Fixes [#6607](https://github.com/tradingview/charting_library/issues/6607)).
- **Fixed the pane buttons on the collapsed pane.** The pane buttons used to overlap the _Scroll to the Most Recent Bar_ button when the pane is collapsed. [#8213](https://github.com/tradingview/charting_library/issues/8213)
- **The precision setting can be applied to all charts now.** To do this, users should specify precision in the _Chart settings_ dialog and click the _Apply to all_ button. [#8343](https://github.com/tradingview/charting_library/issues/8343) **Trading Platform Only**
- **Fix the color of high/low price label.** Now, the color of high/low labels on the price scale corresponds to the color of the high/low lines. Users can specify this color in the _Chart settings_ dialog. [#8255](https://github.com/tradingview/charting_library/issues/8255)

**Documentation**

- **Chart customization precedence article added.** The library offers multiple approaches for changing the chart appearance and behavior.
Explore our latest article on [customization precedence](https://charting-library-docs.xstaging.tv/latest/customization/customization-precedence.md)
for a comprehensive understanding of customization methods/properties and the sequence in which they are applied.
- **Order Ticket dialog article added.** Refer to [Order Ticket](https://charting-library-docs.xstaging.tv/latest/trading_terminal/order-ticket.md) to learn how to provide custom fields, enable an order preview, implement your custom Order Ticket, and more.
- **New how-to guide on metainfo.** Explore our latest [guide](https://charting-library-docs.xstaging.tv/latest/tutorials/how-to-guides/create-custom-indicator/metainfo-implementation.md) on how to implement the `metainfo` field when you create a custom indicator. For more information about custom indicators and `metainfo`, refer to the updated [Custom indicators](https://charting-library-docs.xstaging.tv/latest/custom_studies.md) and [Metainfo](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo.md) articles.
- **Bracket orders article added.** Explore our latest article on [bracket orders](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts/brackets.md) in Trading Platform.
- **Account Manager article added.** Refer to [Account Manager](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md) for more information on creating pages, customizing columns, and configuring the Account Manager behavior.
- **Accessibility article added.** Refer to the new [Accessibility](https://charting-library-docs.xstaging.tv/latest/configuration/accessibility.md) article for information about accessibility features that the library includes.
- **Other documentation updates.** The new documentation version includes:
  - Updated [Resolution](https://charting-library-docs.xstaging.tv/latest/ui_elements/Resolution.md) and [Price Scale](https://charting-library-docs.xstaging.tv/latest/ui_elements/Price-Scale.md) articles.
  - A full list of overrides for built-in indicators. Refer to the [Indicator Overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/indicator-overrides.md#list-of-overrides) article for information.

**Other**

- **`BREAKING CHANGE` Deprecated customFormatters and brokerFactory.** Use [`custom_formatters`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_formatters)
and [`broker_factory`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#broker_factory) instead.
- **`BREAKING CHANGE` Deprecated RawStudyMetaInfo.precision.** Use the [`format`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.RawStudyMetaInfo#format) property instead. For more information, refer to the [Metainfo](https://charting-library-docs.xstaging.tv/latest/custom_studies/metainfo.md) article.

## Version 26.004

*Date: Thu Nov 16 2023*

**New Features**

- **Add methods to handle trading quantity.** The broker API now exposes a getter [getQty](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#getqty) and a setter [setQty](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#setqty) along with a subscription [subscribeSuggestedQtyChange](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#subscribesuggestedqtychange) and its dependant to unsubscribe [unsubscribeSuggestedQtyChange](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#unsubscribesuggestedqtychange).

**Improvements**

- **Added anchor option to VWAP indicator.** The VWAP indicator now has input options for source and anchor.
  - Source allows customisation of the price source for the indicator. Defaults to `hlc3`.
  - Anchor period setting specifies how frequently the VWAP calculation will be reset. This  Defaults to `'Session'`.

**Bug Fixes**

- **VWAP Indicator behaviour.** The default behaviour for the VWAP indicator has been fixed. Previously it would anchor to the earliest available data point instead of the start of each session.
- **Displaying DOM widget data on non-tradable symbols.** **Trading Platform Only** When a symbol is non-tradable (`isTradable()` in the Broker API is returning `false`) it is now possible to display depth data in the DOM widget provided via the datafeed.
- **The price source text is visible in the screenshot.**
- **Fix display of price sources in Overlay study.** Price sources for symbols in the Overlay study were not being shown when the main series symbol did not have the same price source
- **Both Trend Strength Index and Linear Regression Slope indicators were missing their zero-based property to properly plot them using a histogram.**
- **onChartReady inconsistency on Safari.** Fixed an issue where `onChartReady` wouldn't reliably get called on specific versions of Safari.

**Documentation**

- **New article on core trading concepts.** We have added a new article describing [trading concepts](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts.md) in Trading Platform.
Learn how to integrate trading functionality into your application using the Broker API and Trading Host.

## Version 26.003

*Date: Thu Oct 05 2023*

**Bug Fixes**

- **Do not save to localstorage when the use_localstorage_for_settings feature is disabled.** Fixed a bug where use_localstorage_for_settings did not stop some settings from being saved to localstorage.
- **Disabling `drawing_templates` completely removes the ability to save it when using line tools.**
- **Renaming a section within watchlist was throwing an error.**
- **Fixed an issue where it wasn't possible to set the background colour of a Renko bar to transparent.**

## Version 26.002

*Date: Mon Sep 18 2023*

**Improvements**

- **IOrderLineAdapter and IPositionLineAdapter now support positioning with pixel units.** The
[setLineLength](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IOrderLineAdapter#setlinelength)
method in the IOrderLineAdapter (returned by
[createOrderLine](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline))
and IPositionLineAdapter
([createPositionLine](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline))
interfaces now support setting the unit to `'pixel'`.
  - Additionally, when using pixel unit, you can specify a negative number to
  position from the left edge of the chart instead.
- **Added keyboard navigation.** Keyboard navigation (activated via alt/opt + z keyboard shortcut) and many other accessibility improvements have been added to the library.
  - A featureset `accessibility` (on by default) has been added to control this behaviour.
- **Menu name is provided to items_processor (context menu API).** [items_processor](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ContextMenuOptions#items_processor) within the [context_menu](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#context_menu) API now includes details about the name of menu, and the ids of the related item (such as the series, drawing, study, order, or position).
- **Support more kinds of extended sessions.** The library now supports specifying only one of the postmarket or premarket sessions without the other.

**Bug Fixes**

- **On mobile devices, fixed an issue for when scrolling the pricescale with one finger while another one was holding the crosshair.**
- **Fixed an issue where it wasn't possible to set the background colour of a candle to transparent.**
- **52 Week High/Low indicator compatibility with empty supported_resolutions array.** Fixes [#7884](https://github.com/tradingview/charting_library/issues/7884) issue.
- **Fixed an issue where any added indicator on the chart couldn't be undone.**
- **Fixed issue with locking visible time range while resizing chart.** When resizing the chart window with percentage right margin, and the `lock_visible_time_range_on_resize` featureset enabled then the visible range wasn't locked correctly.
- **SuperTrend Indicator Starting Point.** The SuperTrend would previously start drawing from zero for the first bar, instead of only drawing the indicator after the initial length (defined in the indicator's inputs) when all the possible data for a symbol has been loaded.
- **Changing the LineStyle for a position is again available.**
- **Styles tab for Pivot Point Standard indicator.** Resolved an issue where the style tab for the Pivot Point Standard indicator would not function correctly when the type option was set to 'Floor'.

**Other**

- **Custom Translation Function.** The following changes have been made to the [custom_translate_function](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_translate_function)
  - The interface name for the options has changed from `TranslateOptions` to `CustomTranslateOptions`.
  - The `plural` field in `CustomTranslateOptions` can now be either a single string, or an array of strings.
  - A third boolean argument is now provided. When this is true then the key provided is already translated.

## Version 26.001

*Date: Tue Aug 08 2023*

**New Features**

- **Add series and study values to crosshair move event.** The [`crossHairMoved` subscription](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#crosshairmoved) now exposes the study and series values in the event object. The values are the same as the values shown in the data window.
- **Adding a new Floor type for calculating Pivot.**
- **Add the onHoveredSourceChanged method to the widget API.** See [`onHoveredSourceChanged`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#onhoveredsourcechanged).

**Improvements**

- **Added optional variable_tick_size property to symbol info.**
- **Added onMoving to the Order Line Adapter.** [onMoving](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IOrderLineAdapter#onmoving)

**Bug Fixes**

- **Selecting an incorrect symbol within a study no longer prevents the study from recovering when a valid symbol is chosen later.**
- **Fix drawing tools not affecting undo/redo stack and chart layout saving buttons.** Drawing actions can now be undone/redone and will affect the saving of the chart layout
- **Disabling the 'open_account_manager' featureset now works as expected.**

**Other**

- **Watchlist sections featureset added for adjusting the visibility of the 'Add Section' button.** The UI for creating watchlist sections can now be hidden by disabling the [watchlist_sections](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#watchlist_sections) featureset.

## Version 26

*Date: Tue Jul 18 2023*

**Breaking Changes**

- **Remove Lines item and submenu from background and symbol context menu.** The "lines" item has been removed from the context menu of the chart and the legend of the main series.

**New Features**

- **In bottom toolbar, tooltip text for date ranges has changed.** Hovering over the time frame buttons will provide more details to understand how chart is constructed.
- **Add setting for visibility of A (auto) and L (log) scale buttons.** In Chart settings, Scale tab, a new setting has been introduced to enable shortcuts for Auto & Logarithmic modes.
- **Bug in compare data displayed in data window.** There was an issue where OHLC values would only be displayed in the data window widget when using the cross hair selection instead of displaying the data from the latest available bar if nothing was selected. Fixes [#7769](https://github.com/tradingview/charting_library/issues/7769)
- **Update chart maximization icon and remove animation.** Maximization button restyled
- **Price scale resizing while scrolling chart in mobile browser.** When scrolling into history the price scale expands to accommodate the values, but doesn't retract when the values become shorter. This is done to make the scale less twitchy during scrolling. The scale's width is reset on data loading.

**Improvements**

- **Fixed a bug where on some DPR there was no separator between the right widget panel and the order panel.** Now the separator line is always visible.
- **No bracket settings in chart settings.** Bracket settings were added to the Chart settings in the Trading tab.
- **Symbol logos within the Legend and Account Manager.** Symbol logos can now be displayed within the [Legend](https://charting-library-docs.xstaging.tv/latest/ui_elements/Legend.md#symbol-logos) and the Account Manager panel (**Trading Platform Only**) if the `show_symbol_logos` featureset is enabled.
  - `show_symbol_logo_in_legend` featureset can be disabled to hide the logos within the legend.
  - `show_symbol_logo_for_compare_studies` featureset can be disabled to hide the logos within the legend for compare overlay studies.
  - `show_symbol_logo_in_account_manager` featureset can be disabled to hide the logos within the Account Manager panel (**Trading Platform Only**).
- **Added setter and getter methods for CSS custom properties defined within the iframe.** The widget API now includes [setCSSCustomProperty](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#setcsscustomproperty) and [getCSSCustomPropertyValue](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#getcsscustompropertyvalue) methods for controlling CSS custom properties within the chart's iframe element.

**Other**

- **Deprecated properties and methods.** The following properties and methods are marked as deprecated and will be removed in the next major release:
  - `customFormatters` in the [ChartingLibraryWidgetOptions](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions) interface. Use [`custom_formatters`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_formatters) instead.
  - `customFormatters` and `brokerFactory` in the [TradingTerminalWidgetOptions](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions) interface. Use [`custom_formatters`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#custom_formatters) and [`broker_factory`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#broker_factory) instead.

## Version 25.002

*Date: Wed Jul 12 2023*

**New Features**

- **Add 52 Week High/Low study.**
- **Enable hiding price scales when all studies or series are hidden.** Adds the `hide_price_scale_if_all_sources_hidden` feature. When enabled price scales will be hidden when all studies (or the main series) attached to the price scale are hidden.
- **Option to always show legend values for studies on mobile.** By default, when on mobile, the legend won't display any values for studies.
Enabling this new `always_show_legend_values_on_mobile` featureset allows you to display the values.

**Improvements**

- **Sections can now be added within the Watchlist.** Sections dividers can now be added within the watchlist (**Trading Platform Only**).
  - Any item within a list which is prefixed with `###` will be considered a section divider. [API Reference](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#watchlist)
- **Symbol and exchange logos can now be shown within the Compare Dialog.** The [symbol info](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo) provided by [resolveSymbol](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/required-methods.md#resolvesymbol) should now include 'exchange_logo' if you would like to use the 'show_exchange_logos' featureset.

**Bug Fixes**

- **Watermark API's content provider is now used for all charts within a multi-chart layout.**
- **Fixed issue with resetData.** When resetting the data for a chart, any existing studies would become unlinked from the data source. Fixes [#7802](https://github.com/tradingview/charting_library/issues/7802)
  - The `request_only_visible_range_on_reset` featureset now defaults to `disabled`.

## Version 25.001

*Date: Mon Jun 26 2023*

**Breaking Changes**

- **price_sources moved to symbol info.** To allow price sources resolved on-demand with the associated symbol the `price_sources` property has been removed from [the datafeed configuration object](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.DatafeedConfiguration) and added to the [symbol info object](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo).

**New Features**

- **Added Market status state getter.** [marketStatus](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#marketstatus) method is provided within [IChartWidgetApi](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi) which returns a watched value of the charts symbols current [market status](https://charting-library-docs.xstaging.tv/latest/api/enums/Charting_Library.MarketStatus).
- **Symbol and exchange logos.** It is now possible to specify logo images for symbols and exchanges. These will be visible within the search dialog, and watchlist (Trading Platform). The `show_symbol_logos` and `show_exchange_logos` featuresets should be enabled, and your datafeed should be updated to provide urls as part of the symbol info supplied by the `resolveSymbol` method, and results supplied by the `searchSymbols` method.
- **Enable custom studies to extend the time scale.** Enable custom studies to extend the time scale with points that don't exist in the main series.
  - [See this article for more info](https://charting-library-docs.xstaging.tv/latest/custom_studies/Studies-Extending-The-Time-Scale.md)
- **Added Custom Symbol Status API.** The new [Custom Symbol Status API](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ICustomSymbolStatusApi) enables the creation and customisation of an additional status to be displayed for the symbol within the legend area.
  - The Custom Symbol Status API can be accessed via the [`customSymbolStatus`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#customsymbolstatus) method on the chart widget.
  - An example is provided on the [Symbol Status](https://charting-library-docs.xstaging.tv/latest/ui_elements/market-status.md) page.
- **Featureset added for clearing the price scale on errors.** Added new `clear_price_scale_on_error_or_empty_bars` featureset to automatically clear pane price scales when the main series has an error or has no bars.
- **Adding anchored VWAP in trend tools.** A new trend tool has been added to the already long list: anchored VWAP.

**Improvements**

- **Added Watermark API.** The new [Watermark API](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWatermarkApi) enables the customisation of the watermark text in addition to providing [WatchedValues](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWatchedValue) for the color and visibility properties.
  - The Watermark API can be accessed via the [`watermark`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#watermark) method on the chart widget.
- **Updated broker API sample to support bracket orders.** The sample broker API has been updated to support brackets (stop loss, and take profit) orders. **Trading Platform Only**
- **Drawings in saved charts now restore with the saved settings for lock and disableSelection.** The `lock` and `disableSelection` settings for a created shape will now be saved and restored correctly. [#6761](https://github.com/tradingview/charting_library/issues/6761)
- **Fullscreen button can now be used to exit fullscreen mode as well.** When using the `header_in_fullscreen_mode` featureset, it is now possible to use the fullscreen button to exit fullscreen mode.
- **Added method to programmatically set the time frame for the active chart.** The [setTimeFrame](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#settimeframe) method has been added to the widget which can set the time frame in a similar manner to the [Timeframes at the bottom of the chart](https://charting-library-docs.xstaging.tv/latest/ui_elements/Time-Scale.md) buttons.
- **Renaming precision dropdown values in Chart settings.** To limit confusion when dealing with the Chart settings/Precision dropdown values, some fractional ones have been renamed to more readable ones.
- **Changing Source option in line-break & renko chart.** In Trading Platform, it was unnecessary to offer the option to change the source of data for both Renko and Line Break, as the data is taken from the close value.

**Bug Fixes**

- **Timescale marks will adjust correctly when widget theme is changed.**
- **onAutoSaveNeeded event emitted when removing all drawings via toolbar button.**
- **removeChart within the save load adapter will await the promise before updating the UI.**
- **First getBars request after resetting data no longer has a countback of zero.**
- **Market status pop up text could sometimes display Infinity or NaN values and not update on the dot.**
- **Fix custom field validators.** Fixes a bug where custom broker field validator functions were not called if provided.
- **Fixed rendering on price and time axes when a trend angle line drawing is selected.**

**Other**

- **Changed validation warning message within the close position UI.** Message changed from 'Specified value is more than the instrument maximum' to 'The amount entered exceeds the position size'.
- **Corrected the strings for the ThemeName type definition.** The possible values should have been lowercase: 'dark' & 'light'.
- **Moved Session breaks from Events to Appearance tab in chart options.** This reverts a breaking change made in `v25.0`.
- **Adding snippets for Trading Platform datafeed methods.** Some functions were lacking an out of the box snippet to use within their application.

## Version 25

*Date: Mon May 22 2023*

**Breaking Changes**

- **Save and Load Chart Templates.** Add methods to the [save/load adapter](https://charting-library-docs.xstaging.tv/latest/saving_loading.md) to support chart templates.
- **Renew design for send order and buy sell buttons.** Renew design for send order and buy sell buttons:
  - Buttons are now rounded
  - Selected item and underline are now black
- **New TV logo.** What is changing:
  - Changing the size, boldness of the text
  - Indentation of the logo from the borders of the chart
- **One row for grid lines settings.** The grid lines settings have been combined into one row.
- **Remove magnet icon near cursor - Reverting feature.** Following reviews this piece of work was reverted.
- **Update the library branding.** Branding font and position is slightly changed.
- **Do not load Euclid font for the branding logo on chart.** The Euclid font will not load if there is an animated logo on the chart.
- **When the chart data is reset, the new request for data will only be for the visible range.** The previous behavior was that when [resetData](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#resetdata) was evoked, that the datafeed would be requested to provide data for the entire range of data already loaded for that symbol. The new behavior is that the request is now only for the current visible range. This more closely matches the behavior of the first load. If you require the old behavior then you can disable the `request_only_visible_range_on_reset` featureset.
- **Remove timezone & session breaks section from scale gear menu.** Time zone and Session breaks section has been removed from gear menu.
- **Update chart types icons.** Changed icons for Line, Area and Baseline chart types.
- **Move Session breaks from Appearance to Events tab.** Session breaks setting is moved to events tab.
- **Changed the gear icon.** Changed the icon for price scale settings button ('gear' in bottom-right corner).
- **Chart navigation buttons.** Navigation buttons at the bottom of the chart have a slightly new design.

**New Features**

- **Adding a new chart type HLC Area.** HLC Area is a new chart type available.
- **Handle variable-tick-size.** Added support for variable tick size.
- **Add new stats position for info line drawing "auto".** Option of automatic positioning of information block for infoline drawings was added "auto" (in addition to existing left, center, right).
- **Add new checkboxes for price range in info line drawing box.** Added 2 settings in linetools context menu:
  - Percent change
  - Change in pips
- **Add ability to move anchors continuously - not by bars.** Smooth resizing of icons, stickers and emojis was implemented.
- **Correct Chart settings text Price scale labels.** "LABELS" group in "Scales" tab of Chart settings has been renamed to "LABELS ON PRICE SCALE".
- **Show + button on cursor by hotkey.** Added hotkeys Alt+Ctrl (win) or Opt+Command (mac) for the appearance of the plus button under the cursor.
- **Add data window item to context/legend three dots menu.** Added new item to context/legend three dots menu - "data window..." with a shortcut. Opens data window in the right panel.
- **Add Volume profile indicators on the top of chart series.** Changed the default z-order for Volume Profile indicators and VP drawings. They are now located above the main series.
- **Added new time zone Anchorage Alaska.** Added new time zone Anchorage Alaska (UTC-9).
- **Separate chart types Line with markers and Stepline.** Step line and Line with markers types are added to the top toolbar chart types menu.
- **Added new time zone Casablanca.** Timezone Casablanca (UTC) has been added.
- **Try to load line tools code dynamically.** Fixed floating toolbar for price note to show color and text settings like for other drawings.
- **Add sticker drawing tool.** Add the ability to use stickers with `createMultipointShape` or `selectLineTool`.
- **Add Accelerator Oscillator indicator.**

**Improvements**

- **Theming support for pop-up menus.** Additional CSS custom properties have been added for styling pop-up menus. Pop-up (as known as 'pop-over') menus include toolbar menus, and context menus. See the full list of CSS custom properties in the [CSS Color Themes](https://charting-library-docs.xstaging.tv/latest/customization/styles/CSS-Color-Themes.md) article.
- **Add date and time input UI for custom studies.** [Custom studies](https://charting-library-docs.xstaging.tv/latest/custom_studies.md) now support defining inputs of the `'time'` type and having a GUI element (date and time pickers) in the indicators settings dialog window.
- **setActiveChart added to the Widget API.** The currently active chart in a multi-chart layout (available on Trading Platform only) can now be changed using the `setActiveChart` method. [more info](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#setactivechart)

**Bug Fixes**

- **Include missing PriceAxisLastValueMode and LineStyle enums in type documentation.**

**Documentation**

- **The Overrides article update.** We have updated the [Overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides.md) article. Now it contains general information about the Overrides API. For information on how to customize elements on the chart, refer to a new [Chart Overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/chart-overrides.md) article.

## Version 24.004

*Date: Mon Apr 24 2023*

**New Features**

- **Indicators can now be favorited.** Indicators can now be favorited by tapping on the star icon to the left of the
indicator name. Favorited indicators will appear at the top of the indicator
list.
  - The `items_favoriting` featureset should be enabled. [more info](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md)
- **Adding two featuresets to hide the right_toolbar or its tabs.** There are 2 new featuresets `hide_right_toolbar` & `hide_right_toolbar_tabs` plus an additional WidgetBar API [changeWidgetBarVisibility](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IWidgetbarApi#changewidgetbarvisibility) to control the right toolbar.
  - `hide_right_toolbar` allows you to instantiate the toolbar without showing it in the UI.
  - `hide_right_toolbar_tabs` will do the same with the exception of not showing tabs when displaying the right toolbar.

**Improvements**

- **Added a middle band for the RSI indicator.** Unlike on tradingview.com RSI was not presenting the option to plot a middle limit.
- **Indicators favorites can now be defined within widget constructor.** Indicators can now be defined as favorites using the [`favorites`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#favorites) property of the widget constructor options. See [Favorites.indicators](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Favorites#indicators) for more information.
- **Add a way to independently clear bar marks/timescale marks.** [`clearMarks`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#clearmarks) method has been enhanced to pass in an option to choose which marks should be cleared on the chart.
  - By default behaviour will remain similar and both bar & TimeScale marks will be removed.
  - Passing `ClearMarksMode.BarMarks` will only remove bar marks.
  - Passing `ClearMarksMode.TimeScaleMarks` will only remove TimeScale marks.
- **`BREAKING CHANGE` Discrepancy in chart style/type methods.** Only TypeScript breaking change as an interface has been renamed to better reflect its purpose.
`SeriesStyle` is now [SeriesType](https://charting-library-docs.xstaging.tv/latest/api/enums/Charting_Library.SeriesType).

**Bug Fixes**

- **load_study_template event is not emitted.** load_study_template event was not emitted when applying a template on the chart.
- **Fixed autosize bug occurring on Chrome iOS when rotating the device.** Workaround fix for a browser bug until Chrome resolves the issue on their side.
- **Fixed the type definitions for a few of the PineJS Std library functions.** [PineJSStd documentation](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.PineJSStd).

**Documentation**

- **New Key Features article.** We have added the [Key Features](https://charting-library-docs.xstaging.tv/latest/introduction.md) article that lists features supported/unsupported in Advanced Charts and Trading Platform.
- **How to connect data via Datafeed API.** We have added a new [tutorial on connecting data via Datafeed API](https://charting-library-docs.xstaging.tv/latest/tutorials/tutorials/implement_datafeed_tutorial.md).
It will help you implement datafeed and real-time data streaming to the library step-by-step.

**Other**

- **Incorrect watermark property key.** Deprecated `symbolWatermarkProperties` property has now been removed.
Please use [settings_adapter](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#settings_adapter) with `symbolWatermark` key instead or `applyOverrides` to change values.

## Version 24.003

*Date: Tue Apr 11 2023*

**New Features**

- **Images within bar marks.** Bar marks now support the rendering of images as the background by specifying the `imageUrl` property. Please see the [Mark](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Mark) interface for more details.
- **Price Source and Long Description symbol info fields.** Add support for displaying the price source and long description fields from the symbol info.
  - To enable the price source first add `symbol_info_price_source` to the list of enabled features. Then it will be shown in the legend, if available. It can be hidden through the legend context menu and the series property dialog.
  - To enable the long description first add `symbol_info_long_description` to the list of enabled features. Then it will be shown in the legend, if available. It can be hidden through the legend context menu and the series property dialog.

**Improvements**

- **Added more styling options for bar marks.** The styling options for bar marks has been expanded to include options for styling the border.
  - Border color can be set using the `border` property within `color` of the Mark interface. See [MarkCustomColor](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.MarkCustomColor)
  - Border width can be set using `borderWidth` and `hoveredBorderWidth`. See [Mark](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Mark)
- **Drawing tools favorites can now be defined within widget constructor.** Drawing tools can now be defined as favorites using the [`favorites`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#favorites) property of the widget constructor options. See [Favorites.drawingTools](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.Favorites#drawingtools) for more information.
- **Context menu API can now be used within the Watchlist.** `watchlist_context_menu` featureset is enabled by default. See [onContextMenu](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#oncontextmenu) for more details.
- **Improved typings within package.json.** The `package.json` bundled with the library has been improved to support newer versions of node, and offer improved typings.
- **Price scale now supports numbers with more than 10 decimal points.**
- **Timezone data has been updated.**

**Bug Fixes**

- **Chart type won't change when restoring default options.** The chart type will no longer change when restoring the default options within the chart settings dialog.
- **Last visible bar value in legend for overlay studies.** When `use_last_visible_bar_value_in_legend` featureset is enabled, overlay studies will display the value for the last visible item on the chart. This now matches the behavior for the main series.
- **Fixed zoom behavior for percentage right margin option.** Incorrect zooming behavior has been fixed for zoom buttons appearing on the chart, and the keyboard shortcuts. See `show_percent_option_for_right_margin` [featureset](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md) for more information.

**Documentation**

- **Add FAQ about unsubscribeBars delay.** Added [a new FAQ](https://charting-library-docs.xstaging.tv/latest/resources/Frequently-Asked-Questions.md) about [`unsubscribeBars`](https://charting-library-docs.xstaging.tv/latest/connecting_data/datafeed-api/required-methods.md#unsubscribebars) being called with a delay.

**Other**

- **Added symbol information to datafeed error messages.** Added symbol information to realtime subscription error messages to improve the developer experience.
- **Updated localisation list.** The [list of support localisations](https://charting-library-docs.xstaging.tv/latest/configuration/Localization.md) has been updated. Additionally, the chart will now fallback to english (with a console warning) if an unsupported locale is specified in the widget constructor options.

## Version 24.002

**New Features**

- **Added support for specifying custom timezones.**
  - Additional custom timezones can now be specified for use within the library. Please see the [Adding Custom Timezones](https://charting-library-docs.xstaging.tv/latest/ui_elements/timezones.md#custom-time-zones) section within the Timezones page.
- **Images within timescale marks.**
  - Timescale marks now support the rendering of images within the circular shape by specifying the `imageUrl` property. Please see the [TimescaleMark](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TimescaleMark) interface for more details.
- **Support different margin rates for different order types.** [6607](https://github.com/tradingview/charting_library/issues/6607)
  - `marginRate` has been deprecated
  - A [`supportLeverageButton`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.BrokerConfigFlags#supportleveragebutton) flag that displays a leverage button has been added to the Broker configuration.
  - The [`supportLeverage`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.BrokerConfigFlags#supportleverage) flag enables leverage calculation by getting information from `leverageInfo`.

**Enhancements**

- Add horizontal line at 0 for Momentum study.

**Bug fixes**

- [`setUserEditEnabled`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IStudyApi#setusereditenabled) does not hide 3 dots in Legend. [6765](https://github.com/tradingview/charting_library/issues/6765) | [6165](https://github.com/tradingview/charting_library/issues/6165)

      widget.activeChart().getAllStudies().forEach((\{ id }) => \{
        console.log(id);
        tvWidget.activeChart().getStudyById(id).setUserEditEnabled(false);
      });

  - setUserEditEnabled(false) should mask all icons except the "eye".
  - setUserEditEnabled(true) should restore all the icons.
- `priceFormatter` could previously only be used for main series. `priceFormatter` now applies to secondary series as well.
- `right_toolbar` featureset didn't have a default `on` value.
- Empty time frames at the bottom toolbar if `data_status: endofday`
- Export data doesn’t include projected data.
  - Projected data can be included by setting [`includeOffsetStudyValues`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ExportDataOptions#includeoffsetstudyvalues) to `true`.
  - `await widget.activeChart().exportData({ includeOffsetStudyValues: true });`
- Highest PineJS.Std function doesn’t work correctly with negative numbers.
- Missing types in bundled definition file. [7445](https://github.com/tradingview/charting_library/issues/7445) | [7446](https://github.com/tradingview/charting_library/issues/7446)
- Exposing `icon` prop in `CreateShapeOptionsBase`. [6723](https://github.com/tradingview/charting_library/issues/6723)
- Wrong extended session background color [7443](https://github.com/tradingview/charting_library/issues/7443)

**Documentation**

- Added [migration guide](https://charting-library-docs.xstaging.tv/latest/trading_terminal.md#how-to-migrate-from-advanced-charts) from Advanced Charts to Trading Platform.
- Added additional documentation for [Drawings](https://charting-library-docs.xstaging.tv/latest/ui_elements/drawings.md).
- Missing overrides in documentation. [7457](https://github.com/tradingview/charting_library/issues/7457)
- Updated documentation for [Marks](https://charting-library-docs.xstaging.tv/latest/ui_elements/Marks.md).
- Align ChartMetaInfo & ChartData.

**Other**

- Removed `Australia/ACT` from the list of [timezones](https://charting-library-docs.xstaging.tv/latest/ui_elements/timezones.md) within our documentation. Please use either the Sydney timezone or [specify your own custom timezone](https://charting-library-docs.xstaging.tv/latest/ui_elements/timezones.md#custom-time-zones).

## Version 24.001

**New Features**

- **Adding originalText as an additional field to UndoRedoState.** Event should mention the name of the action in plain English in addition to also being translated to the corresponding language. [UndoRedoState](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.UndoRedoState#originalundotext)
- **Add the ability to change X-Axis margin % from Chart Properties.** A new [featureset](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md) has been added `show_percent_option_for_right_margin` that adds additional percentage option to the right margin section of the chart settings dialog.
- **Display rightmost visible value when in percent mode.** A new [featureset](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md) has been added `use_last_visible_bar_value_in_legend` to show the most recent “global” bar value. When this feature is enabled the rightmost bar in the visible range is used instead.
- **Ability to change on the fly the Currency and Unit label setting.** [currencyAndUnitVisibility API](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#currencyandunitvisibility)
- **Add simple SSR support.** Allow the library to be imported within a NodeJS context. This improves support for frameworks such as Remix.
- **Added [`clearUndoHistory`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#clearundohistory).**

**Improvements**

- **Name to be used instead of ticker.** Allow a human friendly name to be returned from [`symbol_search_complete`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol_search_complete).

**Bug Fixes**

- **Incomplete indicators when using Heikin-Ashi.** Indicator line should draw to all the visible data points.
- **Compare study doesn’t save and restore ticker name correctly.** The compare study should work for custom ticker names just like it does for ticker names which match our format (with the colon).
- **VPFR: Right point is automatically moving when dragging start point.** When drawing the VPFR, or moving one of the anchor points, it is expected that the right anchor point should not move one bar further to the right.
- **Selecting Apply Defaults option within chart settings doesn’t work.** Some Settings even if not validated are not restored to their original values when Apply Defaults is selected.
- **Decentralised app browser loading error.** Chart fails to load in wallet apps like MetaMask, Trust & Phantom. Enable the `iframe_loading_compatibility_mode` [featureset](https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md) to enable compatibility with these browsers.
- **When disabled, widget bar still present a significant margin.** Even when there aren't any pages or widget in the right toolbar and IF right_toolbar is disabled, contrary to the drawing toolbar that vanishes the widget bar stays there with the pill button to expand it whereas there isn't anything to expand.
- **Can’t enable header_compare feature without header_symbol_search.**
  - Disabling header_symbol_search should only hide the search button
  - Disabling header_compare should only hide the compare button
- **Removed section of PostCSS syntax in bundled css files.**

**Other**

- **New Documentation site.** 🎉
- **Add `shape` to TimeScale.** Shape property is described in [TimescaleMark interface](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TimescaleMark#shape).
- **Remove magnet icon near cursor.**

## Version 24

- `preset` Widget-Constructor parameter has been removed. Users can still use some featuresets to mimic the same behavior by disabling the following list:
  - `'left_toolbar', 'header_widget', 'timeframes_toolbar', 'edit_buttons_in_legend', 'context_menus', 'control_bar', 'border_around_the_chart'`
- `chart_style_hilo` featureset is now enabled by default. This adds the High-low option to chart style controls dropdown. This featureset has been available since 1.15 but was previously disabled by default.
- Added typings for custom indicators. Typescript equivalents of our existing examples are available here: [Custom Studies Typescript Examples](https://charting-library-docs.xstaging.tv/latest/custom_studies/Custom-Studies-Examples.md).
- [`symbol_search_complete`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol_search_complete) has changed. The function now takes an additional search result object parameter, and returns an additional human-friendly symbol name.
- [Mark](https://charting-library-docs.xstaging.tv/latest/ui_elements/Marks.md) tooltips do not support HTML anymore.

**UI changes**

- With this version you will notice that the top toolbar has been redesigned with the following changes:

  - Button padding & separator size have been reduced
  - Compare button has shifted next to Symbol
  - Drawing icon is now more prominent
  - New fullscreen icon
  - Save button style better highlights when there's a change
  - Top toolbar now extends to left & right edges
  - UI font changes to a default system one
  - Undo/redo buttons are now relocated next to the save button

**Trading Platform**

- Default formatter `textNoWrap` has been removed.
- `columnId` field of [SortingParameters](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.SortingParameters) has been renamed to `property`.
- Required `id` field has been added to [column description](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.AccountManagerColumnBase#id).
- Type of `formatter` field in [column description](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.AccountManagerColumnBase#formatter) has been changed to [StandardFormatterName | FormatterName](https://charting-library-docs.xstaging.tv/latest/api/enums/Charting_Library.StandardFormatterName).
- `property` field has been removed from `column description`. Use [dataFields](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.AccountManagerColumnBase#datafields) field instead.
- Type of `formatter` field in [SummaryField](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.AccountManagerSummaryField) has been changed to [StandardFormatterName](https://charting-library-docs.xstaging.tv/latest/api/enums/Charting_Library.StandardFormatterName).

## Version 23

- `Average close price line` is now masked by default in Chart settings and can be shown by using `show_average_close_price_line_and_label` featureset.

## Version 22

- Methods getTimezone and setTimezone have been deprecated and will be removed in future versions. Use [getTimezoneApi](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#gettimezoneapi) instead.

- POST request data format sent to [snapshot_url](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#snapshot_url) has been changed.
Since this version this request contains `multipart/form-data` with the field `preparedImage` that represents binary data of the snapshot image in `image/png` format.

- Optional `inputs` arguments for [createStudy](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi#createstudy) has been changed from using an array of ordered values to an object with named properties. You can still use array-like inputs but it will be removed in further releases.

- The set of inputs for Moving Average study has been changed and the first input now is a symbol. If you used `createStudy` to create Moving Average study you will have to modify the list of inputs by simply adding an empty string as the first element:

    ```javascript
    tvWidget.activeChart().createStudy('Moving Average', true, false, ['', 9]);
    ```

    instead of

    ```javascript
    tvWidget.activeChart().createStudy('Moving Average', true, false, [9]);
    ```

- Study `Ichimoku` has been modified with some `Inputs` & `Style` properties renamed.

- Both `scrollPosition` and `defaultScrollPosition` from [Chart-Methods](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi) have been deprecated in favour of [rightOffset](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ITimeScaleApi#rightoffset) and [defaultRightOffset](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.ITimeScaleApi#defaultrightoffset) accordingly.

- The `rest.html` file and `datafeeds/rest` directory have been removed.

- When [subscribed](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#subscribe) to `drawing_event` a `click` is no longer emitted when a drawing is created. A `create` event is emitted instead.

- Study `True Strength Indicator` has been renamed to `True Strength Index` and modified with its style elements being properly named with 1st `Plot` becoming `True Strength Index` & second `Plot` becoming `Signal`.

**Trading Platform**

- The `watchList` method now returns a promise that resolves a watchlist API object when the watchlist widget has loaded.

- `suggestedQty` has been removed from the `Trading Host`.

- `dome_widget` featureset which controls the DOM widget visibility has be deprecated in favour of `dom_widget`.

## Version 21

- Featureset `show_dialog_on_snapshot_ready` has been removed. [takeScreenshot](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#takescreenshot) makes a snapshot silently, so you can use the URL from [onScreenshotReady](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#subscribe) callback to show your own dialog instead.

- Field `holidays` from [SymbolInfo](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo) has been renamed to [`session_holidays`](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#session_holidays).

- `changeTheme` from [Widget Methods](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartingLibraryWidget) now returns a Promise. You can apply other style modifications after the promise is fulfilled.

- Symbol type `bitcoin` has been renamed to `crypto`.

- The symbol search dialog suggestions list uses the `full_name` instead of the `exchange` and `symbol` value. This data is provided by your implementation of [searchSymbols](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IDatafeedChartApi#searchsymbols).

**Trading Platform**

- `supportModifyOrder` flag has been marked deprecated and will be removed in future versions. Use `supportModifyOrderPrice`, `supportEditAmount` and `supportModifyBrackets` instead.

- `empty` formatter has been removed.

- Flag `durationForMarketOrders` has been removed from Broker Configuration `configFlags` object. To use duration with market orders, add appropriate order type to `supportedOrderTypes` array.

- `supportReducePosition` flag has been removed from the Broker Configuration `configFlags` object.

- `supportExecutions` flag has been added. If broker supports executions you need to set the flag to `true`.

- The default value of `asc` field of the [SortingParameters](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Broker.SortingParameters#asc) has been changed to `true`.

- The `customFormatters` field has been removed from the [accountManagerInfo](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md).

- `id`, `modificationProperty`, `fixedWidth`, `showOnMobile` and `showTooltipOnCell` fields have been removed from the [Account Manager](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md) `column description`. The `property` field has been made mandatory, so you can use it instead of `id`.

- The string `id` field has been made mandatory in each `table` ([Account Manager](https://charting-library-docs.xstaging.tv/latest/trading_terminal/account-manager.md)) row.

- The return value of the method `placeOrder` in the [Broker API](https://charting-library-docs.xstaging.tv/latest/trading_terminal/trading-concepts.md#broker-api) has been changed from `Promise<void>` to `Promise<PlaceOrderResult>`.

- `contextMenuEvent` type in `contextMenuActions` in `AccountManagerInfo` interface has been changed from `MouseEvent` to `MouseEvent | TouchEvent`.

- The shape of the `news_provider` property in the [Widget Constructor options](https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#news_provider) has changed. The `is_news_generic` and `get_news` properties have been replaced with a single function.

---

## Sitemap

- [All documentation pages](https://charting-library-docs.xstaging.tv/llms.txt)
- [Full page map with headings](https://charting-library-docs.xstaging.tv/docs_map.md)
