MOMENTUM & OSCILLATORS

Schaff trend cycle

A 0-100 trend-cycle meter built to catch turns earlier than MACD.

spec id: stcfast (default 23) · slow (default 50) · cycle (default 10)

What does Schaff trend cycle measure?

A 0-100 trend-cycle meter built to catch turns earlier than MACD. Crossing up through ~25 and down through ~75 are the usual triggers.

How is Schaff trend cycle calculated?

Take a MACD-style gap between a 23-candle and a 50-candle exponential average. Then run that gap through a stochastic over 10 candles — where does it sit in its own recent range — and smooth it. Then do the whole stochastic step a SECOND time on the result.

Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.

How do I use Schaff trend cycle in a bot?

In the builder, add an indicator of type stc (parameters: fast, default 23; slow, default 50; cycle, default 10). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.

Related indicators

Or browse all 158 indicators in the full library.

Build a bot that trades on Schaff trend cycle — the first backtest is free.

Run a free backtest