OPEN-SOURCE SCRIPT
更新済 Volume with Bill Williams Market Facilitation Index Coloring

Volume indicator with Bill Williams Market Facilitation Index (BW MFI) coloring.
This indicator applies Bill Williams' BW MFI color logic to volume analysis by comparing price range changes (High-Low) and volume changes.
Market states:
🟢 Green — Range Up + Volume Up
Increasing range and increasing volume indicate strong market activity and participation.
🔵 Blue — Range Up + Volume Down
Price range expands while volume decreases, showing movement with weaker participation.
🩷 Pink — Range Down + Volume Up
Volume increases while price range decreases, indicating a possible battle between buyers and sellers.
🟤 Brown — Range Down + Volume Down
Both range and volume decrease, showing reduced market activity.
Features:
• BW MFI color-based volume analysis
• Optional Volume Moving Average
• Customizable colors
Based on Bill Williams' Market Facilitation Index methodology.
This indicator applies Bill Williams' BW MFI color logic to volume analysis by comparing price range changes (High-Low) and volume changes.
Market states:
🟢 Green — Range Up + Volume Up
Increasing range and increasing volume indicate strong market activity and participation.
🔵 Blue — Range Up + Volume Down
Price range expands while volume decreases, showing movement with weaker participation.
🩷 Pink — Range Down + Volume Up
Volume increases while price range decreases, indicating a possible battle between buyers and sellers.
🟤 Brown — Range Down + Volume Down
Both range and volume decrease, showing reduced market activity.
Features:
• BW MFI color-based volume analysis
• Optional Volume Moving Average
• Customizable colors
Based on Bill Williams' Market Facilitation Index methodology.
リリースノート
Updated the BW MFI calculation and logic.* Uses the classic MFI = (High − Low) / Volume formula.
* Added × 1e12 scaling for reliable comparison of small MFI values.
* MFI direction is determined strictly by comparing the current bar with the previous bar.
* Properly handles cases where MFI or Volume remains unchanged.
* Volume and Volume MA calculations remain unchanged.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。