Interactive Lot/Position Calculator FTX/OKX DCA [RDM13-NOSTRA] Interactive script to calculate lot and position size when you use TradingView to trade on FTX or OKX. You can also use multi positions for DCA strategy.
After adding an indicator and making an initial interactive selection on the chart, you can modify the selection points by selecting the indicator and moving the points on the chart.
FTX
USDT/USD PremiumKraken + FTX USDT premium indicator.
Inspired by John J Brown, forked from IAmSatoshi (Migrated to V5 and few changes + more markets coming).
John J Brown: "
USDt premium/discount exist because of conversion fees.
It is a good market indicator:
If USDt>USD, then market is growing and in need of liquidity;
If USDt<USD, then market is shrinking and has excess liquidity."
[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"
Breakeven rectangle overlay for move contractI'm sharing this little script allowing you to display a breakeven rectangle for the move contract after manually writing your parameters (strike price, contract price). In case you are long your breakeven (at expiration) is when the price expire outside the rectangle. In case you are short your breakeven (again at expiration) is when the price is staying inside the rectangle at expiration. You can change multiple personalisation parameters as you wish.
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.
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
BTC FTX Futures PremiumsThis indicator shows the future BTC premiums on FTX.
The purple area is the Daily December Futures contract subtracted by the current price.
The blue area is the Daily September futures contract subtracted by the current price.
The green area is the Daily June futures contract subtracted by the current price.
You can use this to try and understand market sentiment.
If the current price dumps but the premium remains the same it likely means that sentiment is unchanged.
The opposite is true, if the price pumps and the premium is the same it means the market likely wasn't convinced by the movement.
The difference between the current price and the futures price can help determine how bullish or bearish a market or at extremes the level of euphoria.
FTX BTC Move Trend [Ryto]
This indicator helps intuitively see the trend between FTX move contract's strike price (Daily or Weekly) and the index price of BTC.
Blue curve: FTX BTC index price.
Red curve: 00:00:00-00:59:59 UTC+00:00 BTC index price TWAP.
Orange curve: 23:00:00-23:59:59 UTC+00:00 BTC index price TWAP.
Grey curve: The strike price of a move contract.
When the blue curve is near the grey curve, that represents the current index price is near to the strike price of a move contract. Cooperate with other indicators and observe the BTC trend also consider move contract price to decide whether to buy or sell.
Note: Should use the timeframe lower than 5 minutes, to ensure the correct TWAP price.
Reference:
- help.ftx.com
- help.ftx.com
- www.tradingview.com
---------------------------------------------------------------------------------------------------------------------------------------------------------------
這個指標適用在觀察 FTX 波動率產品 (日與週波動率合約),可以更直覺的看出 FTX BTC 指數價格與波動率產品行權價的走勢關係。
藍色曲線: BTC 指數價格
紅色曲線: 00:00:00-00:59:59 UTC+00:00 BTC 指數價格之時間加權平均
橘色曲線: 23:00:00-23:59:59 UTC+00:00 BTC 指數價格之時間加權平均
灰色曲線: 波動率產品行權價
當藍色曲線在灰色曲線附近,代表此時指數價格在行權價附近,配合其他指標觀察 BTC 走勢與波動率價格來決定是否買入或賣出波動率。
注意: 需使用時匡為 5 分鐘以下,確保指數價格之時間加權平均計算正確。
參考:
- help.ftx.com
- help.ftx.com (MOVE 合约)
- Pine 腳本時匡限制
INDICES against BTC & ETHThe idea is the following; you can easily chart the FTX perp indices against (currently) two baselines, ETH & BTC.
I always choose ETH since it is way harder to outperform ETH at the moment. Doing this helps me see certain trends and/or fractal that might happen again in the future.
Since I already made D.A.M (Defi against Majors / Pricing Defi categories against BTC & ETH: ) I came across the idea of doing the same thing but with the perp indices that FTX offer. At first, I wanted to add this to D.A.M but it has no place in this indicator since this will not only look at Defi but the macro market as a whole.
The indicator currently only looks at the following indexes (weighting can be found here: https:// help. ftx. com/hc/en-us/articles/360027668812-Index-Calculation) :
DRGN: THE DRAGON INDEX
ARPA, BTM, IOST, NEO, NULS, ONT, QTUM, TRX, VET
ALT: ALTCOIN INDEX
BCH, BNB, EOS, ETH, LTC, XRP, TRX, DOT, LINK, ADA
MID: THE MID CAP INDEX
ALGO, ATOM, BAT, CRO, DASH, DCR, DOGE, HT, IOTA, LEO, NEO, OKB, ONT, QTUM, VET, XEM, XLM, XMR, XTZ, ZEC, ZRX, OMG, COMP, BSV, FTT, YFI, UNI, SNX, MKR, AAVE
SHIT: THE SHITCOIN INDEX
AE, AION, ARDR, ARPA, BCD, BEAM, BTG, BTM, BTS, BTT, CHZ, CKB, DGB, ELF, ENJ, GNT, GRIN, GT, HBAR, HC, ICX, IOST, KMD, KNC, LAMB, LRC, LSK, MANA, MATIC, MCO, NANO, NULS, OMG, POWR, PUNDIX, REN, REP, RVN, SC, SNT, STEEM, THETA, TOMO, VSYS, WAVES, XVG, XZC, ZEN, ZIL, ZRX
PRIV: THE PRIVACY INDEX
BEAM, DCR, GRIN, KMD, XMR, XVG, XZC, ZEC, ZEN
DEFI: THE DECENTRALIZED FINANCE INDEX
KNC, MKR, ZRX, REN, REP, SNX, COMP, TOMO, RUNE, CRV, DOT, LINK, MTA, SOL, CREAM, BAND, SRM, SUSHI, SWRV, AVAX, YFI, UNI, WNXM, AAVE, BAL
(D7R) FTX Ethereum FuturesEthereum FTX Contract Futures Price with 3 different value display modes. (Percentage, Delta, Absolute).
This information can be used to understand when futures are trading at relative strong/weak premium or discount against each other.
This information can either be used for cash-n-carry arbitrage, inter-exchange arbitrage, hedging or directional price speculation.
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
FTX Spot and PERP VolumeYou can use this indicator to show the volume of SPOT and PERPS for an asset. It is setup for FTX and SOL in this example but you can change this with the inputs. You can use two different exchanges such as using FTX:BTCUSD and BINANCE:BTCUSD.
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!
PERP comparisonCompare the strength of the assets:
ALTPERP
MIDPERP
SHITPERP
ETH
BTC
on the FTX echange.
If the timeframe is < 1hr the indicator resets every funding round (8 hrs)
If the timeframe is > 1hr the indicator resets every week
(D7R) FTX Bitcoin FuturesFTX Contract Futures Price with 3 different value display modes. (Percentage, Delta, Absolute).
This information can be used to understand when futures are trading at relative strong premium or discount against each other.
This information can either be used for hedging or price speculation when difference between contracts offer that arbitrage.
FTX vs BitMex BTC Perp PremiumThis script compares FTX BTC/PERP (BTC perpetual futures contract) price to Binance BTC/USDT spot and colors it red. It also plots Bitmex's BTC perpetual futures compared to Binance spot and colors it blue.
FTX = red
Bitmex = blue
Now you can easily see that you can get a 1% discount on FTX perpetuals when it is tanking. This tells you that you can set your limit buy orders extra low if you like to catch crashes. Also, you can see what your average trader on each platform is willing to pay above or below the spot premium. In general you want to do the opposite of what the average trading is doing on these exchanges unless you're in the main bull or mania phase of the Bitcoin cycle.
If you want to use Bitstamp or your favorite exchange it can be changed in the settings. Let me know if you find any settings that work well for you.
May you profit and enjoy! :)
Crypto Market CorrelationThis script utilized some new functions in Pine Script, which compares the correlation between the current symbol to a basket of crypto indexes that are listed on the FTX exchange.
By tracking these indexes we can gauge the reaction across markets that have a different market cap. By that I mean we can have a better idea about where the money is flowing into a specific market.
This script uses data from FTX:BTCPERP, FTX:ALTPERP, FTX:MIDPERP, FTX:SHITPERP, FTX:EXCHPERP, FTX:DRGNPERP.
A value closer to 1 equals to more correlation, closer to 0 equals to less correlation.
FTX Index Advance Decline LineAs of publishing, all the tickers from FTX with the word "index" in it, plus bitcoin.
This is your regular ADL except instead of hundreds in the basket you've got them condensed into 7 (for now) and in open/close candle form instead of a line.
I'm a bit disappointed because I thought I'd lever more utility from indexes. It may just need some tweaking.
Doesn't it look like Renko?
Some notes:
Reason why it expands:
Total number of constituents is a static 7, to fix that use time to change the total variable based on dates of introduction.
Reallly looks like Renko:
Renko with ATR, length 14, hourly chart.
FTX US Presidential OddsThis script shows the FTX Presidential Odds. You can view labels or turn them off, view as a total ratio or view individual lines. For use when trading the FTX "PRESIDENT 2020" contracts.