OPEN-SOURCE SCRIPT
Stochastic Money Flow Index

The Stochastic Money Flow Index (or Stochastic MFI), is a variation of the classic Stochastic RSI that uses the Money Flow Index (MFI) rather than the Relative Strength Index (RSI) in its calculation.
While the RSI focuses solely on price momentum, the MFI is a volume-weighted indicator, meaning it incorporates both price and volume data.
The Stochastic MFI is intended to provide a more precise and sensitive reading of the MFI by measuring the level of the MFI relative to its range over a specific period.
Settings
Stochastic Settings
Money Flow Index Settings
Additional Settings
While the RSI focuses solely on price momentum, the MFI is a volume-weighted indicator, meaning it incorporates both price and volume data.
The Stochastic MFI is intended to provide a more precise and sensitive reading of the MFI by measuring the level of the MFI relative to its range over a specific period.
Settings
Stochastic Settings
- %K Length: The number of periods used to calculate the Stochastic. (Default: 14)
- %K Smoothing: The SMA length used to 'smooth' the %K line. (Default: 3)
- %D Smoothing: The SMA length used to 'smooth' the %D line. (Default: 1)
Money Flow Index Settings
- MFI Length: The number of periods used to calculate the Money Flow Index. (Default: 14)
- MFI Source: The source used to calculate the Money Flow Index. (Default: close)
Additional Settings
- Show Overbought/Oversold Gradients?: Toggle the display of overbought/oversold gradients. (Default: true)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.