CRISIS

(CRISIS) GOLD/SILVER Ratio

290 views
36
290 2
Simple Gold to Silver ratio indicator.
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)

Comments

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
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out