Funding Rate [CryptoSea]The Funding Rate Indicator by is a comprehensive tool designed to analyze funding rates across multiple cryptocurrency exchanges. This indicator is essential for traders who want to monitor funding rates and their impact on market trends.
Key Features
Exchange Coverage: Includes data from major exchanges such as Binance, Bitmex, Bybit, HTX, Kraken, OKX, Bitstamp, and Coinbase.
Perpetual Futures and Spot Markets: Fetches and analyzes pricing data from both perpetual futures and spot markets to provide a holistic view.
Smoothing and Customization: Allows users to smooth funding rates using a moving average, with customizable MA lengths for tailored analysis.
Dynamic Candle Coloring: Option to color candles based on trading conditions, enhancing visual analysis.
In the example below, the indicator shows how the funding rate shifts with market conditions, providing clear visual cues for bullish and bearish trends.
How it Works
Data Integration: Uses a secure security fetching function to retrieve pricing data while preventing look-ahead bias, ensuring accurate and reliable information.
TWAP Calculation: Computes Time-Weighted Average Prices (TWAP) for both perpetual futures and spot prices, forming the basis for funding rate calculations.
Funding Rate Calculation: Determines the raw funding rate by comparing TWAPs of perpetual futures and spot prices, then applies smoothing to highlight significant trends.
Color Coding: Highlights the funding rate with distinct colors (bullish and bearish), making it easier to interpret market conditions at a glance.
In the example below, the indicator effectively differentiates between bullish and bearish funding rates, aiding traders in making informed decisions based on current market dynamics.
Application
Market Analysis: Enables traders to analyze the impact of funding rates on market trends, facilitating more strategic decision-making.
Trend Identification: Assists in identifying potential market reversals by monitoring shifts in funding rates.
Customizable Settings: Provides extensive input settings for exchange selection, MA length, and candle coloring, allowing for personalized analysis.
The Funding Rate Indicator by is a powerful addition to any trader's toolkit, offering detailed insights into funding rates across multiple exchanges to navigate the cryptocurrency market effectively.
Funding
Aggregated Funding RateAFR - A tool designed for traders who demand real-time, comprehensive insights into funding rates across various exchanges. This script stands out in its ability to aggregate and analyze funding rates from 9 different exchanges , offering unparalleled depth and breadth in market analysis.
Key Features:
Real-Time Monitoring Across Multiple Exchanges: Seamlessly tracks funding rates from top exchanges including Binance, Bybit, Bitmex, Bitget, OKX, and more, ensuring a broad market view.
Sophisticated Algorithms for Accurate Calculations: Each exchange has unique algorithms for funding rate calculation. This script accounts for these variations, providing precise, reliable data. It is important to note that exact calculations are not possible on TradingView due to data limitations; there is no direct access to order books, so for some parts, generalizations have been made.
Dual Modes for Enhanced Understanding:
Standard Mode: Displays the current funding rate as is, for immediate insight.
Annualized Mode: Projects the funding rate on an annual basis, offering a perspective on long-term trends and impacts.
Weighted Analysis Options:
Average Mode: Treats each exchange equally, providing a balanced overview.
Weighted Mode: Adjusts the influence of each exchange based on their perpetual trading volume, offering a nuanced, market-relevant view.
Customizable Exchange Selection: Users have the flexibility to include or exclude specific exchanges from the calculation, allowing for tailored analysis based on personal trading strategies.
User-Friendly Visualization: The script features clear, intuitive plots and color-coded visuals to make data interpretation straightforward and effective.
Versatility in Timeframes: Designed to be adaptable across any timeframe, this tool is equally effective whether you are looking at a 1-minute interval or longer durations. This makes it an indispensable tool for both high-frequency traders and those analyzing broader market trends.
As always, use this indicator in tandem with other tools. This is a very useful indicator, but one should always rely on self-made, backtested and forward tested strategies
Binance Spot/Perp Premium | PCPR1NCIPALBinance Spot/Perp Premium Indicator
This indicator visually shows the price difference (called "Premium") between the perpetual contract and the spot market of a particular cryptocurrency on Binance.
Histogram: Displays the premium amount. Positive values are shown in blue and negative values in purple.
Blue Circle: Appears below the bar when the premium goes over 1% and there hasn't been a purple circle in the past 90 minutes.
Purple Circle: Appears below the bar when the premium drops below -1% and there hasn't been a blue circle in the past 90 minutes.
Green Circle: Shows up below the bar when the premium exceeds 5%. A new circle can appear every 15 minutes if the condition is met.
Red Circle: Appears below the bar when the premium drops more than -5%. After a red circle, there's a 30-minute cooldown before another can appear.
A label at the bottom displays the current premium amount and its percentage, helping users quickly gauge the market situation.
Multi-Exchange Funding RatesThis indicator estimates funding rates by comparing a spot-index price vs a futures index price.
It currently allows you to select your own spot-index combination and compare it to a particular exchange future price.
This script is under development, any feedback is welcome!
Limitations
Supported tickers
The supported tickers are: BTC , ETH
More will be available soon
Supported exchanges
The supported tickers are: Binance, OKX and Kucoin
More will be available soon
MKAST V2 (lifetime)PLEASE READ THE ENTIRE POST BEFORE PURCHASING & USING THE MKAST Algorithm. Saves you and me some time in emails and messages. :)
This is the NEW LIFETIME ACCESS Version of the MKAST
The MKAST Buy Sell Algorithm is a very specific strategy, cut down to its roots and made perfect for the volatile crypto market.
Many Algorithms focus only on one aspect, one side, one specific rule.
As you know, this is not how life, the market or anything else works.
MKAST combines many different aspects at the same time, scans multiple other Algorithms and comes to a conclusion based on over 1350 lines of code.
It is based on Divergences, Elliott Waves, Ichimoku, MACD, MACD Histogram, RSI, Stoch, CCI, Momentum, OBV, DIOSC, VWMACD, CMF and multiple EMAs.
Every single aspect is weighted into the decision before giving out an indication.
Most buy/sell Algorithms FAIL because they try to apply the same strategy to every single chart, which
are as individual as humans.
To conquer this problem, MKAST has a wide range of settings and variables which can be easily
modified.
To make it a true strategy, MKAST has as well settings for Take Profit Points, Multiple Entries and Stop
Losses. Everything with an Alert Feature of course.
I know from experience that many people take one Algorithm and are simply too LAZY to add multiple Algorithms to make a rational choice.
The result of that is that they lose money, by following blatantly only one Algorithm.
MKAST has additional 9 Indicators, perfect for the crypto market, which can be turned on and off.
Manual
MKAST Signals Settings
“Show Signals?” - On/Off to show the Buy/Sell Signals.
“Aggressiveness” - Increase to make the signals less aggressive and decrease to make them more aggressive.
“Show Custom Signals?” - On/Off to show custom MKAST Signals as chosen in the settings below.
“Custom Buy/Sell Aggressiveness” - Choose a custom Aggressiveness for each buy and sell signal individually.
“TJ-Index Requirement For Buy/Sell” - If the TJ-Index is below the given number, it will show the signal in grey, this also applies for normal signals. Buy 0 and Sell 15 shows all signals in their original colour again.
“Don’t show signals that don’t meet index requirement?” - Checked, it will completely not show signals which would be “grey” as in the explanation above.
“Change Backgroundcolour if index is at 15 or 0?” - Checked, changes the colour of the chart if the index is at 15 or 0 points
MKAST Panel Settings
“Show Info Panel?” - Shows Info Panel on the chart.
“Move Info Panel UP by %” - Moves Info Panel up/down.
“Move Info Panel Left/Right ” - Moves Info Panel Left/Right.
“Show BitMEX Panel?” - Shows BitMEX Panel on the chart.
“Move BitMEX Panel by % ” - Moves BitMEX Panel up/down.
“Move BitMEX Panel Left/Right” - Moves BitMEX Panel Left/Right. “Signal Source” - Choose source of candle open/close for Equity calculation.
“Leverage Used?” - Select the used Leverage for your strategy and Equity calculation.
“Fees Per Trade in % ” - Deducts these fees after each trade from Equity calculation.
“Round Current Profit Price?” - Rounds the number on the Panel. “Trading Periods ” - Choose a trading Period which will be used to calculate Period Equity.
“Show separations of each Trading Period?” - Show separations on the chart of each Trading Period.
The very new feature on Tradingview and obviously now as well on MKAST are Information Panels.
I have chosen to add an Info Panel and a BitMEX Price Panel into MKAST, to make live and even
backtesting easier.
With only one blink of an eye the user is able to see ALL relevant information, without having to go
through various ways of checking and using other tools.
The Info Panel:
The first row shows the current profit. This is calculated since the signal initiation and the current candle close. Followed by a single number, which represents the current TJ-Index, removing the need of having to add the actual TJ-Index Oscillator on the chart.
The second row shows the current position and its status. This was added on request of many users wanting to know if their position is “about to change” or not. The status shows the users if the position is “endangered” or “okay”.
Followed by the “backtesting tool” already included inside the Panel. No need for complex oscillators with a hard reading for backtesting. With this one and simple panel, you see the Period Equity for the period chosen previously in the settings. This calculates all profits made inside that period and re-sets when the period ends. Right next to it, the Total Equity calculating ALL profits since the beginning of the chart.
Right below, you see the information about the last long and short position which have been open. This helps with the evaluation and documentation of the last trade.
The BitMEX Panel:
A convenient panel which shows all BitMEX contracts and their LIVE prices. The need for opening each chart goes away, the quality and experience of trading increases.
MKAST custom Signals are one of the notorious possibilities for ADVANCED strategies with MKAST.
Users who requested these features and use them frequently are the ones, having already a very unique trading strategy and they use these very custom signals as confluence or for multiple entry trades.
These custom signals and their settings can be mostly ignored by the majority of traders who are using this Algorithm.
The idea behind the grey signals has its roots in the idea of the TJ-Index. The TJ-Index being 15 Algorithms and conditions possible showing a bullish or bearish interpretation. The index counts the Algorithms which are showing a bullish interpretation.
Like that we can make sure that signals are shown in the original colour, are only those who have an additional confluence with the TJ-Index, not letting the user buy, if at least the majority is not bullish, and not letting the user sell, if at least the majority is bearish.
The custom buy and sell aggressiveness lets the user customise the MKAST algorithm even more.
Either the users wants to see how signals are changing on a different (slightly lower or higher) aggressiveness, being able to expect a change on their own settings. OR seeing that some signals of the same sort are a little out of place and is able to move these to a different aggressiveness, increasing the profitability even more.
Needless to say, custom signals are NOT a part of the Info Panel.
MKAST Label & Trendline Settings
“Show Labels?” - On/Off to show Labels above each signal, with the percentage gain or loss, calculated from the last signal to the new signal.
“Show Trendlines?” - On/Off to show automatic Trendlines following Gainzy Lines.
“Lookback Length” - Choose a length that the automatic trendiness use for calculation. Comparable to Aggressiveness.
“Wicks//Bodies” - Change between trendiness connecting from wick to wick or from body to body.
“Black lines// Coloured lines” - Change between simply black lines or changing colour lines.
“Filter Trendlines?” - On/Off to show all trendiness or just resistance decreasing and support increasing ones.
“Limit Extensions Of The Lines?” - This value increases by how much the trendiness are being extended. 0 = endless extension, otherwise 100 = maximum custom extension.MKAST Strategy “Take Profit 1” - On/Off to show TP1 points.
“Take Profit After %” - Set the percentage after which TP1 is active.
“Take Profit 2 ” - On/Off to show TP2 points.
“Take Profit 2 After %” - Set the percentage after which TP1 is
active.
“Take Profit 3” - On/Off to show TP3 points.
“Take Profit 3 After %” - Set the percentage after which TP1 is active.
“Second Entry” - On/Off to show Second Entry points.
“Second Entry After %” - Set the percentage after which Second Entry is active.
“Third Entry” - On/Off to show Third Entry points.
“Third Entry After %” - Set the percentage after which Third Entry is active.
“Stop Loss” - On/Off to show Stop Loss points.
“Stop Loss After %” - Set the percentage after which Stop Loss is active.
MKAST Strategy
To make the life of the MKAST user even easier, I have added all adjustable Take Profit Points, Multiple entry points and Stop Loss points.
I have never seen a sustainable and reliable trading strategy without TPs, Multiple entry and especially without a stop loss. Everything in the usual and fully customisable MKAST style.
Simply choose how many Take Profit points you would like to have and choose the percentage after which you would like to see the Take Profit point appear on the chart and notify you to take profits.
Are you a Trader who likes Multiple Entries? Also no problem with MKAST. Select how many additional entries you would like to have and after how many percent you would like them to appear on the chart and remind you of adding to the position.
What would a Strategy be without a Stop Loss? Same settings apply here as on the TPs and MEs.
All of the settings are able to take fractions of a number as well. This enables users to even use all of the strategy settings for scalping or FX pairs, where high leverage and the smallest of moves are used for trading.
Needless to say, all of these settings work on RENKO and Heikin Ashi as well. These might need adjustment, since the calculation is different, yet there is nothing standing in the way of it anymore.
Crypto Modified Indicators
“Show Divergences?” - On/Off to show Divergences on the Chart based on the data of 10 different Algorithms.
“Show Oversold/bought?” - On/Off to change the colour of the chart in Oversold/bought conditions.
“Oversold/bought value?” - Choose a value for which the chart is Oversold/bought.
“Show Fibonacci Levels?” - On/Off to show automatic Fibonacci Levels.
“Fibonacci Lookback Lenght” - This value states how many candles from right now are taken into account to paint the Fibonacci Levels.
“Fibonacci Custom Period” - Choose a custom Timeframe that should be used to paint the Fibonacci Levels.
“2nd-7th Fibonacci Level” - Enter a value for the Fibonacci Levels you would like to use and see on the chart.
“Plot 1.618 Level?” - On/Off for the Fibonacci extension level.
Crypto Modified Indicators
“Show Bands?” - On/Off to show the TJ-Bands on the chart.
“Bands Length” - Choose a value for the TJ-Bands Lenght
“Show Show EMA 1-3?” - On/Off to show the EMAs 1-3 on the chart.
“EMA Lenght 1-3” - Choose a value for the first to third EMA Lenght
“Show Ichimoku? ” - On/Off to show Ichimoku on the chart.
“Show Tenkin?” - On/Off to show Tenkin on the chart. “Tenkin” - Set the lenght of the Tenkin.
“Show Kijun?” - On/Off to show Kijun on the chart.
“Kijun” - Set the lenght of the Kijun.
“Show Senkou?” - On/Off to show the Senkou on the chart. “Senkou” - Set the lenght of the Senkou.
“Displacement” - Set the value of the Displacement.
“Show Chikou Span?” - On/Off to show the Chikou Span on the chart.
Crypto Custom Indicators
In the picture above, you see the first pair of Crypto Custom Indicators. The oversold and overbought conditions are highlighted.
Bullish and Bearish divergences are also plotted on the chart.
This is personally my favourite combination of Indicators and MKAST settings. It shows nicely
everything one needs to know and makes it easier to decide wether to follow a signal or not.
We here as well a perfect example of the Automatic Fibonacci Lines (Lookback 50, Timeframe 1D).
It shows all significant levels, which we can see being respected.
Orange = 23.6%, Green = 38.2%, Red = 50%, Yellow = 61.8%, Blue = 78.6%, White = 0%;100%
In this picture above, we observe the perfect ensemble of MKAST and an EMA strategy, especially modified for crypto markets.
Here, as by default, we have the EMAs at 21, 90 and 200. These have shown to be very significant moving support and resistance points in the crypto market.
In this picture above, I lowered the timeframe to show the highly significant levels of the Ichimoku. It has not the “usual values”. These here have been modified for the volatile crypto market and set as default.
An incredibly powerful tool for anyone who is ready to step up their trading game. It is a huge part of the MKAST back end and the strategy behind it.
MKAST Custom Alerts
1
MKAST without any doubt has Custom Alerts for all Signals that it is painting on the chart.
One can even choose to receive custom notifications for Take Profit points, Multiple Entry points and
the Stop Loss points.
The signals appear on the chart DURING the candle, not at the end of the candle. Therefore, the
alerts do this as well. These appear during the candle.
Here we can see all of the possible Alerts that can be chosen to be displayed. In total it is 14 different custom alerts, based on what the trader is looking for and how he is trading.
Personally, I have 10-15 coins that I trade the most and for these I have custom notifications, mostly though only the MKAST Buy/Sell and Stop Loss Signals.
To activate Alerts for MKAST,
1) Go to the “ALERT” icon on the top tool bar of your Tradingview.
2) Select “CONDITION” as “—MKAST—“
3) Then choose ONE condition from the list of conditions.
4) On “OPTIONS” you can set how many times it appears, I have “Once per Bar”.
4.1) If you want to make sure that the signal is truly there and not just a condition for a second during the candle, choose “ONCE PER BAR CLOSE”.
5) “Expiration Time” sets the time until the alert expires. PRO users have no expiration for alerts.
6) “Alert Actions” give you a row of choices what happens and how you want to be notified.
7) “Message” is the message that you receive inside the notification.
Thank you, Kong
Trendmaster - Collated Funding RatesCollated Funding Rates is a Crypto Specific Indicator that pulls Exchange Funding Rate Data from several exchanges for both Bitcoin and Ethereum.
By combining both the Funding Data for Bitcoin and Ethereum across several exchanges, a Trader can see the Collated Funding Rates from several Crypto Exchanges.
What are Funding Rates?
Funding rates are periodic payments either to traders that are long or short based on the difference between perpetual contract markets and spot prices.
Therefore, depending on open positions, traders will either pay or receive funding. Crypto funding rates prevent lasting divergence in the price of both markets
These Funding Rates also incentivize Liquidity Providers to take certain positions whether Long or Short based on the Funding Rate.
What are Liquidity Providers?
A Liquidity Provider, also known as a Market Maker, is someone who provides their crypto assets to a platform to help with the decentralization of trading.
In return, they are rewarded with fees generated by trades on that platform, which can be thought of as a form of passive income.
H ow to use Collated Funding Rates:
When the Funding Rate is positive, the price of the perpetual contract is usually higher than the market price.
Thus, traders who are long pay for short positions. Conversely, a negative Funding Rate means that short positions pay for longs.
As the funding rate increases from negative to positive Traders and Liquidity Providers are incentivized to take short positions.
This can be seen on the indicator as it moves from down to up and changes from red to green.
As the funding rate decreases from positive to negative Traders and Liquidity Providers are incentivized to take long positions.
This can be seen on the indicator as it moves from up to down and changes from green to red.
Funding Rates are used by Exchanges to manipulate the price.
Because of this fact, Collated Funding Rates can show trend changes based on when a specific up or down move in Price is incentivized by Exchange Funding Rates.
[FTX Funding Colored Candles] [third eye]This Indicator plots FTX: BTCPERP predicted funding rates and colours the candlesticks based on it.
!!!
Since Tradingview always plots new indicators at the back you might have to click:
Name of the Indicator ( ) -> More -> Visual Order -> Bring to Front
(unfortunately, there is no way for me to do this in pinescript)
There is also the possibility to change colors in the Settings:
It is grouped by where Basis is (FTX:BTCPERP - FTX Spot index)
Changing that might be good for getting a more close up view of LTF price action.
Also to get rid of the Values in the Status line click on Settings and scroll to the bottom to disable "Value in Status Line"
Bitmex BTC Perpetual Premium and FundingThis script tracks the premium (default red line) and the funding rate (default yellow area) of the Bitmex XBTUSD pair perpetual contract.
The calculations are based on the 8H TWAP of interest rates and premium index from Bitmex.
[VIP] Composite BTC Funding Rate APR
Calculates and displays a BTC funding rate (positive or negative) in terms of APR. Positive APR = Positive funding. Negative APR = Negative funding
This calculation is sourced from a variety of spot and perpetual markets on a couple of top-volume exchanges, Binance, FTX, etc.
This logic is utilized in Dip Hunter and Take Profit Hunter
Code is open source! All feedback and improvements encouraged
FTX Funding RatesIndexes updated: 2021-07-27
This study tries to estimate the FTX funding rate using historical data and index definitions provided by FTX. The funding rate calculated is not exactly the same as FTX reports due to underlying limitations in TV.
Limitations
1. TWAP
FTX calculates the index price by TWAP which is average every 5s over the the whole hour. As far as I know, it's not possible to do this in Tradingview.
2. Change in INDEX definition
If a definition of an index changes in FTX, then this script is of course not up-to-date. Also, if a security is added to an index, then the historical funding rate will also change, even though said security wasn't apart of the past funding rate.
3. Supported tickers
The supported tickers are: BTC, ETH, SOL, ALGO, SAND, CLV and AXS
Funding Rate for FTX:BTCPERP (estimated) v0.1 Original credits goes to @Hayemaker, and @NeoButane for the TWAP portions of this script
By @davewhiiite, 2021-03-27
Version 0.1
Summary: The funding rate is the interest charged / credited to a perpetual futures trader for taking a long or short position. The direction of the funding rate is used as an indicator of trader sentiment (+ve = bullish; -ve = bearish), and therefore useful to plot in real time.
The FTX exchange has published the calculation of their funding rate as follows:
TWAP((future - index) / index) / 24
The formula here is the same, but expresses it in the more common % per 8hr duration:
funding = TWAP((future / index) - 1) * (8 / 24) * 100
For reference: future refers to the FTX bitcoin futures contract price (FTX:BTCPERP) and index is the spot price of bitcoin on the exchange (FTX:BTCUSD)
Additional notes:
Probably best to add to the indicator to a new pane, or as secondary axis
Plot this in combination with FTX:BTCPERP or FTX:BTCUSD, or chart of your choice to complement your bitcoin dashboard
Compare to funding rates published on ViewBase
questions? Ask me!
Binance Funding IndicatorThis sciprt tried to emulate the Binance Futures Funding rate based on it's official document www.binance.com .
The indicator shows three serises:
Raw Premium
Realtime Funding
History Funding
On Binance Futures, Funding occurs every 8 hours at 00:00 UTC; 08:00 UTC and 16:00 UTC.
The results were calculated by the fomula provided by Binance Support document.
But due to the time inaccuracy, the indicator may not always show the exact funding rate as same as the website shows.
If you have any suggestions please leave your comments below.
Black Flamingo FundingThe Black Flamingo Funding is an indicator that aims to guide the price prediction, by informing on the historical and current value of the predicted funding rate of the future markets of many coins.
It displays an approximation of FTX and Bitmex funding rates for all coins where there is a perpetual future market.
The displayed funding is more accurate on the 1min timeframe, but it have a reasonable approximation on any timeframe.
The Black Flamingo Funding displays on the chart the following components :
- The FTX funding rate on the perpetual market of the displayed coin
- The Bitmex funding rate on the perpetual market of the displayed coin
- In two labels at the right, the current value of these fundings
- Vertical grey bars showing the Bitmex funding times, and the next one
The funding rate is a measure of the greediness of speculators in long or short direction. Analyzing the variation of this funding over the time provides great value to predict the market.
The first use of this indicator is :
- when the market is trending up, to search for buy zone when the funding is negative, and search for sell zone when the funding is greatly positive.
- when the market is trending down, to search for sell zone when the funding is positive, and search for buy zone when the funding is greatly negative.
This indicators is only accessible on invitation. Please contact me in PM or thisma (fr.tradingview.com) in order to request us an access.
Premium [Auto+Osc] [Intromoto]
This indicator shows the premium between spot and index price, specifically on Binance USDT pairs against Binance USDT Perpetual contracts.
There are both a true and false overlay version of this indicator, this is the oscillator version.
IMPORTANT: This indicator will automatically change to the appropriate asset, but ONLY if the observed chart is a Binance PERP. For example: If my chart is on BINANCE:ETHUSDTPERP the indicator knows that you want to compare it to the BINANCE:ETHUSDT spot value. No need to manually change anything. Other pairs will be added as they are listed on Binance. I'll also be updating this indicator as I see fit.
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 uber backwardation, backwardation, low premium, regular premium, medium premium, high premium, and uber high premium.
Tweaks or changes may need to be made if trading altcoins for more actionable 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 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 the Binance funding periods as background colors, which may aid in confluence.
DM for access.
Thanks
Bitmex BTC Perpetual PremiumThis script tracks the premium of the Bitcoin Perpetual futures at Bimex exchange relative to 3 different reference prices.
The difference between this script and already published scripts is that it tracks the premium relative to 3 different reference prices. This tends to produce slightly different results.
This script is also open source, so you can verify the calculations, or use it as a basis for your own script.
The 3 plots uses the following reference prices:
Blue Area:
Bitmex Index price, ticker: BITMEX:XBT
Red line:
Bitmex Perpetual Premium, ticker XBTUSDPI
(This one is not used as reference, but simply plots the ticker*100)
Orange line:
The reference here is a price calculated by the tickers in trading view based on the Bitmex indices with weighing as follows:
Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28
Please note that Bitmex changes the bases of its indices regularly. Bitmex might also "rule out" on of these exchanges if there is a short term problem.
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.
Funding rateI thought for a long time about creating a paid complex indicator, but in the end I settled on a simple one :) Indicators are needed for two things - to simplify the chart in order to see the current trend more clearly, or add information that is difficult to analyze separately from the chart.
This indicator is of just the second type - it is a guide indicator that visualizes the change in the predicted funding rate for a pair of BTCUSD on bitmex exchange. There is still a huge trading volume, so it reflects well the balance of sentiment between spot and derivatives traders. It is supposed to use on BTCUSD pair, but I noticed, that it works on every crypto pair, even on Alt1/Alt2 pairs.
So, how to use this indicator? I am using it as a trigger. A trend change at extreme values in this indicator is a good entry point. Which way? It's up to you, but personally, I only trade with the trend :)
I provide access to this indicator only by subscription. PM me for more information.
Premium Index TheHuntThe indicator is used to see the difference in price between spot and futures prices. If future price is higher than spot in a rally, the rally isn't backed by real buys (spot) but by dumb perp longs which CAN be bearish . If spot price is higher than futures in a rally, the upside is backed by real money (spot) which is bullish.
The indicator allows you to pick a spot pair to compare it with the future exchanges you want. You can select which future exchange pairs to compare with by ticking them in the settings.
As you can see here on the chart during this last rally the index is high in the green which means the rally is backed by futures and spot ain't really following. This could be a sign of exhaustion.
Binance Funding and Premium Index Extended [NeoButane] A premium index indicator for Binance exclusively. This extended version includes BTC, ETH, BNB, LINK, and more.
Just like BitMEX, there is a +/- 0.05% clamp with 0.01% being the default. Funding periods occur at 0000 UTC, 0800 UTC, and 1600 UTC.
Binance documentation does not mention a maximum funding rate, so instead there is an option to limit how much is funding/premium is displayed if it is too extreme.
There are alarm conditions that can be set for any coin's premium crossing above or below the set amount as well as visualizations for the premium level set.
Helpful notes:
ETHUSD on BitMEX is a quanto swap and shorting it incurs more risk. That is a partial explanation as to why premiums for ETH swaps are lower on other exchanges. See here for more info:
insights.deribit.com
The final funding rate is derived from the premium index and paying/receiving interest happens only if a position is held. Since interest is handled between traders, you may see significant moves when funding is very high or low. This appears to be very pronounced on DeFi tokens.
This is a paid indicator, please DM for access
Binance Funding and Premium Index [NeoButane]A premium index indicator for Binance exclusively. This version includes BTC, ETH, and BNB.
Just like BitMEX, there is a +/- 0.05% clamp with 0.01% being the default. Funding periods occur at 0000 UTC, 0800 UTC, and 1600 UTC.
Binance documentation does not mention a maximum funding rate, so instead there is an option to limit how much is funding/premium is displayed if it is too extreme.
There are alarm conditions that can be set for any coin's premium crossing above or below the set amount as well as visualizations for the premium level set.
Helpful notes:
ETHUSD on BitMEX is a quanto swap and shorting it incurs more risk. That is a partial explanation as to why premiums for ETH swaps are lower on other exchanges. See here for more info:
insights.deribit.com
The final funding rate is derived from the premium index and paying/receiving interest happens only if a position is held. Since interest is handled between traders, you may see significant moves when funding is very high or low.
This is a paid indicator, please DM for access
BitMEX Funding Rate CalculationThis script implements the full funding rate formulas found on the BitMEX site for XBTUSD, ETHUSD, and XRPUSD. It uses the 1-min premium and interest tickers found here on TradingView to calculate an 8-hour TWAP, then uses base initial and maintenance margins to apply caps on absolute rate and delta from prior value. Caps are applicable only to position sizes below 200 XBT. When chart history exceeds the available history of 1min date on TradingView, the indicator switches to 1hr data to provide estimates.
Outputs:
Either a check (using 1min data) or a question mark (using 1hr data) upon each new funding period.
Current funding rate, every 8 hours.
Current funding prediction for the next funding period.
Bitmex Premiums Index Histogram [AzureKn1ght]This my version of the Bitmex Premiums Index indicator.
It is based on the actual index, so it is a bit more accurate than the other scripts out there.
Comes with customizable alerts for Overbought and Oversold zones.
Enjoy. :)