ForceIndex

Calculates the Force Index indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
periodNumber13-

Returns: Series<Number>

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

1 function ForceIndex(period = 13):
2 volume * (SMA(close, period) - SMA(close, period)[1])