Skip to main content
Version: v27

ISymbolInstrument

Interface

PineJS execution context symbol information.

Properties

close

Close bar value

Type

number


currencyCode

Optional

Currency Code

Type

string


high

High bar value

Type

number


index

Index

Type

number


info

Optional

Symbol information

Type

LibrarySymbolInfo


interval

Interval

Type

number


isBarClosed

Whether the bar is closed

Type

boolean


isFirstBar

Whether this is the first bar

Type

boolean


isLastBar

Whether this is the last bar

Type

boolean


isNewBar

Whether this is a new bar

Type

boolean


low

Low bar value

Type

number


minTick

Minimum tick amount

Type

number


open

Open bar value

Type

number


period

Bar resolution

Type

ResolutionString


periodBase

Period Base

Type

string


resolution

Resolution

Type

string


ticker

Ticker

Type

string


tickerid

Ticker ID

Type

string


time

Time

Type

number


unitId

Optional

Unit ID

Type

string


updatetime

Time of the update

Type

number


volume

Bar Volume value

Type

number

Methods

bartime

Time of the bar.

Signature

bartime() => number

Returns

the timestamp in milliseconds

number


isdwm

Signature

isdwm() => boolean

Returns

true if the bar resolution is day/week/month, false if it is intraday

boolean