Moving icons of a StockLegend to left

Type demo

This demo shows how we can use events to re-arrange items within a StockLegend. Specifically, it moves settings and close icon buttons to the left – before the actual legend label. Related code Demo Alternative option: custom theme It’s also possible to achieve the same result with a custom theme:

Custom icons in Stock Chart

Type demo

This demo shows how we can use a custom theme to override the look of icons used in a StockChart. Code Comment By default, Stock chart uses a custom draw function for its icons. In the above code, in a theme, we override draw with an empty function, so that default behavior is disabled. Then […]

Adding tooltips to Volume Profile Indicator

Type demo

Normally, Volume Profile Indicator (as any other indicator) would display its hover data in a legend. This demo shows how we can create a custom theme to make tooltips pop up when directly hovering indicator’s bars. Code Example

Creating custom indicators for a Stock Chart

Type tutorial

This tutorial will show how we can create custom indicators for a stock chart. Indicator class To begin creating a custom indicator, we need to define a new class that extends a built-in Indicator class. Our class definition at the very least should contain three things: NOTESetting className property of the indicator class is a […]