mom

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.mom(source: ArrayLike,period: int = 14,method: str = 'difference') -> np.ndarray

Price now against price period bars ago.

Parameters

NameTypeDefault
sourceArrayLike
periodint14
methodstr'difference'

Indicator: Momentum

difference is the two prices subtracted. mt5 is MetaTrader 5's ratio, price now times 100 over the earlier price, centred on 100; an earlier price of 0 leaves the bar empty.