delay

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.delay(source: ArrayLike, n: int = 1) -> np.ndarray

The source n bars ago: value[i] = source[i - n].

Parameters

NameTypeDefault
sourceArrayLike
nint1

Indicator: Delay

A series can only be moved back in time. The first n bars have no value, and n = 0 is a copy of the source.

Classpython
forge.ta.Delay(**inputs: Any) -> None

The series moved a number of bars back.

Inputs

NameTypeDefaultRange
sourcesourceclose
nint10 to 5000

The source n bars ago: value[i] = source[i - n]. A series can only be moved back in time; the first n bars have no value.