Skip to main content

Featuresets

Featureset is a string literal that allows showing or hiding UI elements and changing the chart's behavior.

How to use

To enable or disable a feature, include it in the enabled_features or disabled_features array of the Widget Constructor object.

<script>
new TradingView.widget({
container: 'chartContainer',
locale: 'en',
library_path: 'charting_library/',
datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
symbol: 'AAPL',
interval: '1D',
enabled_features: ["show_spread_operators"],
disabled_features: ["items_favoriting", "show_object_tree"]
});
</script>

This code sample enables the spread operators in the Symbol Search dialog and disables Add to favorites and Show Object Tree buttons in the UI.

Simple and complex featuresets

Featuresets can be simple and complex where complex consists of the simple ones. Note that disabling complex featureset disables all its simple parts as well.

In the table below, simple featuresets are nested within complex featuresets using indentation.

FeaturesetDefault stateDescription
context_menus
#
legend_context_menu
#
pane_context_menu
#
scales_context_menu
#
edit_buttons_in_legend
#
delete_button_in_legend
#
format_button_in_legend
#
show_hide_button_in_legend
#
header_widget
#
header_chart_type
#
header_compare
#
header_fullscreen_button
#
header_indicators
#
header_resolutions
#
show_interval_dialog_on_key_press
#
header_screenshot
#
header_settings
#
header_symbol_search#
header_undo_redo
#
header_quick_search#
symbol_search_hot_key
#
use_localstorage_for_settings
#
save_chart_properties_to_local_storage
#

Visibility of controls and visual elements

FeaturesetDefault stateDescription
adaptive_logo#
always_show_legend_values_on_mobile
#
border_around_the_chart
#
chart_style_hilo
#
chart_style_hilo_last_price
#
chart_property_page_right_margin_editor
#
chart_property_page_scales
#
clear_price_scale_on_error_or_empty_bars
#
compare_symbol_search_spread_operators
#
control_bar
#
countdown
#
display_data_mode
#
display_legend_on_all_charts
#
display_market_status
#
dont_show_boolean_study_arguments
#
go_to_date
#
header_saveload
#
hide_image_invalid_symbol
#
hide_last_na_study_output
#
hide_left_toolbar_by_default
#
hide_main_series_symbol_from_indicator_legend
#
hide_price_scale_global_last_bar_value
#
hide_exponentiation_spread_operator
#
hide_reciprocal_spread_operator
#
hide_object_tree_and_price_scale_exchange_label
#
hide_resolution_in_legend
#
hide_unresolved_symbols_in_legend
#
items_favoriting
#
left_toolbar
#
legend_widget
#
main_series_scale_menu
#
object_tree_legend_mode
#
pricescale_currency
#
pricescale_unit
#
pre_post_market_sessions
#
property_pages
#
popup_hints#
remove_library_container_border
#
scales_date_format
#
scales_time_hours_format
#
show_chart_property_page
#
show_average_close_price_line_and_label
#
show_exchange_logos
#
show_right_widgets_panel_by_default
#
show_symbol_logos
#
show_symbol_logo_for_compare_studies
#
show_symbol_logo_in_legend
#
show_object_tree
#
show_percent_option_for_right_margin
#
show_spread_operators
#
show_zoom_and_move_buttons_on_touch
#
snapshot_trading_drawings
#
source_selection_markers
#
studies_symbol_search_spread_operators
#
symbol_info
#
symbol_info_long_description
#
symbol_info_price_source
#
timeframes_toolbar
#
timezone_menu
#
use_na_string_for_not_available_values
#

Elements placement

FeaturesetDefault stateDescription
move_logo_to_main_pane
#

Behavior

FeaturesetDefault stateDescription
accessible_keyboard_shortcuts
#
allow_arbitrary_symbol_search_input
#
aria_crosshair_price_description
#
aria_detailed_chart_descriptions
#
auto_enable_symbol_labels
#
axis_pressed_mouse_move_scale
#
chart_template_storage
#
chart_scroll
#
chart_zoom
#
charting_library_debug_mode
#
confirm_overwrite_if_chart_layout_with_name_exists
#
create_volume_indicator_by_default
#
create_volume_indicator_by_default_once
#
constraint_dialogs_movement
#
cropped_tick_marks
#
custom_resolutions
#
datasource_copypaste
#
determine_first_data_request_size_using_visible_range
#
disable_pulse_animation
#
disable_resolution_rebuild
#
end_of_period_timescale_marks
#
fix_left_edge
#
header_in_fullscreen_mode
#
hide_price_scale_if_all_sources_hidden
#
horz_touch_drag_scroll
#
iframe_loading_compatibility_mode
#
iframe_loading_same_origin
#
insert_indicator_dialog_shortcut
#
legend_inplace_edit
#
library_custom_color_themes
#
lock_visible_time_range_on_resize
#
lock_visible_time_range_when_adjusting_percentage_right_margin
#
low_density_bars
#
mouse_wheel_scale
#
mouse_wheel_scroll
#
no_min_chart_width
#
pinch_scale
#
pressed_mouse_move_scroll
#
request_only_visible_range_on_reset
#
right_bar_stays_on_scroll
#
save_shortcut
#
saveload_separate_drawings_storage
#
seconds_resolution
#
secondary_series_extend_time_scale
#
shift_visible_range_on_new_bar
#
side_toolbar_in_fullscreen_mode
#
studies_extend_time_scale
#
study_templates
#
study_symbol_ticker_description
#
study_overlay_compare_legend_option
#
tick_resolution
#
two_character_bar_marks_labels
#
uppercase_instrument_names
#
use_last_visible_bar_value_in_legend
#
vert_touch_drag_scroll
#
volume_force_overlay
#

Trading Platform

info

These featuresets are only available in Trading Platform.

FeaturesetDefault stateDescription
add_to_watchlist
#
always_pass_called_order_to_modify
#
buy_sell_buttons
#
broker_button
#
chart_crosshair_menu
#
chart_hide_close_position_button
#
chart_hide_close_order_button
#
chart_property_page_trading
#
drawing_templates
#
dom_widget
#
header_layouttoggle
#
hide_right_toolbar
#
hide_right_toolbar_tabs
#
keep_object_tree_widget_in_right_toolbar
#
legend_last_day_change
#
multiple_watchlists
#
open_account_manager
#
order_info
#
order_panel
#
order_panel_close_button
#
order_panel_undock
#
prefer_symbol_name_over_fullname
#
right_toolbar
#
show_dom_first_time
#
show_last_price_and_change_only_in_series_legend
#
show_order_panel_on_start
#
show_symbol_logo_in_account_manager
#
show_trading_notifications_history
#
support_multicharts
#
trading_account_manager
#
trading_notifications
#
watchlist_context_menu
#
watchlist_import_export
#
watchlist_sections
#
prefer_quote_short_name
#