Skip to content
Nexus Prop LLC

NexuScript 1.5

Symbol and timeframe

Facts about the chart's symbol and bar size. Fixed for a run, so they may be read in setup.

symbol.ticker

valueNexuScript 1.0

The full ticker of the chart's symbol, such as NQZ6.

Syntax

symbol.ticker::String

Returns

String The ticker as text, contract month included.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not give one.

Example

if bar.last
    table([["Ticker", symbol.ticker]])
end

See also

symbol.rootsymbol.exchangesymbol.description

symbol.root

valueNexuScript 1.0

The product code of the chart's symbol without the contract month, such as NQ.

Syntax

symbol.root::String

Returns

String The root as text.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not give one.

Example

if bar.last
    table([["Product", symbol.root]])
end

See also

symbol.tickerstartswith

symbol.exchange

valueNexuScript 1.0

The exchange the chart's symbol trades on, such as CME.

Syntax

symbol.exchange::String

Returns

String The exchange code as text.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not give one.

Example

if bar.last
    table([["Exchange", symbol.exchange]])
end

See also

symbol.tickersymbol.timezone

symbol.description

valueNexuScript 1.0

The full name of the chart's symbol, such as E-mini Nasdaq-100.

Syntax

symbol.description::String

Returns

String The name as text.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not give one.

Example

if bar.last
    table([["Market", symbol.description]])
end

See also

symbol.tickercontains

symbol.tick

valueNexuScript 1.0

The smallest step the price can move, such as 0.25 for NQ.

Syntax

symbol.tick::Number

Returns

Number The tick size as a number.

Units and time zones

In price units of the symbol.

Missing values

Fixed for the whole run, so it may be read in setup. missing while the symbol is still loading, so a sum that uses it is missing too until then.

Example

plot("Bar range in ticks", (high - low) / symbol.tick)

See also

round_to_ticksymbol.point_value

symbol.point_value

valueNexuScript 1.0

How much money a move of 1.0 in price is worth on one contract.

Syntax

symbol.point_value::Number

Returns

Number The value of one full point, such as 20 for NQ.

Details

One tick is worth symbol.tick * symbol.point_value.

Units and time zones

In the symbol's currency, per 1.0 of price, per contract.

Missing values

Fixed for the whole run, so it may be read in setup. missing while the symbol is still loading.

Example

plot("Bar range per contract", (high - low) * symbol.point_value)

See also

symbol.ticksymbol.qty_step

symbol.qty_step

valueNexuScript 1.0

The smallest step an order size can take.

Syntax

symbol.qty_step::Number

Returns

Number 1 for futures contracts, or a fraction of a coin on a perpetual.

Missing values

Fixed for the whole run, so it may be read in setup. Never missing: it is 1 when the feed does not give a step.

Example

const step = symbol.qty_step
on bar
    plot("Order size step", step)
end

See also

symbol.point_valuesymbol.tick

symbol.timezone

valueNexuScript 1.0

The time zone of the exchange the symbol trades on.

Syntax

symbol.timezone::String

Returns

String An IANA zone name, such as America/Chicago.

Details

This is the zone the clock functions use when you leave their zone out or give "".

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not give one; the clock functions then use UTC.

Example

if bar.last
    table([["Exchange zone", symbol.timezone]])
end

See also

hoursymbol.sessionperiod.starts

symbol.session

valueNexuScript 1.0

The trading hours of the symbol, as a time window.

Syntax

symbol.session::String

Returns

String The hours as "HHMM-HHMM" text, such as "1800-1700".

Units and time zones

On the clock of symbol.timezone.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not give one; period.starts("Session") then uses the calendar day.

Example

if session.starts(symbol.session)
    marker("Session open", position = "below")
end

See also

symbol.timezoneperiod.startssession.within

timeframe.name

valueNexuScript 1.0

The chart's bar size, written as text.

Syntax

timeframe.name::String

Returns

String Minutes as a number in text ("1", "5", "60"), or "D" for daily and "W" for weekly.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the chart does not say.

Example

if bar.last
    table([["Timeframe", timeframe.name]])
end

See also

timeframe.secondstimeframe.intradayhigher

timeframe.seconds

valueNexuScript 1.0

How long one bar of the chart lasts, in seconds.

Syntax

timeframe.seconds::Number

Returns

Number The bar length, such as 300 for a 5 minute chart or 86400 for a daily chart.

Units and time zones

Seconds.

Missing values

Fixed for the whole run, so it may be read in setup. missing when the chart does not say.

Example

plot("Bar length in minutes", timeframe.seconds / 60)

See also

timeframe.nametimeframe.intradaytime

timeframe.intraday

valueNexuScript 1.0

Tests whether the chart's bars are shorter than one day.

Syntax

timeframe.intraday::Bool

Returns

Bool true for minute and hour charts, false for daily and weekly charts.

Missing values

Fixed for the whole run, so it may be read in setup. false when the chart does not say how long a bar is.

Example

if timeframe.intraday && session.starts("0930-1600", "America/New_York")
    marker("Open")
end

See also

timeframe.secondssession.within

symbol.contract

valueNexuScript 1.3

The contract shown on the chart, such as NQZ6.

Syntax

symbol.contract::String

Returns

String The contract code as text. When the chart does not say, the same as symbol.ticker.

Missing values

Fixed for the whole run, so it may be read in setup.

Example

if bar.last
    table([["Contract", symbol.contract]])
end

See also

symbol.tickersymbol.rootsymbol.expiry

symbol.asset_class

valueNexuScript 1.3

What kind of market the symbol is: futures or perpetuals.

Syntax

symbol.asset_class::String

Returns

String "futures", "perps", or empty text when the feed does not say.

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not say.

Example

if bar.last
    table([["Market", symbol.asset_class == "perps" ? "Perpetual" : "Futures"]])
end

See also

symbol.funding_hourssymbol.expirysymbol.contract

symbol.tick_value

valueNexuScript 1.3

How much money one tick is worth on one contract.

Syntax

symbol.tick_value::Number

Returns

Number The money per tick per contract: symbol.tick times symbol.point_value, such as 5 for NQ.

Units and time zones

In the symbol's currency (symbol.currency), per tick, per contract.

Missing values

Fixed for the whole run, so it may be read in setup. missing while the symbol is still loading.

Example

plot("Bar range per contract", (high - low) / symbol.tick * symbol.tick_value)

See also

symbol.ticksymbol.point_valuesymbol.currency

symbol.currency

valueNexuScript 1.3

The currency the symbol's prices and money values are in, such as USD.

Syntax

symbol.currency::String

Returns

String The currency code as text, such as "USD" or "USDT".

Missing values

Fixed for the whole run, so it may be read in setup. Empty text when the feed does not say.

Example

if bar.last
    table([["Tick value", string(symbol.tick_value) * " " * symbol.currency]])
end

See also

symbol.tick_valuesymbol.point_value

symbol.min_qty

valueNexuScript 1.3

The smallest order size allowed.

Syntax

symbol.min_qty::Number

Returns

Number The minimum size, such as 1 contract for futures or 0.001 of a coin on a perpetual.

Units and time zones

Contracts, or coins on a perpetual.

Missing values

Fixed for the whole run, so it may be read in setup. When the feed gives no minimum, it is symbol.qty_step.

Example

const smallest = symbol.min_qty
on bar
    plot("Smallest order", smallest)
end

See also

symbol.qty_stepsymbol.tick_value

symbol.expiry

valueNexuScript 1.3

When the chart's contract expires.

Syntax

symbol.expiry::Number

Returns

Number A time.

Units and time zones

Milliseconds since 1 January 1970 UTC, like time.

Missing values

Fixed for the whole run, so it may be read in setup. missing when the feed does not say, or when the symbol is not a dated contract (a perpetual never expires).

Example

if bar.last
    table([["Expires", clock.format(symbol.expiry, "d MMM yyyy")]])
end

See also

symbol.rollsymbol.contractclock.format

symbol.roll

valueNexuScript 1.3

When trading is expected to move from the chart's contract to the next one.

Syntax

symbol.roll::Number

Returns

Number A time, usually some days before symbol.expiry.

Units and time zones

Milliseconds since 1 January 1970 UTC, like time.

Missing values

Fixed for the whole run, so it may be read in setup. missing when the feed does not say, or when the symbol is not a dated contract.

Example

plot("Days to the roll", (symbol.roll - time) / 86400000)

See also

symbol.expirysymbol.contract

symbol.funding_hours

valueNexuScript 1.3

How many hours pass between a perpetual's funding payments.

Syntax

symbol.funding_hours::Number

Returns

Number The hours between funding payments, such as 8.

Units and time zones

Hours.

Missing values

Fixed for the whole run, so it may be read in setup. missing for futures, and when the feed does not say.

Example

plot("Funding every (h)", symbol.funding_hours)

See also

symbol.asset_classsymbol.currency