CRISIS

(CRISIS) GOLD/SILVER Ratio

126 2 21
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
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out