force
forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.force(source: ArrayLike,volume: ArrayLike,period: int = 13,method: str = 'sma') -> np.ndarrayForce index: the volume times the change of a moving average of the price.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| volume | ArrayLike | |
| period | int | 13 |
| method | str | 'sma' |
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.