OPEN-SOURCE SCRIPT
Cập nhật ZEC Aggregate Average

**ZEC Aggregate Average** is a multi-exchange price aggregation indicator designed to provide a broader view of Zcash (ZEC) market pricing across multiple cryptocurrency exchanges.
Instead of relying on the price from a single exchange, the indicator pulls ZEC price and volume data from a range of major exchanges and calculates two separate aggregate prices:
### Equal-Weight Average
The **Equal-weight avg** calculates the simple average of all available ZEC prices across the supported exchanges.
Each exchange contributes equally to the calculation, regardless of its trading volume. If an exchange's symbol is unavailable or does not return a valid price, that exchange is automatically excluded from the calculation.
This provides a straightforward representation of the average ZEC price across the available markets.
### Volume-Weighted Average
The **Volume-weight avg** calculates a volume-weighted average price using the available exchange prices and their corresponding trading volumes.
Exchanges with greater reported volume therefore have a greater influence on the resulting aggregate price, while exchanges with lower volume have less influence.
Only valid prices with positive volume are included in the volume-weighted calculation.
### Supported Exchanges
The indicator currently aggregates data from:
* Binance
* Coinbase
* Bybit
* OKX
* Bitget
* Gate.io
* MEXC
* KuCoin
* HTX
* Kraken
* Crypto.com
* Bitstamp
* Bitfinex
* Gemini
The indicator automatically handles unavailable symbols, allowing the calculation to continue using the exchanges that are providing valid data.
### How It Can Be Used
ZEC Aggregate Average can be used as a reference for evaluating ZEC's broader market price rather than relying exclusively on a single exchange.
Instead of relying on the price from a single exchange, the indicator pulls ZEC price and volume data from a range of major exchanges and calculates two separate aggregate prices:
### Equal-Weight Average
The **Equal-weight avg** calculates the simple average of all available ZEC prices across the supported exchanges.
Each exchange contributes equally to the calculation, regardless of its trading volume. If an exchange's symbol is unavailable or does not return a valid price, that exchange is automatically excluded from the calculation.
This provides a straightforward representation of the average ZEC price across the available markets.
### Volume-Weighted Average
The **Volume-weight avg** calculates a volume-weighted average price using the available exchange prices and their corresponding trading volumes.
Exchanges with greater reported volume therefore have a greater influence on the resulting aggregate price, while exchanges with lower volume have less influence.
Only valid prices with positive volume are included in the volume-weighted calculation.
### Supported Exchanges
The indicator currently aggregates data from:
* Binance
* Coinbase
* Bybit
* OKX
* Bitget
* Gate.io
* MEXC
* KuCoin
* HTX
* Kraken
* Crypto.com
* Bitstamp
* Bitfinex
* Gemini
The indicator automatically handles unavailable symbols, allowing the calculation to continue using the exchanges that are providing valid data.
### How It Can Be Used
ZEC Aggregate Average can be used as a reference for evaluating ZEC's broader market price rather than relying exclusively on a single exchange.
Phát hành các Ghi chú
ZEC Aggregate Average is a multi-exchange price aggregation indicator designed to provide a broader view of Zcash (ZEC) market pricing across multiple cryptocurrency exchanges.Instead of relying on the price from a single exchange, the indicator pulls ZEC price and volume data from a range of major exchanges and calculates two separate aggregate prices:
Equal-Weight Average
The Equal-weight avg calculates the simple average of all available ZEC prices across the supported exchanges.
Each exchange contributes equally to the calculation, regardless of its trading volume. If an exchange's symbol is unavailable or does not return a valid price, that exchange is automatically excluded from the calculation.
This provides a straightforward representation of the average ZEC price across the available markets.
Volume-Weighted Average
The Volume-weight avg calculates a volume-weighted average price using the available exchange prices and their corresponding trading volumes.
Exchanges with greater reported volume therefore have a greater influence on the resulting aggregate price, while exchanges with lower volume have less influence.
Only valid prices with positive volume are included in the volume-weighted calculation.
Supported Exchanges
The indicator currently aggregates data from:
* Binance
* Coinbase
* Bybit
* OKX
* Bitget
* Gate.io
* MEXC
* KuCoin
* HTX
* Kraken
* Crypto.com
* Bitstamp
* Bitfinex
* Gemini
The indicator automatically handles unavailable symbols, allowing the calculation to continue using the exchanges that are providing valid data.
How It Can Be Used
ZEC Aggregate Average can be used as a reference for evaluating ZEC's broader market price rather than relying exclusively on a single exchange.
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.