# Money Flow Index (MFI)

#### Description <a href="#description_59" id="description_59"></a>

The MFI is an oscillator that makes use of both volume and price to measure buying and selling pressure. MFI, which was developed by Gene Quong and Avrum Soudack, is also known as volume-weighted [*RSI*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#relative-strength-index-rsi). MFI starts with the typical price for each period. Money flow is then positive when this aforementioned typical price increases (buying pressure) and negative when it decreases (selling pressure). A ratio of positive-negative money flow is then inserted into an RSI formula to come up with an oscillator that fluctuates between 0 and 100. The MFI, which is a momentum oscillator linked to volume, is best used for identifying reversals and price extremes with a variety of different signals.

#### Interpretation <a href="#interpretation_28" id="interpretation_28"></a>

The MFI is interpreted similarly to the RSI indicator. The MFI’s decisive factor is much stronger than the RSI’s when it comes to trend direction, due to the fact that volume is included in the calculation.

#### Further information <a href="#further-information_23" id="further-information_23"></a>

VTAD: <http://vtadwiki.vtad.de/index.php/Money_Flow_Index>

#### Usage <a href="#usage_61" id="usage_61"></a>

```csharp
MFI(int period)
MFI(IDataSeries inSeries, int period)
MFI(int period)[int barsAgo]
MFI(IDataSeries inSeries, int period)[int barsAgo]
```

#### Return value <a href="#return-value_58" id="return-value_58"></a>

**double**

When using this method with an index (e.g. **MFI**(14)\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameters <a href="#parameters_51" id="parameters_51"></a>

inSeries Input data series for the indicator

period Number of bars included in the calculations

#### Visualization <a href="#visualization_54" id="visualization_54"></a>

![Money Flow Index (MFI)](https://agenatrader.github.io/AgenaIndicator-documentation/media/MoneyFlowIndex.jpg)

#### Example <a href="#example_57" id="example_57"></a>

```csharp
//Current MFI value
Print("The current value for the MFI is: " + MFI(14)[0]);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/standard-indicators/money-flow-index-mfi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
