OPEN-SOURCE SCRIPT
RSI & MFI Candle Color tohungmc tik

RSI & MFI Candle Color with Alerts is a visual momentum indicator that highlights overbought and oversold conditions directly on your chart using candle colors.
This script combines the Relative Strength Index (RSI) and the Money Flow Index (MFI) with flexible settings, allowing you to:
✅ Display candle color based on RSI
✅ Display candle color based on MFI
✅ Show only candles where both RSI and MFI agree (for stronger signals)
✅ Customize overbought and oversold thresholds
✅ Receive real-time alerts when conditions are met at candle close
Color Logic:
White candles = Overbought (above threshold)
Blue candles = Oversold (below threshold)
Use case:
This tool is useful for traders who want quick, visual confirmation of momentum extremes, and who may combine RSI and MFI for higher accuracy.
Tip: Use with hidden candles (turn off price candles) or overlay it on price action for enhanced visibility.
This script combines the Relative Strength Index (RSI) and the Money Flow Index (MFI) with flexible settings, allowing you to:
✅ Display candle color based on RSI
✅ Display candle color based on MFI
✅ Show only candles where both RSI and MFI agree (for stronger signals)
✅ Customize overbought and oversold thresholds
✅ Receive real-time alerts when conditions are met at candle close
Color Logic:
White candles = Overbought (above threshold)
Blue candles = Oversold (below threshold)
Use case:
This tool is useful for traders who want quick, visual confirmation of momentum extremes, and who may combine RSI and MFI for higher accuracy.
Tip: Use with hidden candles (turn off price candles) or overlay it on price action for enhanced visibility.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.