Skip to content
Algo Trade Analytics Docs

Pine Script Variables

This page links to variable reference pages. Record-like variables (such as barstate or syminfo) expose fields that are documented on their own pages.

VariableFocus
barstateBar state flags.
chartChart display metadata.
dividendsDividend data fields.
earningsEarnings data fields.
sessionSession state flags.
strategyStrategy performance metrics.
syminfoSymbol metadata.
taBuilt-in TA series variables.
tableTable object collections.
timeframeTimeframe metadata.
boxBox object collections.
labelLabel object collections.
lineLine object collections.
linefillLine fill object collections.
polylinePolyline object collections.
VariablePurpose
openOpen price of the current bar.
highHigh price of the current bar.
lowLow price of the current bar.
closeClose price of the current bar.
volumeVolume of the current bar.
timeBar open time in UNIX ms.
bar_indexZero-based bar index.
dayofweekDay of week.
monthMonth of year.
yearYear of the bar.

For functions and other API sections, use the API overview.