OPEN-SOURCE SCRIPT

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

122

  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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.