mom
Change (Difference from historical value)
mom(source, length)
Parameters
| Name | Type | Description |
|---|---|---|
source |
field | Data series |
length |
int | Periods to look back |
Formula
mom = source - source[length]
Examples
mom(close, 1) > 0; // positive gain from prior bar
mom(high, 5) < 0; // lower high from 5 bars ago
mom(volume, 10) >= volume[10]; // volume more than doubled from 10 bars ago
Returns
float
Range
length must be 1-400
Notes
Functionally identical to change(); provided under momentum-indicator naming