Chartbreaker
    Preparing search index...

    HighLowMarkers Generator

    The HighLowMarkers generator displays horizontal marker lines for the high, low, and/or close values of a configurable lookback period. This allows traders to quickly see key price levels from recent history.

    Use a Controller object to add the generator to a chart:

    const highLowMarkers = controller.addGenerator('HighLowMarkers');
    
    • Type: boolean

    • Default: true

    • Details

      When enabled, a horizontal line is drawn at the highest price within the selected span.

    • Type: boolean

    • Default: true

    • Details

      When enabled, a horizontal line is drawn at the lowest price within the selected span.

    • Type: boolean

    • Default: false

    • Details

      When enabled, a horizontal line is drawn at the most recent close price.

    • Type: enum

    • Default: '1y'

    • Values: 'i' (1 day) | 'w' (1 week) | '1m' (1 month) | '3m' (3 months) | '6m' (6 months) | '1y' (1 year)

    • Details

      The lookback period used to calculate the high, low, and close values. Spans that exceed the available data range are automatically hidden from the selection.

    Each marker line (high, low, close) is an instance of HorizontalLine and supports individual styling (as well as all HorizontalLine options):

    • Type: enum

    • Default: 3 (Extend right)

    • Values: 0 (Ray) | 3 (Extend right) | 4 (No line / marker only)

    • Details

      Controls how each marker line is drawn. When set to "No line", only the price marker on the y-axis is visible.