[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"
BTCPERP
[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
Aggregated BTC SpreadThis script is used to aggregate the bitcoin spread on futures contracts on different platforms.
It works by averaging the for every selected exchange, and apply an EMA of .
It is supporting
Binance (USD / USDT)
Okex
FTX
Huobi
Deribit
Ascendex
CME (BTC1!)
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!