Change
Value now minus the value a number of bars ago.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 1 | 1 to 5000 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| change | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- period bars (1 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-12
Formula
change = x[i] - x[i-period]