Combined Bitcoin CME Gaps and Weekend DaysScript Description: Combined Bitcoin CME Gaps and Weekend Days
Author: NeoButane (Bitcoin CME Gaps), JohnIsTrading (Day of Week),
Contributor : MikeTheRuleTA (Combined and optimizations)
This Pine Script indicator provides a combined view of Bitcoin CME gaps and customizable weekend day backgrounds on your chart. It’s designed to help traders visualize CME gaps along with customizable weekend day highlights.
Features:
CME Gaps Visualization:
Enable CME Gaps: Toggle the display of CME gaps on your chart.
Show Real vs. CME Price: Choose whether to display chart prices or CME prices for gap analysis.
Weekend Gaps Only: Filter to show only weekend gaps for a cleaner view (note: this may miss holidays).
CME Gaps Styling:
Weekend Background Highlighting:
Enable Weekend Background: Toggle the weekend day background highlight on or off.
Timezone Selection: Choose the relevant timezone for accurate weekend highlighting.
Customizable Weekend Colors: Define colors for Saturday and Sunday backgrounds.
How It Works:
CME Gaps: The script identifies gaps between CME and chart prices when the CME session is closed. It plots these gaps with customizable colors and line widths.
You can choose to see gaps based on CME prices or chart prices and decide whether to include only weekends.
Weekend Backgrounds: The script allows for background highlighting of weekends (Saturday and Sunday) on your chart. This can be enabled or disabled and customized with specific colors.
The timezone setting ensures that the background highlights match your local time settings.
Inputs:
CME Gaps Settings:
Enable CME Gaps
Show Real vs. CME Price
Only Show Weekend Gaps
CME Gaps Style:
Gap Fill Color Up
Gap Fill Color Down
Gap Fill Transparency
Weekend Settings:
Enable Weekend Background
Timezone
Enable Saturday
Saturday Color
Enable Sunday
Sunday Color
Usage:
Add this script to your TradingView chart to overlay CME gaps and weekend highlights.
Adjust the settings according to your preferences for a clearer view of gaps and customized weekend backgrounds.
This indicator provides a comprehensive tool for tracking CME gaps and understanding weekend market behaviors through visual enhancements on your trading charts.
CME
Futures Settlement [NeoButane]Traders use settlement prices as both support/resistance and as a target for price to trend towards. The intention of this script is to provide possible entry and exit levels for swing and scalp trades by drawing horizontal lines of true settlement prices provided by TradingView.
The settlement price, which is calculated daily, is used to determine the profit/loss of a trader's futures position. Prior to the daily close, price settlement of futures contracts is performed by taking the average of its traded price during a specified period of time.
Usage
The settlement prices, shown as horizontal lines, serve as support or resistance for entry or exit. There are hundreds of ways to combine this with favorite indicators, or it can be used as levels for pure price action traders.
See how settlement price levels can be used in confluence with oscillators.
Configuration
Toggles to show each settlement. Reprint shows prior weeks or months after they've ended. Back-adjusted futures, which affect expired futures price history on continuous futures charts, should only be enabled on non-standard charts to match the user's chart settings.
What this script does
This script plots the daily, weekly, and monthly settlements for futures, including an average for the two most recent weekly or monthly settlements. The weekly settlement uses the last day of the week's daily settlement and the monthly settlement uses the last day of the month's daily settlement. For symbols that do not have settlement prices, which will be almost if not all symbols that are not futures, the settlement price instead becomes price at the last second before the daily/weekly/monthly close. In those cases, this script becomes a tool for automatically plotting daily/weekly/monthly closes.
See below for two different bitcoin charts. The chart on top is a non-futures chart and a futures chart is at the bottom. Note that CME bitcoin futures settle 4 hours (1500 CST) before bitcoin's daily close (UTC).
How this script works
TradingView has a built-in ability to display daily settlements instead of the actual daily close. This can be enabled in chart settings for futures on the daily timeframe and there is an argument for Pine Script to do so as well. Because settlement times are different for multiple products during the day, the script uses the settlement price from daily timeframe, which is guaranteed to be correct because TradingView is wonderful. I accidentally found the undocumented backadjustment and settlement_at_close when I was trying to use ticker.inherit() to create a symbol with its daily close time changed to another symbol's, which I still haven't figured out. TradingView has since added documentation for both of them, but there's still an ambiguous 'etc.' in the description of ticker.inherit() so maybe there's more secret arguments...
The script is able to be used on non-standard charts by using ticker.standard(), but back-adjustment will need to be changed by input to match chart settings.
References
Investopedia explanation of settlement price.
www.investopedia.com
Settlement prices for ES.
www.cmegroup.com
CME summary of settlement price.
www.cmegroup.com
How to enable settlement price as close for daily intervals in TradingView. This does not affect the use of this script.
www.tradingview.com
About back-adjustment for continuous futures charts in TradingView.
www.tradingview.com
CME Trading Hours HighlightDisplay the times when the CME is or isn't trading, on a non-CME symbol.
The Chicago Mercantile Exchange hours are usually from 17:00 one day to 16:00 the next, with an hour's break. Trading halts from Friday evening to Sunday evening. The exchange is in Chicago.
You might want to display these hours if you trade the same asset on a different exchange. For example, you might want to overlay the CME BTC1! hours on a Coinbase BTC chart to see how trading in these futures contracts affects the market.
Inputs:
Shade Outside Trading Hours - If selected (the default), then the chart background is shaded when the CME is closed. If unselected, the background is shaded when it's open.
Highlight Color - The colour to use for the background shade.
Just for fun, I wanted to publish a useful script that only took up one line 😁
CME Gap Oscillator [CryptoSea]Introducing the CME Gap Oscillator , a pioneering tool designed to illuminate the significance of market gaps through the lens of the Chicago Mercantile Exchange (CME). By leveraging gap sizes in relation to the Average True Range (ATR), this indicator offers a unique perspective on market dynamics, particularly around the critical weekly close periods.
Key Features
Gap Measurement : At its core, the CME Oscillator quantifies the size of weekend gaps in the context of the market's volatility, using the ATR to standardize this measurement.
Dynamic Levels : Incorporating a dynamic extreme level calculation, the tool adapts to current market conditions, providing real-time insights into significant gap sizes and their implications.
Band Analysis : Through the introduction of upper and lower bands, based on standard deviations, traders can visually assess the oscillator's position relative to typical market ranges.
Enhanced Insights : A built-in table tracks the frequency of the oscillator's breaches beyond these bands within the latest CME week, offering a snapshot of recent market extremities.
Settings & Customisation
ATR-Based Measurement : Choose to measure gap sizes directly or in terms of ATR for a volatility-adjusted view.
Band Period Adjustability : Tailor the oscillator's sensitivity by modifying the band calculation period.
Dynamic Level Multipliers : Adjust the multiplier for dynamic levels to suit your analysis needs.
Visual Preferences : Customise the oscillator, bands, and table visuals, including color schemes and line styles.
In the example below, it demonstrates that the CME will want to return to the 0 value, this would be considered a reset or gap fill.
Application & Strategy
Deploy the CME Oscillator to enhance your market analysis
Market Sentiment : Gauge weekend market sentiment shifts through gap analysis, refining your strategy for the week ahead.
Volatility Insights : Use the oscillator's ATR-based measurements to understand the volatility context of gaps, aiding in risk management.
Trend Identification : Identify potential trend continuations or reversals based on the frequency and magnitude of gaps exceeding dynamic levels.
The CME Oscillator stands out as a strategic tool for traders focusing on gap analysis and volatility assessment. By offering a detailed breakdown of market gaps in relation to volatility, it empowers users with actionable insights, enabling more informed trading decisions across a range of markets and timeframes.
CME Gap Detector [CryptoSea]The CME Gap Indicator , is a tool designed to identify and visualize potential price gaps in the cryptocurrency market, particularly focusing on gaps that occur during the weekend trading sessions. By highlighting these gaps, traders can gain insights into potential market movements and anticipate price behavior.
Key Features
Gap Identification: The indicator identifies gaps in price between the Friday close and the subsequent opening price on Monday. It plots these gaps on the chart, allowing traders to easily visualize and analyze their significance.
Weekend Price Comparison: It compares the closing price on Friday with the opening price on Monday to determine whether a gap exists and its magnitude.
Customizable Visualization: Traders have the option to customize the visualization of the gaps, including the color scheme for better clarity and visibility on the chart.
Neutral Candle Color Option: Users can choose to display neutral candle colors, enhancing the readability of the chart and reducing visual clutter.
How it Works
Data Fetching and Calculation: The indicator fetches the daily close price and calculates whether a gap exists between the Friday close and the subsequent Monday opening price.
Plotting: It plots the current price and the previous Friday's close on the chart, making it easy for traders to compare and analyze.
Gradient Fill: The indicator incorporates a gradient fill feature to visually represent the magnitude of the gap, providing additional insights into market sentiment.
Weekend Line Logic: It includes logic to identify Sunday bars and mark them on the chart, aiding traders in distinguishing weekend trading sessions.
Application
Gap Trading Strategy: Traders can use the identified gaps as potential entry or exit points in their trading strategies, considering the tendency of price to fill gaps over time.
Market Sentiment Analysis: Analyzing the presence and size of weekend gaps can provide valuable insights into market sentiment and participant behavior.
Risk Management: Understanding the existence and significance of gaps can help traders manage their risk exposure and make informed decisions.
The CME Gap indicator offers traders a valuable tool for analyzing weekend price gaps in the cryptocurrency market, empowering them to make informed trading decisions and capitalize on market opportunities.
ILM CFTC COT Disaggregated PlotUse this indicator on Daily Timeframe
Please refer to the below link for CFTC Disaggregated COT
www.cftc.gov
This script is very similar to COT Financial Plot indicator except that it plots the data for Disaggregated Futures
Crypto BTC Correlation Scalper Gaps StrategyThis strategy is based on the gaps theory.
In this case we have the BTC futures from CME, which acts in a way similar to stocks, and we can have gaps present between close/open session, and also sometimes between same candle due to huge movements intra candle.
At the same time I have combined this with a daily moving average, to help out a bit with the trend, since we are looking at small timeframe like 1-15/30min .
On top of that we have a reverse option, where long = short and viceversa, which can be used with against BTC pairs .
Rule are simple:
For long, we have a long gap and the close of the correlated candle is above daily sma
For short, we have a short gap and the close of the correlated candle is below daily sma
For exit:
For exit, we take the highest highest values for short entry TP, meaning we get the different from the HH and rest the current open candle distance, and use that distance as a TP.
At the same time for long entry, we take the lowest low value and rest current close of the candle to that value, and we get the TP.
Can also be applied this logic for SL aswell but from the test I have found out that exiting based on a reverse condition(when tp is not being hit), gives better results/dd overall.
If you have any questions, please let me know !
CME OpenThis indicator prints CME open line price on chart.
Please choose the right time to input depending on the broker you are using in Tradingview.
List of brokers:
OANDA 0620-0621
FOREX.COM 0620-0621
SAXO 0620-0621
GLOBALPRIME 0620-0621 (Working only on 1 minute chart)
VANTAGE 0620-0621
EASYMARKETS 0620-0621
PHILLIPNOVA 0620-0621
FXCM (FX) 0620-0621
CURRENCYCOM 0620-0621
CAPITALCOM 0620-0621
FXOPEN 1220-1221
PEPPERSTONE 1020-1021
SKILLING 1020-1021
EIGHTCAP 1320-1321
BLACKBULL 1320-1321
[BUBBLENUKE] BOB The Reversal Trader Indicator=============================================================: BOB The Reversal Trader :=============================================================
COMPONENTS:
- VWAP Anchored at Friday CME close
- Bitcoin CME close
- Volume bars
DESCRIPTION:
BOB is a mean-reversion trading system focused in BTCUSDT asset in the 30M time frame. The system is divided into 2 types of entries:
WEEKENDS:
BOB will trigger his entry when the price of Bitcoin is at one of the two deviations from the VWAP anchored at Friday CME close
INTRA-WEEK:
BOB will trigger its entry when the price of Bitcoin is at one of the two deviations from the VWAP anchored at the Friday CME close or when a volume candle indicates a reversal
[BUBBLENUKE] BOB The Reversal Trader=============================================================: BOB The Reversal Trader :=============================================================
COMPONENTS:
- VWAP Anchored at Friday CME close
- Bitcoin CME close
- Volume bars
SETTINGS:
- Asset: BTCUSDTPERP
- Time frame: 30M
- Hard TP %: 1.5
- Hard SL %: 40
- Trading Session Start (UTC): 4
- Trading Session End (UTC): 17
DESCRIPTION:
BOB is a mean-reversion trading system focused in BTCUSDT asset in the 30M time frame. The system is divided into 2 types of entries:
WEEKENDS:
BOB will trigger his entry when the price of Bitcoin is at one of the two deviations from the VWAP anchored at Friday CME close and BOB will take your profits when the price returns to the VWAP. When BOB hits Sunday and the CME reopens, BOB will close all your open positions.
INTRA-WEEK:
BOB will trigger its entry when the price of Bitcoin is at one of the two deviations from the VWAP anchored at the Friday CME close or when a volume candle indicates a reversal. BOB will take your profits when the price returns to the VWAP or when the HARD TP % is reached (1.5% by default). When BOB hits Friday and the CME closes, BOB will close all your open positions.
COT Report Crypto█ OVERVIEW
Showing the Commitments of Traders (COT) report(*) for Crypto contract Open Interest and Traders - CHICAGO MERCANTILE EXCHANGE (futures only) with COT charts on TradingView data.
* COT reports are released each Friday (except for U.S. holidays) by the CFTC.
* Each COT report release includes data from the previous Tuesday.
* Original data is www.cftc.gov
Data currently displayed are through April 12, 2022
█ FEATURES
You can switch the display for each of the following CFTC Ticker :
BITCOIN www.cmegroup.com
MICRO BITCOIN www.cmegroup.com
ETHER CASH SETTLED www.cmegroup.com
*MICRO ETHER www.cmegroup.com is currently not supported by TradingView at April 2022
You can switch the display for each of the following Positions :
Long
Short
Net
*Net Position limits the Chart Format that can be displayed
You can switch the display for each of the following Target :
Open Interest
Traders
You can switch the display for each of the following Categories :
Dealer
Asset manager
Leverage funds
Other reportable
Non reportable
*Non reportable has no Traders data
You can switch the display for each of the following Chart Format :
Normal Line
Stacked Column
Indexed Column
Difference StepLine
*Net Position can be displayed only for Normal Line
And, convert contract unit to coin unit is available.
BITCOIN/MICRO BITCOIN is converted to BTC and ETHER CASH SETTLED/MICRO ETHER is converted to ETH.
Then, percent by ALL data is available.
This Option use Open Interest(ALL) or Traders Total(ALL) by Target.
Info Display shows coin unit converts info and reason that cannot display a chart.
Of course, this display position and size are changeable.
█ HOW TO USE IT
This indicator allows you to see changes in each category within TradingView without having to refer directly to each report.
In addition, it provides a detailed means of analysis by offering Traders as well as Open Interest and a variety of visualization methods.
COT Report BTC Positions█ OVERVIEW
Showing the Commitments of Traders (COT) report(*) for BITCOIN Positions - CHICAGO MERCANTILE EXCHANGE (futures only) with COT charts on TradingView data.
* COT reports are released each Friday (except for U.S. holidays) by the CFTC.
* Each COT report release includes data from the previous Tuesday.
* Original data is www.cftc.gov
Data currently displayed are through April 12, 2022
█ FEATURES
You can switch the display for each of the following Positions :
Long
Short
You can switch the display for each of the following Categories :
Dealer
Asset manager
Leverage funds
Other reportable
Non reportable
█ HOW TO USE IT
This indicator allows you to see changes for each category within TradingView without having to refer directly to each report.
Margin Zones[kryptodude]This indicator is based on the margin requirements of the CME exchange.
Zones act as support and resistance levels, which are more likely to have a price reaction.
The recommended zones for entering a position, as well as taking profits, are zones 50 and 100.
For example, you decide to open a short position on the +100 zone,
in which case it is recommended to place a stop-loss behind the zone.
Take-profit part at -50 and -100, based on the zones from the formed maximum at the +100 zone.
Settings:
Select the currency pair and the exchange on which the indicator will work, For example BINANCE:BTCUSD
"Margin" (for example,now 68280, the next day the margin will be different)
"Tick cost" for BTC = 25 or 12.5
taken from the CME exchange.
"Price max"- High yesterday (for example 44451).
"Price min"- Low yesterday (for example 41280).
Please note, with strong volatility,
it is recommended to change the Tick cost instead of 25 to put 12.5
And also, only dots " . " not commas ", " work in the indicator.
(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.
CME Gap BTCThis script highlights the CME gap. It takes the daily close from Friday from CME Futures Bitcoin security (can be switched) and plots the difference from current close.
With the premise that CME gaps will be filled next week; when the current close is higher than Friday close, it plots a bear color, when the current close is lower, it plots a bull color. Colors can be changed
BTC COT Delta BBitcoin CME COT Delta Strategy
---------------------------------------
Reading 4 largest long positions and 4 largest short positions, this script uses (shorts - longs) to produce a long/short signal.
• When delta <= buy threshold, a "long" signal will appear on the chart.
• When shorts >= sell threshold, a "short" signal will appear on the chart.
To see the indicator below, since it's not possible to mix the two, use this script:
** This is not a trading advice, it's for research purposes only. Do not trade based upon these signals.
MicroStrategy Software Business Share PriceSimilar to the MicroStrategy Premium script. This indicator derives MSTR's core software business value by calculating its Bitcoin holdings as a percentage of market cap. Thus you can do, (1 - Bitcoin holdings as a % of market cap) * current share price = Core business share price
Ether (Ethereum) CME Gaps [NeoButane]Detects gaps in trading for CME's "Ether" cash-settled futures. This will show gaps as they happen on the 24/7 charts that crypto exchanges use. It is not usable on CME's tickers themselves, as gaps in trading are not displayed.
This indicator will only display if viewing an ETH chart.
More information on the CME ETH futures here:
www.cmegroup.com
Based on:
What's different: CME's BTC and ETH markets trade the same hours, but one may hit a limit breaker while there may be a case where the other does not.
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
BTC CME PremiumThe Chicago Mercantile Exchange bitcoin futures price versus a volume weighted index of bitcoin spot markets.
Positive values (green) means the CME price is higher than the spot index.
Negative values (red) means the CME price is lower than the spot index.
Whether a high CME price is bullish or not is up for debate so make of it what you will.
Weekends are highlighted with soft blue shading because during the weekend CME trading is halted which obviously has a big impact on the premium.
There's an option to turn this shading off.
Markets included for the volume weighted index:
Coinbase USD
Bitstamp USD
Bitfinex USD
Kraken USD
FTX USD
Binance USDT
Huobi USDT
This indicator is free, enjoy.
Micro Strategy PremiumSince the decision to buy 38,250 Bitcoin under their new treasury policy. Micro Strategy has become an easy and tax efficient way for many investors to gain an exposure to Bitcoin.
This script displays:
- Micro Strategy premium vs price of BTCUSD (CME)
- Micro Strategy premium vs price of BTCUSD (CME) minus Nasdaq 100 (QQQ ETF). A straightforward method to detach Micro Strategy’s share price from the overall performance of the US tech sector. This could potentially give you a more accurate premium.
- Micro Strategy’s 38,250 BTC as a percentage of their Market Cap
This script also acknowledges that Micro Strategy should be renamed “Macro Strategy” and that Michael Saylor is a living legend.
CME/FX/ICE Sunday OpenDIsplays a background color for CME futures open, forex market open, and ICE US futures open. Since there are varying opening hours for products offered, the opening hours are mainly for currencies, equity indexes, and precious metals.
Currently,
Forex markets open at 1700 EST
CME futures open at 1700 CST
ICE US futures open at 2000 EST
There are alerts for each open.