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

Momentum / Reference

alerta.ta.stc

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

Calculates the Schaff Trend Cycle oscillator.

alerta.ta.stc(source, fastLength, slowLength, cycleLength) → series float

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Series of values to process.
fastLengthintNo—Fast EMA length (default 23).
slowLengthintNo—Slow EMA length (default 50).
cycleLengthintNo—Cycle length (default 10).

Returns

series float

Example

alerta.ta.stc
plot(stc(close, 23, 50, 10), { pane: "oscillator" })

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.