Money Flow Index + VWAP Trend Filter

How It Works
The indicator uses two technical components to produce signals:
- Money Flow Index (MFI) for Momentum Extremes:
The MFI, calculated over a default 14-period length, measures buying and selling pressure using price and volume data. A buy signal is triggered when MFI crosses above the oversold level (default: 20), indicating potential buying pressure, while a sell signal occurs when MFI crosses below the overbought level (default: 80), suggesting selling pressure. - Volume Weighted Average Price (VWAP) for Trend Direction:
The VWAP calculates the average price of an asset, weighted by volume, resetting at the start of each trading session (e.g., daily for stocks). It acts as a dynamic support/resistance level. A bullish trend is confirmed when the price is above the VWAP, and a bearish trend when the price is below the VWAP. This ensures MFI signals are filtered to align with the broader trend direction, plotted as a purple line on the chart.
Signal Generation
Signals are generated using the previous bar’s values to prevent repainting:
- Buy Signal: The MFI crosses above the oversold level, and the price is above the VWAP (bullish trend). Displayed as a green upward triangle below the bar.
- Sell Signal: The MFI crosses below the overbought level, and the price is below the VWAP (bearish trend). Displayed as a red downward triangle above the bar.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Automate TradingView Alerts
tradingviewlink.com/invite?ref=aff_9eq2
🤖🤖🤖🤖
Disclaimer: TradingView Link (tradingviewlink.com) is an independent brand and is not affiliated with, endorsed by, or associated with TradingView.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Automate TradingView Alerts
tradingviewlink.com/invite?ref=aff_9eq2
🤖🤖🤖🤖
Disclaimer: TradingView Link (tradingviewlink.com) is an independent brand and is not affiliated with, endorsed by, or associated with TradingView.