Momentum

Calculates the Momentum indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
applyToSeries<Number>
close
-
periodNumber14-

Returns: Series<Number>

Momentum is a built-in function - you can use it directly. Below is an example implementation:

12
function Momentum(applyTo = close, period = 14):
(applyTo / applyTo[period]) * 100