Skip to main content

types.EntityArrow#

Persistent arrow entity from (x1, y1) to (x2, y2) in data coordinates.

SYNTAX#

interface EntityArrow { kind: 'arrow'; key: string; x1: number; y1: number; x2: number; y2: number; color: string; width?: number; forceOverlay?: boolean; }

ARGUMENTS#

  • kind ('arrow') — Discriminator.
  • key (string) — Persistent identifier.
  • x1 (number) — Tail timestamp (unix seconds).
  • y1 (number) — Tail price.
  • x2 (number) — Head timestamp.
  • y2 (number) — Head price.
  • color (string) — Arrow color.
  • width (number) — Optional line width.
  • forceOverlay (boolean) — When true, render on the price pane regardless of indicator pane.

RETURNS#

Type definition.

EXAMPLE#

{ kind: 'arrow', key: 'breakout', x1: 1700000000, y1: 49000, x2: 1700100000, y2: 50500, color: '#26a69a', width: 2 }

SEE ALSO#

indicator.entity.arrow, types.EntityLine