ta.mom() - Pine Script Function
ta.mom()
Section titled “ta.mom()”Overview
Section titled “Overview”Momentum of source price and source price length bars ago. This is simply a difference: source - source[length].
Syntax
Section titled “Syntax”ta.mom(source, length) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int/float | Series of values to process. |
Returns
Section titled “Returns”Momentum of source price and source price length bars ago.
Remarks
Section titled “Remarks”- na values in the source series are included in calculations and will produce an na result.