Chartbreaker
    Preparing search index...

    Type Alias ToolTConfig

    type ToolTConfig = {
        editable?: boolean;
        hasLegendEntry?: boolean;
        name: string | I18NString;
        numHandles: number;
        similarValues?: boolean;
        style?: Record<string, any>;
        translator: Translator;
        type: string;
    }
    Index

    Properties

    editable?: boolean
    hasLegendEntry?: boolean
    name: string | I18NString
    numHandles: number
    similarValues?: boolean

    When true, this tool is automatically reassigned to the same scale as the chart's reference timeseries whenever that timeseries moves scales - provided the tool is currently on that same scale.

    Set this on any tool that calls chart.getReferenceOHLCInput(), because that method always returns the primary timeseries regardless of which scale the tool is on. Without this flag, the tool's data and its rendered position would silently diverge when the timeseries is moved to a secondary scale.

    style?: Record<string, any>
    translator: Translator
    type: string