Skip to main content

types.RuntimeMarkerSeries#

Describes a sparse marker series in RuntimeOutput.markerSeries.

SYNTAX#

interface RuntimeMarkerSeries { kind: 'marker'; name: string; positions: { barIndex: number; value: number }[]; shape: PlotMarkerShape; color: string; size: number; }

ARGUMENTS#

  • kind ('marker') — Discriminator — always the string marker.
  • name (string) — Series identifier.
  • positions ({ barIndex: number; value: number }[]) — One entry per emission, ordered by barIndex.
  • shape (PlotMarkerShape) — One of circle, square, triangle, triangle-down, diamond, cross, x.
  • color (string) — Glyph color.
  • size (number) — Half-width / radius in pixels.

RETURNS#

Type definition.

EXAMPLE#

{ kind: 'marker', name: 'breakout', positions: [{ barIndex: 42, value: 50100 }], shape: 'triangle', color: '#26a69a', size: 8 }

SEE ALSO#

types.RuntimeOutput, indicator.plot.marker