Skip to content
Algo Trade Analytics Docs
Pine library page — review pending. This page is preserved for compatibility but is not part of the reviewed search index. Check the official Pine Script v6 reference before relying on its explanation, signature, or example.

ta.mom() - Pine Script Function

Momentum of source price and source price length bars ago. This is simply a difference: source - source[length].

ta.mom(source, length) → series float
NameTypeDescription
sourceseries int/floatSeries of values to process.

Momentum of source price and source price length bars ago.

  • na values in the source series are included in calculations and will produce an na result.