interface DrawingStyle {
    accountSize?: number;
    color?: string;
    extendLeft?: boolean;
    extendRight?: boolean;
    fill?: boolean;
    fillColor?: string;
    fillOpacity?: number;
    levels?: FibLevel[];
    lineStyle?: "solid" | "dashed" | "dotted";
    lineWidth?: number;
    pressure?: boolean;
    risk?: number;
    showLabels?: boolean;
    showStats?: boolean;
}

Properties

accountSize?: number

Position tools: capital base and risk per trade, for the size readout.

color?: string
extendLeft?: boolean

Extend the line past its anchors.

extendRight?: boolean
fill?: boolean

Fill the shape's interior (rectangle, ellipse, channel, position boxes).

fillColor?: string
fillOpacity?: number

0..1. Defaults to 0.12.

levels?: FibLevel[]

Fibonacci-family levels. Defaults per tool.

lineStyle?: "solid" | "dashed" | "dotted"
lineWidth?: number
pressure?: boolean

Brush: let pen pressure drive the stroke width.

risk?: number
showLabels?: boolean

Draw level / price / ratio labels where the tool has them.

showStats?: boolean

Line tools: print the bar count, price change and angle at the midpoint.