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..
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.