Binance Basis OscillatorBinance Basis Oscillator illustrates the premium or discount between Binance spot vs perps.
This indicates whether speculators (i.e. traders on perps) are paying premium vs spot. If true then speculation is leading, indicating euphoria (at certain levels).
Conversely, spot leading perps (i.e. perps at a discount) shows extreme bearish conditions, where speculation is on the short side. Indicating times of despair.
Basis
Binance Futures Swap-Spot Basis LabelNote: This script will only work with Binance Futures Symbols
This script calculates the basis between the Binance Future and Binance Spot market for the coin you are currently viewing and paints a label on the chart which displays the percentage difference between future and spot. If the future is trading below the spot market the text will be red indicating backwardation and if the future is trading above spot, it will be green indicating contango. Please note this script will only work on Binance perps against Binance spot. The script will change based on what perp you are looking at, no inputs are required.
BTC Weighted Agg. Basis [Overlay] [Moto]Hello traders,
This script shows the exchange volume-weighted aggregate basis for Bitcoin. This is the accompanying overlay version of the script which shows plotshapes according to the specified levels of aggregate contango or backwardation.
Exchanges have differing significance to the traded price of BTC and so this script calculates the respective volume and price of the major exchanges to more accurately represent the difference between the markets spot price and the markets perpetual future/swap price.
Spot references:
Coinbase
Bitfinex
Binance
Bitstamp
FTX
OKex
Huobi
Bybit
Perp references:
Bitfinex
Binance
FTX
OKex
Huobi
Bybit
Deribit
There are options in the settings to use either basis point scaling or %, though the color bracketing is set to basis points by default.
Users can change the candle close resolution to see a larger/smaller time frame data set.
An important feature is the ability to filter the barcolor on the chart to filter only for basis increase or decrease depending on the influence of spot buying or selling.
As of publishing, the barcoloring is set to only display when you're on a common BTC spot or BTC perp chart. This is to avoid confusion.
Thanks
BTC Weighted Agg. Basis [Osc] [Moto]Hello traders,
This script shows the exchange volume-weighted aggregate basis for Bitcoin.
Exchanges have differing significance to the traded price of BTC and so this script calculates the respective volume and price of the major exchanges to more accurately represent the difference between the markets spot price and the markets perpetual future/swap price.
Spot references:
Coinbase
Bitfinex
Binance
Bitstamp
FTX
OKex
Huobi
Bybit
Perp references:
Bitfinex
Binance
FTX
OKex
Huobi
Bybit
Deribit
There are options in the settings to use either basis point scaling or %, though the color bracketing is set to basis points by default.
Users can change the candle close resolution to see a larger/smaller time frame data set.
An important feature is the ability to filter the barcolor on the chart to filter only for basis increase or decrease depending on the influence of spot buying or selling.
As of publishing, the barcoloring is set to only display when you're on a common BTC spot or BTC perp chart. This is to avoid confusion.
Thanks
Spot [Moto]Hello traders,
This indicator was primarily designed to show the dominating influence of the underlying spot asset while trading perpetual futures, specifically on Binance.
IMPORTANT: In order for this indicator to work properly/accurately you must be observing a Binance Perpetual future chart. The indicator detects which perpetual future symbol you're observing and changes its comparative metrics accordingly. If you're observing some other chart family, it will either be inaccurate or default to Binance spot BTC vs Binance perp BTC.
In my opinion spot price and metrics are more important to observe than derivatives. If I'm looking for entries or exits I want to know that spot is leading the way, and with evidential conviction. This indicator/signal is designed to be used in context and not to be the sole metrics observed. By comparing the spot chart metrics and the respective spot chart metrics, one is able to ascertain which candles are predominantly 'lead' or dominant via spot price action or conversely derivative lead. Generally, I've found, derivative lead moves have a highly likelihood of reverting
1) Spot engulfing - When spot has exerted control successfully on the current candlestick
This and other plot shapes contain plot shape sizing options and are optionally filtered via the cycled Rsi in the inputs
Smaller plot shapes (auto-sized) show when the candle is spot influenced, but not engulfing.
2) Spot Candle reversals - "E" and "e" plot shapes
These signals are sequential engulfing and opposing candles. "E" being when sequential engulfing candles print, "e" forms when spot candles are sequential, opposing, but not engulfing.
3) HTF Spot engulfing - Same as above but these are on a high time frame reference which have repainting on by default (optional in input).
These will indicate on lower time frame candles if that higher time frame is being spot influences + engulfing. These are hard set to daily, 3 day, and weekly references.
4) Bear / Bull Sequences: "Strong" / "Weak" plot shapes
These signals are looking for a Rsi mid-line (50) 'bounce' among the last four candles on the observed time frame. For example, this will give a signal when the rsi is above, below, below, and back above the 50 on the cycled Rsi.
5) "Prox" plot shapes - "P" and "Prox"
These plot shapes are purely based on Rsi and the confluence between two time frames. Signals occur when the low time frame and high time frame are near the 50 line of their respective Rsi but on opposing sides. There are two sets of these, comprising two different (optional) times frames each. Essentially these signals are to point out potential places of cascade in either direction. If however the market decides to "save" price, action can continue or perhaps violently push in the opposite direction. Consider them warnings to either follow or take advantage of. "P" plots indicate the lower time frame set, while "Prox" indicate the higher time frame signals. These signals can be optionally filtered by Rsi-Vwap directional bias, i.e above or below its "normal" range.
6) Simultaneous Rsi signals - "S"
These signals (optionally shown) print when two Rsi of two different time frame are simultaneously above their 50 mid-line but within a certain distance from the 50, with the candle in the preferred direction, and filtered via Rsi-Vwap. Time frame resolutions can be changes in the settings.
7) Reversion signals (Work in progress) - "R" plot shapes
These signals indicate via a set price difference when candles are of a certain size ($) and are derivative lead. Users can change the dollar change threshold in the settings.
8) Bar-coloring is provided on the more important signals
9) Alerts for almost all of the aforementioned metrics are included
Thanks,
DM for access
BTC Futures BasisShows various basis percentages in a table and plots historical basis. Also has an alert function for backwardation events. Useful for tracking bullish/bearish sentiment in BTC futures markets.
*Currently displays March and June futures for the following exchanges: Bitmex, Binance, Deribit, Okex, and FTX
Also displays CME Continuous Next Contract. All of the symbols are customizable.
-----------
Market-wide backwardation usually occurs during a heavy sell-off (such as a liquidation cascade).
**For getting alerts of backwardation events, I recommend creating an alert on the 1 minute chart with the condition "Any alert() function call". Alert level is customizable as well.
-----------
*NOTE!! : Futures contracts expire (obviously), so the contract symbols will need to be updated periodically. I will try to keep them updated going into the future.
**NOTE2!! : The alert() function does not track the CME contract. This is to avoid false triggers.
Premiums [FTX] [Auto+Osc] [Intromoto]This indicator shows the premium, or basis, between FTX USD pairs and FTX USD Perpetual contracts.
IMPORTANT: This indicator will automatically change to the appropriate asset comparison, but ONLY if the observed chart is an FTX PERP. For example: If my chart is on FTX:ETHPERP the indicator "knows" that you want to compare it to the FTX:ETHUSD spot value. No need to manually change anything. Other pairs will be added as they are listed on FTX. I'll also be updating this indicator as I see fit. If you get an error on the indicator it's either because FTX doesn't have a spot asset available to compare it to or I haven't hard coded it into the script.
The histogram simply plots the percent difference, either positive, "Contango", or negative, "Backwardation" between the futures price and the spot price. The colors are traditionally self explanatory, green is bullish /buy, red is bearish /sell . These values can be used real time to help in determining the predicted funding rate of the perpetual, which in turn may affect sentiment.
I've included user input capabilities so that the user can change the bracketing of which values the colors appear for the barcolors and plotshapes. These are broken up into extreme backwardation, backwardation, low premium, regular premium, medium premium, high premium, and extreme high premium.
Tweaks or changes may need to be made if trading altcoins for more actionable color settings, as the default are designed for mainly BTC premium, but others will work well enough as is for the most part.
If the perpetual is above the spot price, funding will likely be positive, i.e. "normal", if spot is above the perpetual, it's usually bullish , but as always, market structure and confluence should be found for better outcomes.
An important feature I've added is the ability to change the resolution of the candle closes in the premium calculations. For example, if you want to take trades based on 5, 15, 60, etc closes, you can set the indicator to show those specific time frame premium values.
This oscillator will automatically change the candles whichever color is set to each of the relevant premium bracket values. I've also included a moving average and barcolor that, if activated will show the change between increasing or decreasing basis relative to the previous candle if in its respective direction.
DM for access.
Thanks
Cosmic FlowThis is a unique take on moving average multiplier indicators. Here, a pair of moving averages is used in combination with a multiplier set of to calculate
separate support and resistance levels
a new basis point of reference
The resulting data can be further used to calculate derived support and resistance levels using the Multiplier Type settings option. The moving averages and multiplier sets are customizable to make it easy to test different values on the fly and discover new patterns, and the Spread settings option is handy for working across timeframes.
Ethereum Perpetual SwapsThis script track most important Ethereum Perpetual Swaps vs Spot basis
When strong green color emerge implies that Swaps are trading at premium to spot.
When strong red color emerge implies that Swaps are trading at discount to spot.
These information is useful because it give leading information towards where funding rates are heading.
When trading at premium it will push towards Positive Funding Rates (Longs pay Shorts)
When trading at discount it will push towards Negative Funding Rates (Shorts pay Longs)
It's can also be used to give identify potential local tops or bots when values get too extreme.
Spot VS Derivatives (BTC)This indicator shows you the difference between the price on the spot exchanges and the derivatives exchanges. When the ratio spikes upward, it is a good buying opportunity, and when it spikes downward, it is a good moment to sell. The best timeframe for this indicator is 4h. The calculation includes top 10 spot and derivatives exchanges by volume .
Spot & Derivatives BasisThis indicator allows you to track the basis between Spot and Futures trading.
This metric is great for showing when sellers have run out.
Exchanges:
Coinbase
Binance
Bitfinex
Okex
Bybit
Bitmex
Binance Futures
Okex Futures
FTX
Futures Annualized Rolling BasisWhat is Annualised Rolling Basis?
Basis
In futures trading, the basis is the relative difference between the price of the future contract and the spot price.
This quantity is usually presented as an absolute price difference, but in its relative form can be annualised by dividing by the time to expiry τ of the contract expressed in years:
Rolling Basis
Let us consider a hypothetical contract starting today with a given tenor of 1 month (1M) or 3 months (3M). Such a contract does not necessarily trade in the market and thus has no observable price to calculate the basis. The rolling basis is the basis between this ’bespoke’ contract and the spot.
This quantity is inferred from existing contracts’ basis and the calculation is accomplished in two steps:
1. Forward yield
First, we select two futures contracts with expiries T1 and T2 surrounding the hypothetical contract’s expiry Ttarget (T1 ≤ Ttarget ≤ T2). The forward yield is calculated as:
Where:
Ti: time to maturity for contract i
BASISi: annualised basis for contract i
2. Weighted Basis Average
The rolling basis is calculated as a weighted average between the first contract’s basis and the forward yield:
The description of the indicator was copied from another source, but fully corresponds to this indicator.
Weighted derivatives premium BTCCan be extended with more derivative or spot pairs, see the comments in the code for instructions. Most importantly, the pairs need to be added to the respective arrays in the same order, so that the weights are applied to the correct pairs.
BTCUSDT Volume Weighted Average Price & KairiThis indicator calculates VWAP (Volume Weighted Average Price) for major crypto exchanges with BTCUSDT pairs and shows what percentage each exchange deviates from VWAP.
I made a "BTCUSD" version of this in the past, but many people also want to see “BTCUSDT”, so I made this indicator.
When the parameter "Display" is "Basis", this deviation is expressed in%. Therefore, VWAP is always drawn as "0.00%".
VWAP is calculated using the BTCUSDT prices and volumes of the following exchanges.
These exchanges are the ones Binance refers to when indexing.
- Bitfinex
- Binance
- Huobi
- OKEx
- Bittrex
- HitBTC
VWAP of this indicator calculates the volume for each candlestick , so it will be closer to the actual value.
When there is a big movement in the short term, it is easy to be swayed.
If you set the parameter "Display" to "Basis_SMA", it will calculate the simple moving average of the deviation rate, so it will be hard to be swayed.
Set the desired "Length".
If you want to know the actual value of VWAP , set the parameter "Display" to "Price" and the actual BTCUSDT prices will be displayed.
Warning: This indicator also shows BTCUSDTPERP, but these pairs are not included in the VWAP calculation. be careful.