Skip to content

Properties Reference

This page lists every property name accepted by set_candlestick_property / get_candlestick_property and set_annotation_property / get_annotation_property. Property names are dot-separated paths; sub-paths let you read or write individual fields of a bundle.

Value Types

PropertyValue variantRust typeDescription
Color(c)navi_visuals::ColorRGBA color
Float(v)f64Floating-point number
Bool(b)boolToggle
Int(i)i32Integer (used for bitflags)
Enum(i)usizeIndex into an ordered option list
Stroke(s)Stroke { color, width, style }Line appearance bundle
Enableable(e)EnableableValue { enabled, value }Optional sub-value with an on/off flag
GroupItems(v)Vec<GroupItemValue>Ordered list (levels, color pairs)
GroupItem(i)GroupItemValue { enabled, number, value }One item in a group
TextStyle(s)TextStyle { color, fontSize, bold, italic }Text appearance bundle
Text(s)StringEditable text content

Sub-Path Syntax

Bundles can be addressed as a whole or field-by-field:

Stroke

PathTypeDescription
strokeStrokeWhole bundle (color + width + style)
stroke.colorColorLine color
stroke.widthFloatLine width in logical pixels
stroke.styleEnum0 = Solid, 1 = Dashed, 2 = Dotted

Some annotations expose a stroke under a named prefix (e.g. line, border, median, top, bottom). The sub-paths are identical: line.color, border.width, etc.

Fill

PathTypeDescription
fill or fill.colorColorFill color (RGBA, alpha controls opacity)

TextStyle

PathTypeDescription
textStyleTextStyleWhole bundle
textStyle.colorColorText color
textStyle.fontSizeFloatFont size in logical pixels
textStyle.boldBoolBold weight
textStyle.italicBoolItalic style
text.colorColorAlias for textStyle.color

TextAlignment

PathTypeDescription
textAlignment.alignEnumHorizontal: 0 = Left, 1 = Center, 2 = Right
textAlignment.valignEnumVertical: 0 = Top, 1 = Middle, 2 = Bottom

Level Groups

Many annotations expose a list of styled levels (Fibonacci, Gann, channels, pitchfork):

PathTypeDescription
levelsGroupItemsAll levels at once
levels.NGroupItemOne level (N = 0-based index)
levels.N.enabledBool (via GroupItem.enabled)Whether this level is visible
levels.N.colorColorLevel stroke color
levels.N.widthFloatLevel stroke width
levels.N.styleEnumLevel stroke style

Candlestick Style Properties

Properties are scoped to the active style set by set_candlestick_style. Only the active style's properties are readable and writable.

Candlestick

PropertyTypeDescription
colorBasedOnPrevCloseBoolColor bodies relative to previous close instead of open
bodyGroupItems[2]Up / down body colors ([0] = up, [1] = down)
borderGroupItems[2]Up / down border colors
wickGroupItems[2]Up / down wick colors

HollowCandle / VolumeCandle

PropertyTypeDescription
bodyGroupItems[2]Up / down body colors
borderGroupItems[2]Up / down border colors
wickGroupItems[2]Up / down wick colors

HeikinAshi

PropertyTypeDescription
realPricesOnScaleBoolShow real OHLC prices on the scale instead of Heikin Ashi values
colorBasedOnPrevCloseBoolColor bodies relative to previous close
bodyGroupItems[2]Up / down body colors
borderGroupItems[2]Up / down border colors
wickGroupItems[2]Up / down wick colors

Bars

PropertyTypeDescription
colorBasedOnPrevCloseBoolColor bars relative to previous close
hlcBoolRender as HLC bars (omit the open tick)
thinBoolDraw thin single-pixel bars
colorGroupItems[2]Up / down bar colors

Line / LineWithMarkers / StepLine

PropertyTypeDescription
priceSourceEnum0=Close, 1=Open, 2=High, 3=Low, 4=HL2, 5=HLC3, 6=OHLC4
fillModeEnum0 = Solid, 1 = Gradient
strokeStrokeLine color, width, style (Solid mode only)
gradientColor1ColorGradient top color (Gradient mode only)
gradientColor2ColorGradient bottom color (Gradient mode only)
lineWidthStrokeWidth-only stroke (Gradient mode only — only .width is used)

Area

PropertyTypeDescription
priceSourceEnum0=Close, 1=Open, 2=High, 3=Low, 4=HL2, 5=HLC3, 6=OHLC4
lineStrokeArea line color, width, style
fillColor1ColorUpper fill color (defaults to line color at 80% opacity)
fillColor2ColorLower fill color (defaults to line color at 0% opacity)

HlcArea

PropertyTypeDescription
highLineEnableable<Stroke>High price line (toggleable)
lowLineEnableable<Stroke>Low price line (toggleable)
closeLineStrokeClose price line
fillColor1ColorUpper band fill color
fillColor2ColorLower band fill color

Baseline

PropertyTypeDescription
priceSourceEnum0=Close, 1=Open, 2=High, 3=Low, 4=HL2, 5=HLC3, 6=OHLC4
topLineEnableable<Stroke>Upper line (toggleable)
bottomLineEnableable<Stroke>Lower line (toggleable)
fillTopGroupItems[2]Above-baseline fill: [0] = near-line color, [1] = far color
fillBottomGroupItems[2]Below-baseline fill: [0] = near-line color, [1] = far color
levelFloatBaseline position as a fraction of the price axis (0.0–1.0)

Columns

PropertyTypeDescription
priceSourceEnum0=Close, 1=Open, 2=High, 3=Low, 4=HL2, 5=HLC3, 6=OHLC4
colorBasedOnPrevCloseBoolColor columns relative to previous close
colorGroupItems[2]Up / down column colors

HighLow

PropertyTypeDescription
bodyColorColorBar body color (defaults to theme text color)
borderColorColorBar border color (defaults to theme text color)
labelColorColorHigh/low label color (defaults to theme dim text color)

Annotation Properties

Lines

TrendLine / Ray

PropertyTypeDescription
strokeStrokeLine color, width, style
extendInt (bitflags)Extension: bit 0 = left, bit 1 = right
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position (0=Top, 1=Middle, 2=Bottom)

ExtendedLine

PropertyTypeDescription
strokeStrokeLine color, width, style
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position

HorizontalLine / HorizontalRay

PropertyTypeDescription
strokeStrokeLine color, width, style
showPriceLabelBoolShow the price value at the line
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position

VerticalLine

PropertyTypeDescription
strokeStrokeLine color, width, style
showTimeLabelBoolShow the timestamp at the line
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position

CrossLine

PropertyTypeDescription
strokeStrokeLine color, width, style

Arrow

PropertyTypeDescription
strokeStrokeArrow line color, width, style
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position

ArrowMarkUp / ArrowMarkDown

PropertyTypeDescription
colorColorArrow marker fill color
textStyleTextStyleLabel text appearance

Shapes

Rectangle / RotatedRectangle

PropertyTypeDescription
strokeStrokeBorder color, width, style
fill.colorColorFill color
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position

Circle / Ellipse / Triangle / Polyline / Sector

PropertyTypeDescription
strokeStrokeBorder color, width, style
fill.colorColorFill color

Text & Symbols

Text

PropertyTypeDescription
strokeStrokeText box border
fill.colorColorText box background fill
textStyleTextStyleText appearance (color, size, bold, italic)

Emoji

PropertyTypeDescription
textStyleTextStyleEmoji appearance (size via textStyle.fontSize)
textAlignment.alignEnumHorizontal anchor

Note / PriceNote

PropertyTypeDescription
lineStrokeLeader line from anchor point to label
borderStrokeLabel box border
fill.colorColorLabel box background fill
textStyleTextStyleLabel text appearance
textAlignment.alignEnumText horizontal alignment inside box
textAlignment.valignEnumText vertical alignment inside box

Callout

PropertyTypeDescription
strokeStrokeCallout border and leader line
fill.colorColorCallout background fill
textStyleTextStyleText appearance
textAlignment.alignEnumText horizontal alignment
textAlignment.valignEnumText vertical alignment

Channels

ParallelChannel

PropertyTypeDescription
levelsGroupItems[7]Channel lines (indices 0, 2, 4, 6 = main lines; 1, 3, 5 = midlines)
extendInt (bitflags)Extension: bit 0 = left, bit 1 = right
fill.colorColorChannel fill color
textStyleTextStyleLabel text appearance
textAlignment.alignEnumLabel horizontal position
textAlignment.valignEnumLabel vertical position

FlatTopBottom

PropertyTypeDescription
topStrokeTop boundary line
bottomStrokeBottom boundary line
fill.colorColorChannel fill color
pricesEnableable<TextStyle>Price label appearance (with on/off toggle)

DisjointChannel

PropertyTypeDescription
lineAStrokeUpper boundary line
lineBStrokeLower boundary line
fill.colorColorChannel fill color
pricesEnableable<TextStyle>Price label appearance (with on/off toggle)

RegressionTrend

PropertyTypeDescription
baseLineStrokeRegression center line
upperLineStrokeUpper deviation line
lowerLineStrokeLower deviation line
upperFill.colorColorUpper band fill
lowerFill.colorColorLower band fill

Fibonacci Tools

All Fibonacci annotations share this core set; individual tools may omit some:

PropertyTypeDescription
levelsGroupItems[N]Fibonacci levels (24 for FibRetracement; varies by type)
levels.N.enabledBoolWhether level N is visible
levels.N.colorColorLevel N stroke color
levels.N.widthFloatLevel N stroke width
levels.N.styleEnumLevel N stroke style
extendInt (bitflags)Extension: bit 0 = left, bit 1 = right
trendLineEnableable<Stroke>Main trend line (FibRetracement, FibChannel)
fillAlphaFloatFill opacity between levels (0.0–1.0)
reverseBoolFlip level order (FibRetracement)
showPricesBoolShow price labels at each level

Gann Tools

GannSquare / GannSquareFixed

PropertyTypeDescription
levelsGroupItems[6]Horizontal price grid lines
fansGroupItems[11]Fan angle lines
arcsGroupItems[11]Arc lines
fillAlphaFloatFill opacity (0.0–1.0)
reverseBoolFlip the square (GannSquare only)
showLevelNumbersBoolShow numeric labels on grid lines
textStyleTextStyleLabel text appearance

GannFan

PropertyTypeDescription
levelsGroupItems[9]Fan angle lines
fillAlphaFloatFill opacity
labelsEnableable<TextStyle>Fan label appearance

GannBox

PropertyTypeDescription
priceLevelsGroupItems[7]Horizontal price division lines
timeLevelsGroupItems[7]Vertical time division lines
anglesEnableable<Stroke>Diagonal angle lines
fillAlphaFloatFill opacity
reverseBoolFlip the box

Pitchfork / Pitchfan

Pitchfork

PropertyTypeDescription
styleEnum0=Original, 1=Schiff, 2=Modified Schiff, 3=Inside
extendLinesBoolExtend all lines beyond the anchor point
medianStrokeCenter (median) line
levelsGroupItems[9]Parallel handle lines (each Enableable)
fillAlphaFloatFill opacity between lines

Pitchfan

PropertyTypeDescription
medianStrokeCenter line
levelsGroupItems[9]Fan lines (each Enableable)
fillAlphaFloatFill opacity

Measurements

InfoLine

PropertyTypeDescription
stroke.colorColorLine color
stroke.widthFloatLine width
statsInt (bitflags)Which statistics to display: bit 0=price range, 1=% change, 2=pips, 3=bars, 4=date/time range, 5=distance, 6=angle
statsPosEnumStats label position: 0=Auto, 1=Left, 2=Center, 3=Right
alwaysShowStatsBoolShow stats even when the annotation is not selected
textStyleTextStyleStats text appearance

TrendAngle

PropertyTypeDescription
stroke.colorColorLine color
stroke.widthFloatLine width
statsInt (bitflags)Statistics flags (same bit layout as InfoLine)
statsPosEnumStats label position
alwaysShowStatsBoolShow stats when not selected

PriceRange / DateRange

PropertyTypeDescription
stroke.colorColorRuler line color
stroke.widthFloatRuler line width

DateAndPriceRange

PropertyTypeDescription
stroke.colorColorRuler line color
stroke.widthFloatRuler line width
fill.colorColorRange box fill color

Free-Draw Tools

Brush / Highlighter

PropertyTypeDescription
stroke.colorColorBrush color
stroke.widthFloatBrush width

Volume & VWAP

VolumeProfileAnchored / VolumeProfileFixedRange

PropertyTypeDescription
strokeStrokeProfile outline color, width, style

AnchoredVwap

AnchoredVwap exposes both Inputs and Style tab properties.

Inputs tab (category = Inputs):

PropertyTypeDescription
sourceEnumPrice source: 0=Close, 1=Open, 2=High, 3=Low, 4=HL2, 5=HLC3, 6=OHLC4
bandsModeEnumBand calculation mode: 0=Standard Deviation, 1=Percentage (multiplier of 1 means 1%) — has tooltip
bands.0Enableable<Number>Band 1 multiplier (min 0.01, step 0.5)
bands.1Enableable<Number>Band 2 multiplier
bands.2Enableable<Number>Band 3 multiplier

Style tab (category = Style):

PropertyTypeDescription
strokeStrokeVWAP line color, width, style
bandStyles.0.upperEnableable<Stroke>Band 1 upper line
bandStyles.0.lowerEnableable<Stroke>Band 1 lower line
backgroundEnableable<Fill>Band 1 background fill
bandStyles.1.upperEnableable<Stroke>Band 2 upper line
bandStyles.1.lowerEnableable<Stroke>Band 2 lower line
bandStyles.2.upperEnableable<Stroke>Band 3 upper line
bandStyles.2.lowerEnableable<Stroke>Band 3 lower line
showPriceLabelBoolShow price label on the right axis

Positions

LongPosition / ShortPosition

PropertyTypeDescription
strokeStrokeLevel line color, width, style
fill.colorColorRisk/reward box fill color

Cyclic & Curve Tools

CyclicLines / SineLine / Curve / DoubleCurve / Arc / Path / GhostFeed

PropertyTypeDescription
strokeStrokeLine color, width, style

TimeCycles

PropertyTypeDescription
strokeStrokeLine color, width, style
fill.colorColorCycle region fill color

Misc

PositionForecast / BarPattern / Sector

PropertyTypeDescription
strokeStrokeOutline color, width, style
fill.colorColorFill color

Chart Patterns & Elliott Waves

All pattern and Elliott wave types (XabcdPattern, CypherPattern, AbcdPattern, HeadAndShoulders, TrianglePattern, ThreeDrivesPattern, ElliottImpulseWave, ElliottCorrectiveWave, ElliottTriangleWave, ElliottDoubleCombo, ElliottTripleCombo) expose only:

PropertyTypeDescription
strokeStrokePattern line color, width, style

Released under the MIT License.