ticker
Ticker ids for request.market (VENUE:SYMBOL; sessions and adjustments do not apply to 24/7 coin markets).
#Functions
#ticker.heikinashifunction
A Heikin-Ashi id of the market: request.market on it runs on Heikin-Ashi candles.
ticker.heikinashi(symbol: string): string| Parameter | Type | Description |
|---|---|---|
symbol | string | The symbol. |
Returns string.
Example
const haClose = request.market(ticker.heikinashi(market.id), "", close)Since ChartScript 1
#ticker.inheritfunction
symbol with the modifiers of from_tickerid (its Heikin-Ashi #HA).
ticker.inherit(from_tickerid: string, symbol: string): string| Parameter | Type | Description |
|---|---|---|
from_tickerid | string | The from tickerid. |
symbol | string | The symbol. |
Returns string.
Example
const id = ticker.inherit(market.id, "BINANCE:ETHUSDT")Since ChartScript 1
#ticker.modifyfunction
The market id with another session / adjustment (the same id for 24/7 coin markets).
ticker.modify(tickerid: string, { session?: string = session.regular, adjustment?: string = adjustment.none, backadjustment?: string = backadjustment.inherit, settlement_as_close?: string = settlement_as_close.inherit }): string| Parameter | Type | Description |
|---|---|---|
tickerid | string | The tickerid. |
session | stringdefault session.regular | A session such as "0930-1600" (UTC unless timezone is given). |
adjustment | stringdefault adjustment.none | The adjustment. |
backadjustment | stringdefault backadjustment.inherit | The backadjustment. |
settlement_as_close | stringdefault settlement_as_close.inherit | The settlement as close. |
Returns string.
Example
const id = ticker.modify(market.id, session.extended)Since ChartScript 1
#ticker.newfunction
A market id from a venue and a symbol ("BINANCE", "BTCUSDT" -> "BINANCE:BTCUSDT").
ticker.new(prefix: string, ticker: string, { session?: string = session.regular, adjustment?: string = adjustment.none, backadjustment?: string = backadjustment.inherit, settlement_as_close?: string = settlement_as_close.inherit }): string| Parameter | Type | Description |
|---|---|---|
prefix | string | The prefix. |
ticker | string | The ticker. |
session | stringdefault session.regular | A session such as "0930-1600" (UTC unless timezone is given). |
adjustment | stringdefault adjustment.none | The adjustment. |
backadjustment | stringdefault backadjustment.inherit | The backadjustment. |
settlement_as_close | stringdefault settlement_as_close.inherit | The settlement as close. |
Returns string.
Example
const id = ticker.new(market.venue, market.symbol)
const c = request.market(id, "1D", close)Since ChartScript 1
#ticker.standardfunction
The plain market id (a Heikin-Ashi id loses its #HA).
ticker.standard({ symbol?: string = market.id }): string| Parameter | Type | Description |
|---|---|---|
symbol | stringdefault market.id | The symbol. |
Returns string.
Example
const id = ticker.standard(ticker.heikinashi(market.id))Since ChartScript 1
#Not available yet
#ticker.kagifunction
Not available yet.
Not available: ChartDeck draws time-based bars.
Since ChartScript 1
#ticker.linebreakfunction
Not available yet.
Not available: ChartDeck draws time-based bars.
Since ChartScript 1
#ticker.pointfigurefunction
Not available yet.
Not available: ChartDeck draws time-based bars.
Since ChartScript 1
#ticker.renkofunction
Not available yet.
Not available: ChartDeck draws time-based bars.
Since ChartScript 1