BTC: CME Futures vs. Exchange SpreadsAs you can see, this script plots the current (10-min. delayed) CME Futures price versus Bitfinex, Bitstamp, and Coinbase prices.
It's displayed here on a 30 minute view because at the time of writing the futures have been alive for approximately one day. The script will likely be more useful on longer time frames as a macro-level indicator.
It's pretty simple to adapt this to additional exchanges
Futures
Index Vs Futures for OKEX Quarterly Contracts 5.0*****Please note that all old versions of this script are depreciated and will report incorrect data!*****
This "indicator" is made to display the history of the price difference between OKEX's quarterly contracts and the market that it is supposed to be tracking. Contango differences are natural, but it's nice to visualize how they change over time.
This update to this script brings in further functionality when OKEX changed the index that the futures contracts are based off of to remove chinese exchanges from the mix. This script reflects that change and crosses-over when that change was made.
The new index removed chinese exchanges which are (currently) trading at a significant discount which will give bad data when using my old code.
OKCoin future diffThis indicator checks the accuracy of okcoin futures against the current index. Example, check how the 1W future from 7 days ago matches the current spot value. The matches are on the 1W, 2W, 3M futures
The indicator bundles them together, makes a weighted average and shows it all.
the thin lines are the futures deltas for each of the futures(check the code to see the color of each).
the thick line is the compound indicator, the line is red when the value is too far off the spot price, black when it's <5%
background is green on "bullish", red for "bearish", take it as you want with many grains of salt :)
there is an input value (default = 1) to adjust time scales. the value is a multiplier for the number of periods in a day.
Example:
1D chart, input = 1
4h chart, input = 4h * 6 = 24h
using the incorrect adjustment for the wrong time scale, makes the indicator (even more) meaningless ;)
Herrick Payoff Index for Quandl DataUpdate to my previous Herrick Payoff Index script. This script pulls Quandl futures data with daily open interest. The prior version only used the weekly Commitment of Traders open interest data so could only be used on weekly bars. Note: Must use Quandl Symbol methodology in chart (i.e. enter symbol as QUANDL:CHRIS/CME_FC2, QUANDL:CME/FCX2016, ect.). Unfortunately, I haven't been able to program this to pull from the embedded futures data.
[Bitcoin] Spot price vs Futures indicatorA handy script to detect opportunities in the futures market during extreme movement.
During rallies, futures usually tend to be US$10 above spot price, on the other hand it can be $1 below spot price when the price starts to decline.
You could also draw a trendline to it :) measuring the amount of risk people are willing to take just to predict future prices in the rally/decline.
Credits to lowstrife for the idea, I'm just implementing it :)
CM_DayOfWeek All Instruments V2Updated Code That Highlights Bars Based On Days Of The Week.
Works On Daily and Intra-Day Bars.
Works on All Instruments. Stocks, Forex, Futures, Bitcoin.
Shows Correct Trading Sessions!!!
Ability to Turn On/Off Each Day Of The Week via Inputs Panel.