iGapFinderHi everybody!
I decided to release this script to help traders keeping track of market gaps on the CME.
The script works in general for any market and at any timeframe.
The script allows the user to:
- Identify price gaps of a customized amplitude (Gap Width)
- Compute the probabilities of filling them (specific for bullish and bearish gaps or cumulative)
- Visualize gaps on the chart through red and green price areas.
- Visualize the last N unfilled bullish and bearish gaps together with their time of creation.
Cmefutures
(D7R) CME Bitcoin FuturesCME Bitcoin Quarterly Contract Futures Price with 3 different 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.
BITCOIN CME FUTURES GAPSDisplays information about Bitcoin CME Futures Gaps over BTCUSD (or XBTUSD) charts.
You can configure a threshold percentage to only display gaps whose size is greater than that percentage. The gap precentage is calculated based on the current close price.
Gaps up are displayed in Orange, gaps down in Green
Bitcoin CME Retail vs Professionals MACD
This is an interesting study using the data provided by the Bitcoin CME Commitment of Traders report.
The MACD plot the difference between the Retail Traders positions and the Professional Traders positions.
The general idea is that Professional Traders have a better read on the market than Retail Traders.
The signal line helps to identify the trend that it is moving in.
I believe that this plot helps to visualize the overall market sentiment better than the raw COT data.
Try it out and let me know what you think!
Gap Trading Strategy: CME BitcoinI created a strategy which finds gaps on CME Futures market for Bitcoin, BTC1! and opens a long or short position on the crypto exchange depending on what kind of gap was found (up or down) on CME.
Up gap: today open price > previous day high price
Down gap: today open price < previous day low price
Two lines below the main chart show when gaps appear. The green line represents the size of up gaps, when it crosses zero it gives a long signal. The red line - represents the size of down gaps, when it crosses zero - short signal.
Instead of having to look between multiple charts, this simply overlays the past weeks open and close should a gap appear.
Usage:
Strategy flips long / short depending of indicator signals. It could cut the position by stop loss or take profit.
Features:
ability to set stop loss and take profit in %
ability to set delta for gaps (if you want to filter small ones)
ability to choose strategy type. Standart: Long Up/Short Down || Inverse: Short Up/Long Down.
Backtesting:
Backtested on BTCPERP ( FTX ) and XBTUSD (Bitmex).
It shows a low drawdown, a small number of trades and 50% of profit for the 2020.
For example, I set high delta for down gaps to filter small ones
Strategy doesn't repaint.
Futures APRFutures basis % for any ticker.
Requires: an index to compare against, the futures ticker, and the expiration year/month/day/hour. Optional second ticker to compare with.
Example explanation using bitcoin futures:
For Deribit, their futures expire at 0800UTC and the ticker will show the date of expiration. For example, BTC27H20's expiration is the 27th of March, 2020, at 0800UTC. For BitMEX, their futures expire at 1200UTC and have the same expiration dates.
www.deribit.com
"3 and 6 months quarterly of the March, June, September, December cycle; Quarterly futures expire the last Friday of each calendar quarter at 08.00 UTC."
www.bitmex.com
Archived page here: archive.is
"This contract settles on the .BXBT30M Index value as of the Jun 26, 5:00 AM (12:00:00 PM UTC)."
Once the June 2020 contract does expire you can always replace "XBTM20" with the currently running contract.
Notes on futures charts that never expire:
For OKEx, their futures charts are continuous, meaning that the indicator's values won't be accurate past prior expirations. This will be the same for other continuous futures charts such as BTC1!. This is because they are displaying previously expired contracts combined together.
CME Equity Futures Price Limits
Breakers for CME's futures contracts. Should work on CST/EST/UTC charts.
CME says it uses the last 30 seconds of the session to grab a reference price, so I took the open of the last session's candle because it's easier.
Out of session breakers: +/-5%
Limit downs: -7%/-13%/-20%
There are some minor nuances for the later part of the NY session but I don't really care to add that in right now.
Options:
- Input a manual reference price to override the selected price for accuracy.
- Show only the current/last session's limits. This breaks the in session limit down lines.
Live prices:
www.cmegroup.com
Month codes:
www.cmegroup.com
Reference:
www.cmegroup.com
It's best to check the last updated reference price to ensure it's correct.
CMEs Window (Beyond Candle)> Find window in CME Exchange
> Yellow Dot = Rising Window
> Yellow Dot = Falling Window
CME Gap Finder - BitcoinOnly for Bitcoin!
This indicator locates weekly gaps created by the CME Futures market for Bitcoin.
As you can see, Bitcoin tends to close the weekly gaps created in the futures market so I thought this could be a very useful tool.
Instead of having to look between multiple charts, this simply overlays the past weeks open and close should a gap appear.
I hope you find this indicator useful!
Cheers!