Skip to content

Commit

Permalink
Polish MFI
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed May 15, 2024
1 parent 239d887 commit d01e854
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions source/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5387,19 +5387,23 @@ and algorithmic trading.

The Money Flow Index (MFI) is a :term:`technical indicator` used in :term:`quantitative finance` and trading to measure the strength and direction of money flowing in and out of a security over a specific period, typically 14 periods. It combines both price and volume data to provide insight into the buying and selling pressure within a security.

The calculation of the Money Flow Index involves several steps:
Traders use the Money Flow Index to identify overbought or oversold conditions in an asset, divergence between price and money flow, and potential :term:`trend` reversals.

- Typical Price (TP): This is the average of the high, low, and closing prices for each period. It's calculated as (High + Low + Close) / 3.
- Money Flow (MF): This is the product of the Typical Price and the volume traded for each period. If the Typical Price is higher than the previous period's Typical Price, it's considered positive money flow, and if it's lower, it's considered negative money flow.
- Money Flow Ratio (MFR): This is the ratio of positive money flow to negative money flow over a specific period (usually 14 periods). It's calculated as (14-period Positive Money Flow) / (14-period Negative Money Flow).
- Money Flow Index (MFI): Finally, the Money Flow Index is calculated using the formula 100 - (100 / (1 + MFR)). It ranges from 0 to 100. A high MFI value suggests that the security is overbought, indicating a potential reversal, while a low MFI value suggests that the security is oversold, indicating a potential buying opportunity.
The calculation of the Money Flow Index involves several steps:

Traders use the Money Flow Index to identify overbought or oversold conditions in a security, divergence between price and money flow, and potential trend reversals. However, like all technical indicators, it's not foolproof and should be used in conjunction with other analysis techniques for better decision-making.
- **Typical Price (TP)**: This is the average of the high, low, and closing prices for each period. It's calculated as (High + Low + Close) / 3.
- **Money Flow (MF)**: This is the product of the Typical Price and the volume traded for each period. If the Typical Price is higher than the previous period's Typical Price, it's considered positive money flow, and if it's lower, it's considered negative money flow.
- **Money Flow Ratio (MFR)**: This is the ratio of positive money flow to negative money flow over a specific period (usually 14 periods). It's calculated as (14-period Positive Money Flow) / (14-period Negative Money Flow).
- **Money Flow Index (MFI)**: Finally, the Money Flow Index is calculated using the formula 100 - (100 / (1 + MFR)). It ranges from 0 to 100. A high MFI value suggests that the security is overbought, indicating a potential reversal, while a low MFI value suggests that the security is oversold, indicating a potential buying opportunity.

- :term:`Technical indicator`

- :term:`Trading Strategy`

- :term:`Trend`

- :term:`Mean reversion`

- :term:`OHLCV`

- :term:`Average Directional Index (ADX)`

0 comments on commit d01e854

Please sign in to comment.