mex_fundingScript for calculating Bitmex funding based on the Premium tickers Bitmex submits to Tradingview
Make sure you add the correct Bitmex Interest Base and Quote Symbols in the input settings
For example for www.bitmex.com the inputs are:
Chart ticker: XBTUSDPI8H
Input Settings
Interest Base: XBTBON8H
Interest Quote: USDBON8H
Bitmex
WhaleCrew Crypto Open InterestUse Crypto Open Interest Data available on TradingView to your advantage.
Features
Auto-Detect Symbol (based on chart)
Preset Symbols (BTC, ETH, BNB, XRP, LUNA, ADA, SOL, AVAX and DOT)
Exchanges ( Binance and BitMex )
Inverse and USDT Pairs
Override Data Option to use any OI Data on TradingView
Customizable Candles
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.
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! :)
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.
RSI + MFI - Crypto Bull and Bear market A fancy styled version of the RSI (Relative Stochastic Index) + MFI (Money Flow Index) oscillators in order to emphasize buy and sell opportunities.
The 80 and 20 Bands are meant to be used in Bull or Bear markets. Better performing in D timeframes.
The circles represent the cross between RSI and MFI .
Designed for Crypto Markets
Thanks @micheleprandina
Credits:
Channel Break [for free bot]I present to you a script for testing the channel breakout strategy for the Bitmex exchange.
Cryptocurrency itself is a trending tool, which is why breakout strategies generate the largest profits, and the channel breakout strategy is one of the most effective trend strategies.
The optimization result shows the result of trading on a volume of 20% of the deposit. But since Bitmex trades in futures contracts, you can use 50%, 100% and even much more, depending on your attitude to risk.
At the time of publication on the Bitmex exchange there are 12 different contracts, i.e. You can diversify your trading well (by pre-optimizing the settings for each contract).
In the script, you can set up many trading options - timeframe, periods for buying and selling, method of exiting a trade, stop loss, take profit, risk management, etc.
Thus, you create a strategy "for yourself".
Представляю Вам скрипт для тестирования стратегии пробоя канала для биржи Битмекс.
Криптовалюта, сама по себе является трендовым инструментом, именно поэтому, пробойные стратегии генерируют самую большую прибыль, а стратегия пробоя канала – является одной из самых эффективных трендовых стратегий.
На результате оптимизации показан результат торговли на объеме в 20% от депозита. Но так как на Битмекс торговля идет фьючерсными контрактами, Вы можете использовать 50%, 100% и даже намного больше, в зависимости от Вашего отношения к риску.
На момент публикации на бирже Битмекс есть 12 разных контрактов, т.е. Вы можете хороши диверсифицировать свою торговлю (предварительно оптимизируя настройки по каждый контракт).
В скрипте Вы можете настроить множество вариантов торговли - таймфрейм, периоды для покупки и продажи, метод выхода из сделки, стоп-лосс, тейк-профит, рискменеджмент и т.п.
Таким образом Вы создаете стратегию "под себя".
KINSKI RSI Short/LongExtends the display of the Relative Strength Index (RSI) by shorts and longs from Bitmex and shows them as a diagram.
How to interpret the display?
- blue line is the default Relative Strength Index
- red line means "oversold
- green line "overbought"
- grey dotted line up/down indicates the optimal range for up and down movements 30 to 70
- in general, the reaching or crossing of the thresholds in the direction of the mid-range is seen as a possible buy or sell signal
- RSI values (blue line) of over 70 percent are considered "overbought", values below 30 percent "oversold
Which settings can be made?
- Selection for the "Currency". Default value is "BTCUSD". Currently only the following currencies are supported "BTCUSD", "ETHUSD", "ETCUSD", "OMGUSD", "XLMUSD", "XTZUSD".
- Selection for calculation formula ("Calculation"). The default value is "hlc3".
- Field for the moving average value ("RSI Length"). The default value is 14, but values of 7, 9 or 25 are also common. The shorter the period under consideration, the more volatile the indicator is, but with longer periods, fewer signals are triggered.
- furthermore you can make layout adjustments via the "Style" menu
Stoploss indicatorGood for setting trailing stops and stoplosses when your taking a scalp etc, most recommended for manual trailing stops
Simple EMA trend indicatorSimple EMA trend indicator , pretty straightforward green equates to bullish and usually a retest/wick is often seen , same for the flipside viceversa
Bitcoin future premiumsThis shows the actual premium or the deviation between chosen active bitcoin futures and the bitcoin perpetual price as a representation of the underlying bitcoin price.
It's centered around zero meaning the futureprice and the perpetual contract are the same.
This simple indicator can for example be used to indentify sentiment in the market.
Please make sure you fill out active contracts in the settings for this indicator to work.
XBT % ContangoSimilar to my other indicators, but measures XBTUSD Contango in terms of percent.
Also, built it so you could change the values that give the red and green signals. Default values are 0% or less (backwardation) indicates green. However, i found that a 0.5% setting worked will finding local bottoms for current contract of XBTH20 (March 2020). The upper value default is at 5%, and signals red when the next contract reaches over 5%.
My assumption is as BTC increases in value over time, measuring contango in terms of percent will be a better measure of the XBT futures curve.
2020 March 27 .BXBT IndexAs described here:
www.bitmex.com
blog.bitmex.com
With itBit's weight given to \Gemini because it currently is not on TradingView and they're both small NY based exchanges.
BITSTAMP: 24.86%
BITTREX: 2.53%
COINBASE: 44.98%
GEMINI: 7.41%
KRAKEN: 20.22%
BITSTAMP:BTCUSD^0.2486*BITTREX:BTCUSD^0.0253*COINBASE:BTCUSD^0.4498*GEMINI:BTCUSD^0.0741*KRAKEN:XBTUSD^0.2022
Intended for use with volume based indicators because BitMEX's indices do not include volume data.
Bitmex BTC Backwardation / ContangoThis indicator calculates difference between price of Bitmex's XBTUSD, and Bitmex's two nearest futures.
If the difference is negative, then it is backwardation.
If the difference is positive, then it is contango.
This script will be updated every about 3 months, when the nearest Bitmex future will be expired.
This is an updated script of , with better description.
BTC Volume Fiat vs Tether vs FuturesFutures = BYBIT+ BITMEX
Fiat = KRAKEN + BITSTAMP + BITFLYER + COINBASE
Tether = HITBTC + HUOBI + BINANCE + BITFINEX
Spot = Fiat + Tether
Tether vs Fiat = 100 * Tether / (Tether + Fiat)
Spot vs Futures = 100 * Spot / (Spot + Futures)
XBT Contango Calculator v1.1
This indicator measures value of basis (or spread) of current Futures contracts compared to spot. The default settings are specifically for Bitmex XBTU19 and XBTZ19 futures contracts. These will need to be updated after expiration. Also, it seems that Tradingview does not keep charts of expired contracts. If anyone knows how to import data from previous expired contracts, please let me know. This historical data could be valuable for evaluating previous XBT futures curves.
Also, VERY important to understand is this indicator only works with Spot Bitcoin charts (XBTUSD, BTCUSD, etc). If you add this to any other asset chart, it would not be useful (unless you changed settings to evaluate a different Futures product).
Contango and Backwardation are important fundamental indicators to keep track of while trading Futures markets. For a better explanation, Ugly Old Goat had done several medium articles on this. Please check out link below for his latest article on the subject...
uglyoldgoat.com
Notes on chart above should explain most of what you need to know on to use this indicator. The zero line is the spot price on the chart, so a positive value means Futures are trading at a premium (or in Contango). You can set a value of extreme Contango which will give an alert as red background (default setting is +$500). Green background will appear when Futures are trading at a discount to spot (Backwardation).
Hope some people get some use out of this. This is my first attempt at coding anything, so any feedback would be greatly appreciated!
BTC Donations: 3CypEdvBcvVHbqzHUt1FDiUG53U7pYWviV
Premium/Discount (Input)Used to show Contango or Backwardation in futures contracts vs spot price. You can input your own tickers so can technically can be used to compare anything.
* In this example I'm showing Okex Quarterly contract vs Okex spot index price because it showcases it better.
* If you are using this after 2019 the default setting will not work because I set it to Bitmex which does not currently have a "current contract in front" ticker available.
It should be fairly self explanatory, but just ask below if you have any questions.
Bitmex Funding Killzones v3 [MaliciousUpload]Originally built off of "Oscarvs: BITCOIN KILL ZONES v2" indicator, updated to now highlight a different time period based event.
1. The indicator should not be affected by what time zone you are in, it will show true Funding periods by default.
2. This needs to be used on the 1min time frame to be used to its full extent
3. The more the funding fee is the more likely you are to have price get manipulated by people looking to act on its benefit
4. This indicator will work only for XBTUSD and ETHUSD perpetual contract symbols as they are the only two ones with funding...
My opinion: Funding is literally the exchanges insurance policy, they are "the house", they will always win.
With that in mind you can trade "with the house" in this regard, getting onto the side that will benefit from exponentially large funding rebates.
Do you ever ask how those "whales" got to be rich? It was by saving every penny they could while trading.
Funding gives people the option to jump out right before, avoiding the fee and then immediately enter in after at no loss (assuming limit orders ofc).
If that doesn't make sense to you i cant help, sorry. :pray: :pray: :pray:
"Build up period" = Usually when we see people start getting into positions to try and get the rebate from funding and/or people getting out of positions that would be negatively impacted by funding
"Entry window" = If you are trying to scalp the "rebound" in price which should happen right after funding happens from people re-entering their position which previously exited just to avoid the funding fee or from all of the people who entered just to get the funding rebate
"Take profit period" = The time period I have determined to be most influential, very volatile IF the funding has an effect on price
Hit me up on Discord if you are an **experienced** trader that takes trading seriously.
MaliciousUpload#1637
RSI + BTC Short & Long RSIsPlots the RSI for the current chart (same as the built-in RSI indicator) and adds the RSI values for the Shorts and Longs (S&L) from Bitmex. The main reason I've used the RSI value is to have it on the same scale as the price chart's RSI. The general trend of the S&L is preserved.
QuantNomad - MA Strategy - 1 minute - ETHUSDInteresting performance for simple MA strategy on 1m ETHUSD. I used only close price and 15 SMA in it.
Performance is 55% over 10 days with a drawdown of only 3.5%.
Percent profitable is only 30% with almost 2k trades.
For sure this won't work as a standalone strategy, with 2k trades commission and slippage will destroy all your PNL but it can be a pretty good base for a more complicated strategy with good filters.
And remember:
Past performance does not guarantee future results.
Kozlod - Simple BB Strategy - XBTUSD - 1 minuteReally nice performance for simple BB on XBTUSD Bitmex 1 minute chart.
BB length = 55, BB mult = 4.
No SL or PT used.
Amazingly performance for the last week, 92% profitable. Tested on entire May percent profitable become 80%, still not bad.
And remember:
Past performance does not guarantee future results.