Skip to content

charton API


charton API / @chart-on/ui / index / indicatorSettingsForm

Function: indicatorSettingsForm() ​

indicatorSettingsForm(def, state, chart?): IndicatorSettingsForm

Defined in: ui/src/indicator-settings.ts:183

The settings form of an indicator with definition def: an Inputs tab (every input but colours, in its group), a Style tab (colour inputs, each plot's visibility, line width and line style, and the indicator's visibility) and a Visibility tab (the interval groups it shows on). Reset to defaults restores the definition's defaults, shown, on every interval. chart gives the language of the plot style labels and the theme (default the dark theme) whose colours a colour input left empty shows; such an input follows the theme and stays empty until one is picked. Reset to defaults empties it again.

Parameters ​

def ​

IndicatorDef

state ​

IndicatorSettingsState

chart? ​

Pick<Chart, "localization"> & object | null

Returns ​

IndicatorSettingsForm