MOM
MOM
Summary
Momentum: current price minus the price optInTimePeriod bars ago. The absolute (unnormalized) rate of change. Positive = price rose over the period, negative = fell; centered at zero.
Formula
MOM[i] = inReal[i] - inReal[i - optInTimePeriod]
Inputs
inReal— Input price series
Outputs
outReal— Momentum (current minus value optInTimePeriod bars ago)
Parameters
| Parameter | Type | Default | Accepted values | Description |
|---|---|---|---|---|
optInTimePeriod | integer | 10 | 1–100000 | Lookback distance in bars |
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
Implementation
TA-Lib Definition: mom.c · mom.yaml
| Native | File |
|---|---|
| C | ta_MOM.c |
| Rust | mom.rs |
| Java | Core_MOM.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Momentum