gurple

DOW / GOLD Ratio

This indicator shows the ratio between the DJIA and the price of gold. When the ratio is below 5 it is generally accepted that a rotation from commodities to equities should be investigated. When the ratio is above 30 it is, likewise, advised to consider rotating from equities to commodities.

This is a modest improvement of the script to mark the key thresholds where equities/commodities holdings rotations could be prudent. I’m sure I’ll be submitting a number of instances of these scripts as I learn the syntax and features while developing them.

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
study(title="DOW/GOLD", shorttitle="DOW/GLD", overlay=false)
sym(s) => security(s, period, close)
DOWVGLD = (sym("DOWI") / sym("XAUUSD"))
plot(40, color=orange)
plot(30, color=fuchsia)
plot(5, color=fuchsia)
plot(3.20, color=orange)
plot(DOWVGLD, color=navy, linewidth=1)