CRISIS

(CRISIS) GOLD/SILVER Ratio

122 2 20
Remove from Favorite Scripts Add to Favorite Scripts
study(title="GOLD/SILVER", shorttitle="GOLD/SILVER", overlay=false)

//inputs
Sec1Input = input(defval="XAUUSD", title="First security", type=symbol, confirm=true)
Sec2Input = input(defval="XAGUSD", title="Second security", type=symbol, confirm=true)

//logic
sec(s) => security(s, period, close)
ratio = (sec(Sec1Input) / sec(Sec2Input))

//plot
plot(ratio, color=red, linewidth=3)
How to place trades used this ratio?
What unit sizes do you use for Gold and Silver
Reply
nice work but why not copper and oil too?
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out