# Money flow index

`mfi`

RSI built from price times volume, from 0 to 100.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| period | int | 14 | 1 to 5000 |
| volume | volume | tick |  |

## Outputs

| Name | Kind |
| --- | --- |
| mfi | value |

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

Repaints: No.

## Formula

The typical price times volume is positive flow on a bar whose typical price rose and negative flow on one that fell; it counts in neither when it did not move

MFI = 100 * positive / (positive + negative) over the last period bars

Only positive flow reads 100, no flow reads 50.
