run_eth

MTF Ticker BITMEX:XBTUSD

In light of TV awarding me a year subscription I wanted to give back with this simple script that allows multiple views on tickers on a single pane of glass. The background is sourced from Heiken Ashi candles. Free accounts can max out on 3 indicators allowing a view on 4 tickers for one screen.

//@version=3
// cryptocodes.ca
study("MTF Ticker BITMEX:XBTUSD", shorttitle="MEX:BTC")

Static_Ticker = input(title="Ticker", defval='BITMEX:XBTUSD')
bgOffset = input(type=integer, defval=0, minval=-20, maxval=20, title="Background Offset")
Static_TimeFrame = input(false, title="Static Time Frame?")
Time_Frame = input(title="Time Frame", defval='D')
haclose = Static_TimeFrame ? security(heikinashi(Static_Ticker), Time_Frame, close) : security(heikinashi(Static_Ticker), period, close)
haopen = Static_TimeFrame ? security(heikinashi(Static_Ticker), Time_Frame, open) : security(heikinashi(Static_Ticker), period, open)

o = Static_TimeFrame ? security(Static_Ticker, Time_Frame, open) : security(Static_Ticker, period, open)
h = Static_TimeFrame ? security(Static_Ticker, Time_Frame, high) : security(Static_Ticker, period, high)
l = Static_TimeFrame ? security(Static_Ticker, Time_Frame, low) : security(Static_Ticker, period, low)
c = Static_TimeFrame ? security(Static_Ticker, Time_Frame, close) : security(Static_Ticker, period, close)

bgcolor(haopen<haclose ? green:maroon, offset=bgOffset, transp=75, title="Heikin Ashi BG")
plotcandle(o, h, l, c, color = open<close ? green:red, wickcolor = gray, title='Ticker')
Remove from Favorite Scripts Add to Favorite Scripts
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request 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