Bitcoin CME GAP [SAKANE]This indicator detects and visualizes the weekend gap in CME Bitcoin futures (BTC1!), defined as the difference between the Friday settlement price and the Monday opening price. It stores the final CME close, waits for trading to resume, and then measures the gap. If the gap exceeds the user-defined threshold, it is displayed as a box on the chart. The box remains active until price returns to the gap’s closing level or a specified number of bars has elapsed. During the CME weekend closure, a horizontal reference line marks where CME last settled, providing a clear anchor for price positioning.
A key feature is that the gap is displayed correctly even on spot or perpetual BTC charts. Because futures prices often trade at a premium or discount relative to spot markets, plotting CME levels directly would misplace the gap. This script calculates the price difference between CME and the chart instrument and shifts the gap vertically into the chart’s price space while preserving its true size. As a result, traders can see the actual gap location where market participants are likely to react, without distortion from futures basis differences.
Gap-fill detection is performed using CME futures prices themselves. The script evaluates whether the CME high or low has reached the prior CME close level that defines the gap. This ensures that once the gap is filled in the futures market, it is considered filled everywhere. Because of this CME-based validation combined with spot-space visualization, users can determine whether a gap has closed without switching to the BTC1! chart.
CME gaps are widely observed by market participants because price frequently revisits and fills these discontinuities. By highlighting both the location and the fill status of the gap, this indicator helps track the gap-closure tendency and provides insight into short-term liquidity imbalances, derivatives-driven dislocations, and the market’s process of price repair.
Pine Script® インジケーター






















