Skip to main content
Skip to main content

Drawing tools catalog

Use this page as a lookup table. Not sure which type string to pass to drawTool()? Find it here, then open the grouped guide for a copy-paste example.

Drawing preset
What this example shows

Two anchors define the direction. This is the cleanest programmatic entry point for support, resistance, and trend projection.

Live MDX exampletoolDrawer.drawTrendLine()trendLine1000 candlesBTC/USD fixture
Loading chart…

How to read this catalog

ColumnMeaning
Runtime typeString for drawTool({ type: "…" })
AnchorsHow many points you place
CreationHelper shortcut, if any

Helper first when available (drawTrendLine is easier than raw drawTool). Otherwise use drawTool({ type, anchors, … }).

Beginner picks (start here)

ToolTypeUse
Trend linetrendLineConnect two swings — guide
Horizontal levelhLineSupport / resistance price
FibonaccifibonLinesRetracement levels — guide
RectangleboxHighlight a zone — guide
Time windowtimeRangeShade a session — guide

Lines

Runtime typeLabelAnchorsCreation
trendLineTrend line2drawTrendLine() or drawTool()
trendRayTrend ray2drawTool()
hLineHorizontal line1drawTool()
hRayHorizontal ray1drawTool()
vLineVertical line1drawTool()
vRayVertical ray1drawTool()
crossLineCross line1drawTool()
mLineMulti-line3drawTool()

Grouped examples: Lines, ranges, and tags.


Levels, channels, and projections

Runtime typeLabelAnchorsCreation
fibonLinesFibonacci retracement2drawTool()
fibonExtensionFibonacci extension2drawTool()
fibonTimeZoneFibonacci time zone2drawTool()
fibonChannelFibonacci channel3drawTool()
fibonArcsFibonacci arcs2drawTool()
fibonCirclesFibonacci circles2drawTool()
parallelChannelParallel channel3drawTool()
pitchforkPitchfork3drawTool()
regressionChannelRegression channel2drawTool()
gannFanGann fan2drawTool()
gannGridGann grid2drawTool()
gannBoxGann box2drawTool()
abcdABCD3drawTool()

Grouped examples: Levels and channels.
Every tool described: Complete tool reference.


Volume and trade planning

Runtime typeLabelAnchorsCreation
fixedRangeVolumeProfileVolume profile2drawTool()
longShortPositionLong / short plan3drawLongShortPosition() or drawTool()

fixedRangeVolumeProfile draws a volume histogram between two time anchors (POC + value area).
longShortPosition is for paper-trade entry/stop/target — not live broker lines.


Ranges, sessions, and tags

Runtime typeLabelAnchorsCreation
hRangeHorizontal range2drawTool()
vRangeVertical range2drawTool()
timeRangeTime range2drawTimeRange() or drawTool()
priceTagPrice tag1drawTool()
timeBetTime bet overlaydrawTimeBet() only

Grouped examples: Lines, ranges, and tags.


Shapes and text

Runtime typeLabelAnchorsCreation
brushBrush (freehand)dynamicdrawTool()
arrowArrow2drawTool()
ellipseEllipse2drawTool()
triangleTriangle3drawTool()
boxRectangle2drawTool()
cycleCycle2drawTool()
textAnnotationText2drawTool()

Grouped examples: Shapes and annotations.


Toolbar controls

ControlWhereEffect
MagnetLeft toolbarSnap anchors to OHLC
Lock allToolbar + Chart settings → LayersPrevent dragging
Unlock allSameAllow editing again
chart.setDrawingMagnetEnabled(true);
chart.lockAllDrawings();
chart.unlockAllDrawings();

Notes for integrators

  • Anchor counts match the current ChartUI tool definitions.
  • Fibonacci, ABCD, and similar tools accept extra fields (values, valuesState, fillBg) beyond the shared config type — pass them through drawTool().
  • Treat this catalog as a name lookup; behavior details live in the grouped pages and live showcase.

What is next?