mom
forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.mom(source: ArrayLike,period: int = 14,method: str = 'difference') -> np.ndarrayPrice now against price period bars ago.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 14 |
| method | str | 'difference' |
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.