Momentum
Price now against price a number of bars ago.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 to 5000 |
| method | choice | difference |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| mom | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- period bars (14 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-12
Formula
difference: x[i] - x[i-period]
mt5: x[i] * 100 / x[i-period], the MetaTrader 5 form, centred on 100
An earlier value of 0 leaves the mt5 bar empty.