Skip to content

charton API


charton API / @chart-on/ta / schaffTrendCycleAt

Function: schaffTrendCycleAt() ​

schaffTrendCycleAt(values, i, fast, slow, cycle, out, state): number

Defined in: smi-stc.ts:152

Single-bar form of schaffTrendCycle: reads bar i - 1 of state, writes bar i of state and out, and returns the value.

Parameters ​

values ​

Series

i ​

number

fast ​

number

slow ​

number

cycle ​

number

out ​

Float64Array

state ​

SchaffTrendCycleState

Returns ​

number