Delay
The series moved a number of bars back.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| n | int | 1 | 0 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| delay | value | Optional | color theme.series_d, style line, width 1 |
- Warm-up
- n bars (1 at the defaults)
- Repaints
- No
- Parity
- None
Formula
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.