OPEN-SOURCE SCRIPT
Aggiornato MFI Divergence

This indicator automatically detects bullish and bearish divergences between price and the Money Flow Index (MFI).
It’s designed for traders who use momentum divergence to anticipate potential trend reversals or continuation traps, and has been optimized to avoid false positives while still catching subtle setups on lower timeframes like 15m.
How It Works
Calculates the Money Flow Index (MFI) using price and volume.
Identifies swing highs and lows on the MFI using adaptive pivot logic.
Compares MFI pivots against corresponding price highs/lows:
Bullish Divergence: Price makes a lower low while MFI makes a higher low.
Bearish Divergence: Price makes a higher high while MFI makes a lower high.
Displays divergences as green (bullish) or red (bearish) lines on the MFI chart.
It’s designed for traders who use momentum divergence to anticipate potential trend reversals or continuation traps, and has been optimized to avoid false positives while still catching subtle setups on lower timeframes like 15m.
How It Works
Calculates the Money Flow Index (MFI) using price and volume.
Identifies swing highs and lows on the MFI using adaptive pivot logic.
Compares MFI pivots against corresponding price highs/lows:
Bullish Divergence: Price makes a lower low while MFI makes a higher low.
Bearish Divergence: Price makes a higher high while MFI makes a lower high.
Displays divergences as green (bullish) or red (bearish) lines on the MFI chart.
Note di rilascio
add center lineScript 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.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
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.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.