delay
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.delay(source: ArrayLike, n: int = 1) -> np.ndarrayThe source n bars ago: value[i] = source[i - n].
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| n | int | 1 |
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) -> NoneThe series moved a number of bars back.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| n | int | 1 | 0 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.