Signature
Marker is a persistent keyed icon entity. It differs from plot(..., { style: "circles" }) - plot circles are per-bar time-series values; a Marker is a static annotation that you explicitly create and manage.
Quick example
Options
number
required
X coordinate as a bar index.
number
required
Y coordinate as a price level.
string
required
Icon shape. One of:
"circle", "square", "triangle_up", "triangle_down", "diamond", "cross", "x", "arrow_up", "arrow_down".number
Size in pixels. Default:
8.0.string
Marker color as
#RRGGBBAA.number
Stacking order. Default:
0.boolean
Render in main price pane from a sub-pane indicator. Default:
false.Shape enum values
You can also use
shape.* constants:
Handle methods
Marker vs plot circles
Marker (persistent entity) and plot(..., { style: "circles" }) (per-bar time-series) look similar but behave differently. Use Marker for manual annotations anchored to a specific historical bar. Use plot circles when you want a computed value at every bar evaluated by onBar.Signal annotation example
Related pages
Label
Text annotations at a point.
Plot styles
circles and arrowup/arrowdown plot styles for per-bar markers.
Constants
shape.* enum values.