This indicator works by taking the basis between various altcoin perpetual futures contracts and spot market indexes on Binance, and then smooths out the data with a basic moving average.
The result is a useful oscillator that shows potential "buy" and "sell" areas.
Simply put, a spot premium is usually bullish and a derivatives premium is usually bearish.
Other versions of this indicator only worked for BTC and ETH, so I have extended its functionality to include popular altcoin trading pairs.
Default setting is BTC. To choose a different oscillator, go to settings and pick your desired crypto.
Thanks for looking. I think you could create a pretty basic trading strategy based on this indicator by simply placing buy and sell orders once the oscillator rises or falls below certain thresholds.
Drastically simplified code and made loading more efficient by creating search bar instead of drop down menu for altcoin pairs. You now can simply type in "BTC" or "LTC" or any altcoin of your choice and the indicator will load the Basis chart for that coin's trading pair. Load times are faster because in the old version, the indicator had to buffer all the data from every pair that had been included in the code. Now it only buffers when you wish to see the pair, so it is much more computationally efficient and easier to use.
Is there a reason why this uses a different formula than your Basic Binance Premium Index indicator? In that one the premium index is calculated with: 100.0 * (PERP / ta.vwap(SPOT) - 1.0)
In this one it's: 100.0 * (PERP / SPOT - 1.0)
(The difference is the lack of the VWAP() function)
YonatanReif
⋅
Interesting! I know for sure that ALTS high OI and Volume dominance is a sign of weakening market. Would be interesting to see if the same applies to premiums. Great Idea mate, thanks for sharing!!!
In that one the premium index is calculated with:
100.0 * (PERP / ta.vwap(SPOT) - 1.0)
In this one it's:
100.0 * (PERP / SPOT - 1.0)
(The difference is the lack of the VWAP() function)