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

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

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

plot(ratio, color=red, linewidth=3)
How to place trades used this ratio?
What unit sizes do you use for Gold and Silver
nice work but why not copper and oil too?
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
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 Contact Support Ideas Published Followers Following Private Messages Chat Sign Out