UnknownUnicorn2188849

Altcoins Index Premiums

UnknownUnicorn2188849 Обновлено   
Multiple index premiums for a bunch of altcoins, all put together in one indicator.

It compares the prices of the perpetual swaps for ETH, LTC, XRP, LINK, DOT and YFI to their respective spot dollar indices.
Positive values (green) means the spot index is trading at a premium, which is considered bullish.
Negative values (red) means the spot index is trading at a discount, which is considered bearish.

In the settings you can select for which altcoin you want to display the index premium.
Only select one at the time or they'll start overlapping.

For ETH the Bitmex ETH/USD perp is used and the BETH spot dollar index.
For LTC the Bitmex LTC/USD perp is used and the BLTC spot dollar index.
For XRP the Bitmex XRP/USD perp is used and the BXRP spot dollar index.
For LINK the Bitmex LINK/USD perp is used and the BLINKT spot dollar index.
For DOT the Binance DOT/USDT perp is used and the BDOTT spot dollar index.
For YFI the Binance YFI/USDT perp is used and the BYFIT spot dollar index.

It's great for low time frame scalping and higher time frame swing trading because it shows you on all time frame whether derivatives are overheated or not.

Send me a personal message for access.
Информация о релизе:
There were overlapping value labels because of inefficient code.
I fixed the code so it's more clean now.
Информация о релизе:
Increased precision.
Информация о релизе:
Two big changes.

1.
I Added 2 more coins: BNB & XTZ.
It compares the Binance USDT perps to their respective spot indices (BBNBT & BXTZT).

2.
I switched to using the ohlc4 method instead of using closing prices as it gave much smoother and generally better results.
Информация о релизе:
In the previous update I made a small mistake with the titles which is fixed now.
I also updates the tags.
Информация о релизе:
Made a bunch of improvements.

It now uses all the Binance USDT perp contracts for the derivatives instead of using Bitmex perps.
Binance is the number 1 in terms of open interest and volume anyway, so it's best to use their contracts.
The spot indices are still the same.

There's now a choice field where you select a coin, which is way more practical than how it used to be.

There's also an option to color bars/candles based on whether the premium is positive or negative.
Zero values are considered positive too.
By default bar coloring is turned off.

I also added a baseline at the zero level.
Информация о релизе:
Replaced the ETH premium with ADA because ETH gets a separate premium indicator since it's too big of a market.

And to clarify: all the perps are binance perps now that are compared to spot indices.
So, for example, the ADA USDT perp on Binance is compared to an ADA spot index.
Информация о релизе:
Sadly enough the data of one of the premiums was faulty.
It has been fixed.
Информация о релизе:
Small update to fix a bug.

There was a problem with the time because some indices started at different times which was messing with the data history.

All premiums now start at the first of November 2020.
Информация о релизе:
I changed the way the calculation works so that now it take the price of the chart you're looking at and compares it to the index selected.
This allows you to choose of which exchange you want to compare the altcoin perp versus its spot index.

So if you have the ADA index selected for example, make sure you're also looking at an ADA perpetual swap chart.

The indices I use are made by Bitmex. It's not that I particularly like Bitmex as an exchange, but the indices they make are pretty good.
But the LTC & XRP indices are based on dollar spot markets, the others are based on USDT spot markets.

I also added two more indices for EOS & DOGE.

And I added the option to choose the candle source. By default it takes the ohlc4 price, which gives the best results in my opinion.
Информация о релизе:
Changed a bunch of things.

First of all I flipped the premium, so the spot premium is now on the bottom and if there's a derivatives premium that's on the top side.
Spot premium is still colored green (because that's bullish), derivatives premium is grey. This is just the new theme I'm using, you can change this of course.

I added an option to display the percentage price difference or dollar difference.

I added two new coins: SOL & AAVE.

There's also a smoothing option now with a threshold you can change.

Have fun.
Информация о релизе:
I added one more coin: UNI

By the way, don't forget that the LTC & XRP indices are in USD and every other index is in USDT.
Usually USDT indices trade at lower prices than USD indices (albeit the difference is small).
Скрипт с ограниченным доступом

Доступ к этому скрипту разрешён только для пользователей, авторизованных автором, и для этого обычно требуется оплата. Вы можете добавить скрипт в список избранных, но использовать его можно будет только после запроса на доступ и получения разрешения от автора. Свяжитесь с UnknownUnicorn2188849, чтобы узнать больше, или следуйте инструкциям автора ниже.

TradingView предлагает не платить за скрипт и не использовать его, если вы на 100% не доверяете автору и не понимаете, как этот скрипт работает. Во многих случаях вы можете найти хорошую альтернативу с открытым кодом бесплатно в наших Скриптах сообщества.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Инструкции от автора

Автор этого скрипта больше не может предоставить доступ к нему. Пожалуйста, не запрашивайте доступ.

Хотите использовать этот скрипт на графике?

Внимание: прочтите это перед тем, как запросить доступ.