Exchange Comparison [Diabolicus]

This script helps you compare bitcoin             prices across different currency pairs and exchanges. Quickly judge at a glance if "your" exhange currently trades above or below the rest of the market.
Each colored line represents an exchange pair of your choice. Exchange pairs must be entered normalized to USD, so for BTCEUR             or XBTEUR multiply by EURUSD             , for BTCCNY             divide by USDCNH             respectively.
Remove from Favorite Scripts Add to Favorite Scripts
study("Exchange Comparison [Diabolicus]", shorttitle="ExComp_Dia", overlay=true)

// 141113
// Exchange pairs must be normalized to USD, so multiply by EURUSD or divide by USDCNH respectively

pair1 = input(defval="BITFINEX:BTCUSD",title="Exchange Pair 1 Yellow")
pair2 = input(defval="BTCE:BTCUSD",title="Exchange Pair 2 Green")
pair3 = input(defval="BITSTAMP:BTCUSD",title="Exchange Pair 3 Orange")
pair4 = input(defval="KRAKEN:XBTEUR*EURUSD",title="Exchange Pair 4 Blue")
pair5 = input(defval="HUOBI:BTCCNY/USDCNH",title="Exchange Pair 5 Red")
pair6 = input(defval="OKCOIN:BTCCNY/USDCNH",title="Exchange Pair 6 Lime")

eurusd = sym_hl2("FX:EURUSD")
usdcnh = sym_hl2("FX:USDCNH")

base = ticker == "XBTEUR" ? 2 : ticker == "BTCEUR" ? 2 : ticker == "BTCCNY" ? 3 : 1

factor = base==2 ? 1/eurusd : base==3 ? usdcnh : 1

nice one
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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