Schaff trend cycle - FXB.ta.STC

The FXB.ta.STC class calculates the Schaff trend cycle. It is a value-based calculation, and can be applied to any series of values including the output of another FXB.ta calculation. Parameters are as follows:

Parameter

Description

fast

Period for fast moving average (e.g. 12)

slow

Period for slow moving average (e.g. 26)

smoothingPeriod

Smoothing period (e.g.109)

maType

Type of moving average for the fast and slow averages. Defaults to an exponential moving average (ema / 1).