OPEN-SOURCE SCRIPT

黄金人民币价格(每克)v6

123

  1. 🟡 Title: Gold Spot Price in Chinese Yuan (per gram)

This indicator converts the XAUUSD gold spot price into Chinese Yuan per gram (CNY/g) in real-time, based on the offshore USD/CNH exchange rate.

  1. 📌 Features:

  • Recalculates gold price in CNY using:
    Pine Script®
    CNY/g = XAUUSD × USDCNH ÷ 31.1035
  • Uses standard gold-to-gram conversion (1 troy ounce = 31.1035 grams)
  • Ideal for traders who monitor gold prices in RMB, such as arbitrage between offshore and onshore markets

  1. 📈 Data Sources:

  • XAUUSD: Gold spot price in USD
  • USDCNH: Offshore RMB exchange rate


You can use this script to track gold prices from an RMB perspective, compare against domestic benchmarks (e.g. AU9999), or monitor cross-border pricing dynamics.

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.