Skip to content
StatePath
Tool Atlasindicator.plot

Tool

Plot

indicator.plot

OutputSink

Inputs

valueBuffer (time series)

The series to draw (single-buffer styles).

value_aBuffer (time series)

First leg / upper series (two-value styles).

value_bBuffer (time series)

Second leg / lower series (two-value styles).

openBuffer (time series)

Open series for bars/candles.

highBuffer (time series)

High series for bars/candles.

lowBuffer (time series)

Low series for bars/candles.

closeBuffer (time series)

Close series for bars/candles.

color_indexBuffer (time series)

0-based palette index per bar. Values are rounded and clamped to the palette length at draw time.

Outputs

Bundle (untagged)

Plot is a terminal sink — it draws on the chart and outputs nothing. Nothing can be wired from it.

Plot draws any wired series on your indicator's chart. Pick one of ten draw styles — line, histograms, arrows, sections, zigzag, filled band, bars, candles, or hidden — and optionally color each bar from a palette.

Plot overview diagram

How it works

Each Plot node claims the buffers its style needs (one for a line, two for a span, four for bars/candles) and writes the wired values into them every bar. With dynamic color on, a wired palette index picks each bar's color (MT5 uses native color buffers; MT4 splits the plot into palette-masked copies). The MT4 build has a hard budget of 8 plotted buffers — the validator shows each plot's cost before you compile.

Modes

Style options

Lineline

Connects the values with a continuous line — the classic indicator curve.

Line diagram
Histogramhistogram

Vertical columns from the zero line to each value — momentum and volume shapes.

Histogram diagram
Two-value histogramhistogram2

A vertical segment from value_a to value_b on every bar — spans, ranges, gaps.

Two-value histogram diagram
Arrowarrow

A glyph at each non-empty value — signals and event markers. Pick the symbol with arrow_code.

Arrow diagram
Sectionsection

Straight segments connecting non-empty values, skipping empty bars.

Section diagram
Zigzagzigzag

Alternating legs between the two value series — swing structure drawing.

Zigzag diagram
Fillingfilling

Fills the area between the two value series. On MT4 this degrades to the two boundary lines without fill.

Filling diagram
Barsbars

OHLC bars from the four wired series. On MT4 this paints columns over the chart candles.

Bars diagram
Candlescandles

Candlesticks from the four wired series. On MT4 this paints columns over the chart candles.

Candles diagram
Hiddennone

Computes and exposes the buffer without drawing — feed the data window or iCustom readers silently.

Hidden diagramseries

Line style options

Solidsolid

An unbroken line.

Solid diagram
Dasheddash

A dashed line. Width above 1 forces solid — a platform rule.

Dashed diagram
Dotteddot

A dotted line. Width above 1 forces solid — a platform rule.

Dotted diagram
Dash-dotdashdot

Alternating dashes and dots. Width above 1 forces solid.

Dash-dot diagram
Dash-dot-dotdashdotdot

A dash followed by two dots. Width above 1 forces solid.

Dash-dot-dot diagram

Empty treated as options

Gapgap

Empty values leave a hole in the histogram instead of drawing a zero-height column.

Gap diagram
Zerozero

Empty values draw a zero-height column, keeping the histogram continuous instead of leaving a hole.

Zero diagram

Configuration

styleenum

Draw style — how the wired values render on the chart. Each style claims a different number of plot buffers.

Choices:linehistogramhistogram2arrowsectionzigzagfillingbarscandlesnone
dynamic_colorscalar

Color each bar individually from the palette using the wired color_index. MT5 uses native color buffers; MT4 splits the plot into one masked copy per palette entry.

labelscalar

Plot name shown in the data window and the iCustom buffer list. Leave empty to derive it from the wired source.

colorscalar

Static plot color as #rrggbb. Hidden when dynamic color is on.

palettescalar

Ordered list of #rrggbb colors the color_index selects from. Up to 8 colors on MT5, up to 4 on MT4 (each entry costs one plotted buffer there).

widthscalar

Line, histogram, or arrow width in pixels (1–5).

line_styleenum

Line pattern for line-drawing styles. The platforms force solid when width is above 1.

Choices:soliddashdotdashdotdashdotdot
user_adjustablescalar

Expose this plot's color and width as terminal inputs so the end user can restyle it from the indicator's Inputs tab (static-color plots only).

arrow_codescalar

Wingdings glyph code (33–255) used by the arrow style.

arrow_shiftscalar

Vertical offset of the arrow glyph in pixels.

draw_beginscalar

Skip drawing the first N bars. The default -1 derives N from the wired source's warmup so half-formed values never draw.

shiftscalar

Shift the whole plot left or right by this many bars.

empty_treated_asenum

How empty values render in histogram continuity: 'gap' leaves a hole (the platform default); 'zero' draws a zero-height column instead.

Choices:gapzero

Connects to

Reads from

See also