types#
Runtime type definitions used by Tracer Script. These describe the shapes your indicator plots and returns, plus the settings-input types you can declare.
Functions#
types.BooleanSetting— Defines a toggle / checkbox setting.types.ChartCandle— Per-bar OHLCV record.types.ColorSetting— Defines a color picker setting.types.EntityArrow— Persistent arrow entity from(x1, y1)to(x2, y2)in data coordinates.types.EntityBox— Persistent rectangular box entity in data coordinates.types.EntityHandle— Handle returned from everyentity.line/box/label/marker/arrow(...)call.types.EntityLabel— Persistent text label entity at a data coordinate.types.EntityLine— Persistent keyed line entity in data coordinates.types.EntityMarker— Persistent marker entity at a data coordinate.types.IndicatorDataChannels— Legacy data-channels shape passed tocompute()and exposed as thedataglobal.types.MarkerShape— Seven-glyph shape union shared byplot.markerandentity.marker.types.NumberSetting— Defines a numeric setting with optional min/max bounds and step increment.types.OnBarCtx— Per-bar context passed as the second argument toonBar(i, ctx).types.RuntimeCandleSeries— Describes an overlay candle series inRuntimeOutput.candleSeries.types.RuntimeFill— Describes a shaded region between two existing lines.types.RuntimeHistogram— Describes a histogram series inRuntimeOutput.histograms.types.RuntimeLine— Describes a single line inRuntimeOutput.lines.types.RuntimeMarkerSeries— Describes a sparse marker series inRuntimeOutput.markerSeries.types.RuntimeOutput— Return type ofcompute()and the implicit shape produced byonBar()after allplot()/entity.*emissions are flushed.types.RuntimeTable— Screen-space dashboard table, corner-anchored to one of nine positions (top_left,top_center,top_right,middle_left, ...,bottom_right).types.RuntimeTableCell— Single cell in aRuntimeTable.cellsarray.types.SelectSetting— Defines a dropdown setting.types.SourceHandle— Handle returned fromsource(kind, opts?).types.TablePosition— Nine-point screen anchor forRuntimeTable.position.types.TableTextSize— Preset text size for a table cell'stextSizefield.