Momentum
forge.taclassSince Forge API 1
Signaturepython
forge.ta.Momentum(**inputs: Any) -> NonePrice now against price a number of bars ago.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 to 5000 |
| method | choice | difference |
difference: x[i] - x[i-period]
mt5: x[i] * 100 / x[i-period], the MetaTrader 5 form, centred on 100
An earlier value of 0 leaves the mt5 bar empty.