# Momentum

`mom`

Price 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 |  |

## Outputs

| Name | Kind |
| --- | --- |
| mom | value |

Warm-up: period bars (14 at the defaults).

Repaints: No.

## Formula

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.
