OPEN-SOURCE SCRIPT
Adaptive Market Volume_Forex_more

### Adaptive Market Volume – Forex & Gold
**Adaptive Market Volume** was designed to make volume/activity analysis more useful in markets where the volume displayed by the instrument does not necessarily represent the entire market, such as Forex, Gold, and index CFDs.
In decentralized markets such as Forex, the indicator **does not attempt to convert tick volume into true global volume**. Instead, it uses related centralized futures markets as institutional activity proxies. Each data source is normalized independently and, when available, combined with the instrument's local activity through a **Hybrid model**, producing a relative measure of market participation.
For example, **GBPUSD uses British Pound futures (6B)** as a reference, **EURUSD uses Euro futures (6E)**, and **XAUUSD uses Gold futures (GC)**. Supported index and energy CFDs use their corresponding futures markets as activity proxies as well.
The indicator also applies time-based normalization to reduce distortions caused by different trading sessions and typical intraday volume patterns.
Additional analysis modes include **Relative Momentum, Cumulative Effort, Efficiency, Micro Z-Score, and Micro Contrast**. Micro Contrast is especially useful on lower timeframes such as M1–M5, making differences between low, medium, and high activity easier to visualize without changing the underlying Adaptive Volume calculation.
**Recommended markets:**
**Forex:** EURUSD, GBPUSD, AUDUSD, NZDUSD, USDJPY, USDCHF, and USDCAD.
**Gold:** XAUUSD.
**Supported Indices:** Nasdaq 100, S&P 500, Dow Jones, Russell 2000, Nikkei 225, Hang Seng, DAX, and BRA50/Ibovespa when recognized through supported ticker aliases.
**Energy:** WTI Crude Oil and Natural Gas on supported symbols.
**Crypto, stocks, and futures:** use the native volume available from the instrument's own market/data feed.
**Important:** Adaptive Market Volume represents **relative market activity, not absolute global volume**. Results on Forex and CFDs depend on the availability and quality of both the local data feed and the corresponding futures proxy. Forex crosses without a direct proxy—such as EURJPY, AUDJPY, EURCHF, CADJPY, and CHFJPY—can still be used, but rely primarily on local activity and therefore do not have the same Adaptive coverage as the recommended Forex pairs.
**Adaptive Market Volume** was designed to make volume/activity analysis more useful in markets where the volume displayed by the instrument does not necessarily represent the entire market, such as Forex, Gold, and index CFDs.
In decentralized markets such as Forex, the indicator **does not attempt to convert tick volume into true global volume**. Instead, it uses related centralized futures markets as institutional activity proxies. Each data source is normalized independently and, when available, combined with the instrument's local activity through a **Hybrid model**, producing a relative measure of market participation.
For example, **GBPUSD uses British Pound futures (6B)** as a reference, **EURUSD uses Euro futures (6E)**, and **XAUUSD uses Gold futures (GC)**. Supported index and energy CFDs use their corresponding futures markets as activity proxies as well.
The indicator also applies time-based normalization to reduce distortions caused by different trading sessions and typical intraday volume patterns.
Additional analysis modes include **Relative Momentum, Cumulative Effort, Efficiency, Micro Z-Score, and Micro Contrast**. Micro Contrast is especially useful on lower timeframes such as M1–M5, making differences between low, medium, and high activity easier to visualize without changing the underlying Adaptive Volume calculation.
**Recommended markets:**
**Forex:** EURUSD, GBPUSD, AUDUSD, NZDUSD, USDJPY, USDCHF, and USDCAD.
**Gold:** XAUUSD.
**Supported Indices:** Nasdaq 100, S&P 500, Dow Jones, Russell 2000, Nikkei 225, Hang Seng, DAX, and BRA50/Ibovespa when recognized through supported ticker aliases.
**Energy:** WTI Crude Oil and Natural Gas on supported symbols.
**Crypto, stocks, and futures:** use the native volume available from the instrument's own market/data feed.
**Important:** Adaptive Market Volume represents **relative market activity, not absolute global volume**. Results on Forex and CFDs depend on the availability and quality of both the local data feed and the corresponding futures proxy. Forex crosses without a direct proxy—such as EURJPY, AUDJPY, EURCHF, CADJPY, and CHFJPY—can still be used, but rely primarily on local activity and therefore do not have the same Adaptive coverage as the recommended Forex pairs.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.