UnknownUnicorn2188849

Altcoins Index Premiums

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联系以获取更多信息,或按照以下作者的说明进行操作。

在您100%信任脚本作者并了解脚本的工作原理之前,TradingView不建议您购买脚本并使用它。在很多情况下,您可以在我们的公共指标库中免费找到一个不错的开源替代品。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

作者的说明

此脚本的作者无法再授予对其的访问权限。请不要请求访问权限。

想在图表上使用此脚本?

警告:请阅读,然后再请求访问权限。