OPEN-SOURCE SCRIPT
Gold Price Table

هذا المؤشر هو أداة تحليلية مخصصة لمتابعة أسعار الذهب لحظياً مباشرة على منصة TradingView. يقوم الكود بجلب سعر أونصة الذهب العالمي (
XAUUSD$) وسعر صرف الدولار مقابل الريال السعودي (
USDSAR$) ليقوم بالحسابات التالية:حساب عيارات الذهب: استخراج سعر جرام الذهب لعيارات (24، 22، 21) بالدولار والريال السعودي بدقة تعتمد على الوزن العالمي للأونصة ($31.1034768$ جرام).تحليل الأداء: مقارنة السعر الحالي بإغلاقات سابقة (يومية، أسبوعية، شهرية) لحساب نسبة التغير المئوية.جدول بيانات ذكي: يعرض النتائج في جدول أنيق في زاوية الشارت، مع دمج خلايا التغير لتجنب التكرار وتلوين الأرقام (أخضر للصعود وأحمر للهبوط) لتسهيل القراءة السريعة أثناء التداول
-----------------------------------------------------------------------------------------------------------------
This indicator is a custom analytical tool
designed for real-time gold price tracking directly on TradingView. The script fetches the global Gold Spot price (
XAUUSD$) and the UUSD/SAR$ exchange rate to perform the following:Gold Karat Calculation: It calculates the price per gram for 24K, 22K, and 21K gold in both USD and Saudi Riyals (SAR), based on the official international troy ounce weight ($31.1034768$ grams).Performance Analysis: It compares the current price with previous closes (Daily, Weekly, and Monthly) to calculate the percentage change.Smart Data Table: Displays the results in a clean table at the corner of the chart. It features merged cells for the "Change %" to eliminate redundancy and uses dynamic coloring (Green for bullish / Red for bearish) for quick visual assessment during trading sessions.
by: dana..
-----------------------------------------------------------------------------------------------------------------
This indicator is a custom analytical tool
designed for real-time gold price tracking directly on TradingView. The script fetches the global Gold Spot price (
by: dana..
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.