Documentation / @finchart/indicators / SeededRecursiveFold
Interface: SeededRecursiveFold
Defined in: indicators/src/kernels.ts:226
A Wilder recursion whose state starts at a constant and applies the recurrence from the first observation on — KDJ's K and D start at 50, so a first RSV of 80 reads K = (50·2 + 80) / 3 = 60, not 80. A null input (a gap, or a value that is not an observation) is no reading and leaves the state where it was — the recursion's memory is counted in observations, not bars, so a node built on it declares no lookback. A step that leaves the range is no reading and no state, like rmaFold's.
Methods
restore()
restore(
state):void
Defined in: indicators/src/kernels.ts:229
Parameters
state
Returns
void
snapshot()
snapshot():
SeededRecursiveState
Defined in: indicators/src/kernels.ts:228
Returns
step()
step(
value):number|null
Defined in: indicators/src/kernels.ts:227
Parameters
value
number | null
Returns
number | null