force

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.force(source: ArrayLike,volume: ArrayLike,period: int = 13,method: str = 'sma') -> np.ndarray

Force index: the volume times the change of a moving average of the price.

Parameters

NameTypeDefault
sourceArrayLike
volumeArrayLike
periodint13
methodstr'sma'

Indicator: Force index

volume[i] * (MA[i] - MA[i-1]) with the average method (sma, ema, smma or lwma), as MetaTrader 5 computes it. The first value is on bar period.