Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.ta.crossover
On this pageSignatureParametersReturnsExample

Core / Reference

alerta.ta.crossover

TradingView-compatible spelling: ta.crossover, runs without warnings

Returns true if `a` crossed above `b`.

alerta.ta.crossover(a, b) → series bool

Parameters

NameTypeRequiredDefaultDescription
aseriesYes—First series.
bseriesYes—Second series.

Returns

series bool

Example

alerta.ta.crossover
const buy = crossover(sma(close, 10), sma(close, 20))

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.