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 floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Series of values to process. |
fastLength | int | No | — | Fast EMA length (default 23). |
slowLength | int | No | — | Slow EMA length (default 50). |
cycleLength | int | No | — | Cycle length (default 10). |
Returns
series floatExample
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.