Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.ticker.inherit
On this pageSignatureParametersReturnsExample

Data requests / Reference

alerta.ticker.inherit

TradingView-compatible spelling: ticker.inherit, runs without warnings

Pine v6: builds a ticker that inherits the alternative-feed type of `from_tickerid` (HA/Renko/Kagi/PF) but uses a different symbol. From a plain chart the result is simply `symbol`, so `request.security(ticker.inherit(syminfo.tickerid, other), …)` fetches `other`.

alerta.ticker.inherit(from_tickerid, symbol) → string

Parameters

NameTypeRequiredDefaultDescription
from_tickeridstringYes—Reference ticker.
symbolstringYes—New symbol to apply the same feed type to.

Returns

string

Example

alerta.ticker.inherit
ethHA = ticker.inherit(ticker.heikinashi(syminfo.tickerid), "BINANCE:ETHUSDT")

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.