Core types

Core types

The types you meet in signatures across the SDK.

Series

A per-bar value with history, indexed current-first.

{ value, at(n), [n], column(), add(), sub(), gt(), ... }
SeriesInput

What ta.* functions and Series methods accept.

Series | number[] | number
Placement

Where an indicator renders.

'overlay' | 'subpane' | 'widget'
PlotStyle

plot({ plotStyle }).

'line' | 'linebr' | 'stepline' | 'histogram' | 'columns' | 'area' | 'areabr' | 'circles' | 'cross'
DrawSize

Marker and text sizes.

number | 'auto' | 'tiny' | 'small' | 'normal' | 'large' | 'huge'
TableAnchor

table({ position }).

'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
LabMeta

The static meta block of a class-form Lab.

{ name, slug, version, placement }
StrategyPosition

strategy.position.

{ isLong, isShort, isFlat, size, entryPrice, entryBar }