OPEN-SOURCE SCRIPT
CME Bitcoin Weekend Gap (Global) @jerikoo

Description:
The Problem: You are watching the wrong hours. Many traders assume CME Bitcoin futures follow standard stock market hours or open Monday morning. This is incorrect.
Stock Market: Opens Monday morning.
CME Bitcoin: Opens Sunday Evening (US Time).
If you are in Europe, this means the market actually opens at Midnight (00:00) Monday. If you are waiting for the "Monday Morning Open," you are late.
The Solution: True Gap Detection This indicator highlights the exact downtime of the CME Bitcoin Futures market to help you identify true liquidity gaps.
Why this script is different: Most gap scripts break when you change your chart's time zone (e.g., switching from UTC to New York). This script is Universal.
Hardcoded Exchange Time: It calculates logic based on "America/Chicago" (CME HQ) time, regardless of your local chart settings.
Manual Offset Fix: Some data feeds have a +/- 1 or 2-hour sync difference depending on the broker. This script includes a "Hour Shift" setting to manually align the box perfectly to your specific candles.
How to use:
Add to your chart.
Look for the Dark Green highlighted zone.
This zone represents the Weekend Gap (Friday Close to Sunday Open).
Troubleshooting: If the box starts 1-2 hours too early or too late, go to Settings and change the "Hour Shift" value (e.g., -1, +1) until it snaps perfectly to the Friday close candle.
Technical Details:
CME Close: Friday 16:00 CT
CME Open: Sunday 17:00 CT
Color: Dark Green (50% Transparency)
Step 3: Categories & Tags
Select these options in the right-hand menu of the publishing page.
Category: Trend Analysis OR Bitcoin
Tags: CME Bitcoin BTC Gap Futures Weekend
Step 4: Final Checklist Before Clicking "Publish"
Load the Code: Make sure the "Manual Fix" version of the code (the last one I gave you) is currently open in the Pine Editor.
Add to Chart: You must click "Add to Chart" so the script is visible on your screen before publishing.
Privacy: Select Public (so others can search for it) or Private (if you only want to share the link).
Visibility: Choose Open (so others can see the code) or Protected (if you want to hide the code, though Open is better for simple scripts like this).
The Problem: You are watching the wrong hours. Many traders assume CME Bitcoin futures follow standard stock market hours or open Monday morning. This is incorrect.
Stock Market: Opens Monday morning.
CME Bitcoin: Opens Sunday Evening (US Time).
If you are in Europe, this means the market actually opens at Midnight (00:00) Monday. If you are waiting for the "Monday Morning Open," you are late.
The Solution: True Gap Detection This indicator highlights the exact downtime of the CME Bitcoin Futures market to help you identify true liquidity gaps.
Why this script is different: Most gap scripts break when you change your chart's time zone (e.g., switching from UTC to New York). This script is Universal.
Hardcoded Exchange Time: It calculates logic based on "America/Chicago" (CME HQ) time, regardless of your local chart settings.
Manual Offset Fix: Some data feeds have a +/- 1 or 2-hour sync difference depending on the broker. This script includes a "Hour Shift" setting to manually align the box perfectly to your specific candles.
How to use:
Add to your chart.
Look for the Dark Green highlighted zone.
This zone represents the Weekend Gap (Friday Close to Sunday Open).
Troubleshooting: If the box starts 1-2 hours too early or too late, go to Settings and change the "Hour Shift" value (e.g., -1, +1) until it snaps perfectly to the Friday close candle.
Technical Details:
CME Close: Friday 16:00 CT
CME Open: Sunday 17:00 CT
Color: Dark Green (50% Transparency)
Step 3: Categories & Tags
Select these options in the right-hand menu of the publishing page.
Category: Trend Analysis OR Bitcoin
Tags: CME Bitcoin BTC Gap Futures Weekend
Step 4: Final Checklist Before Clicking "Publish"
Load the Code: Make sure the "Manual Fix" version of the code (the last one I gave you) is currently open in the Pine Editor.
Add to Chart: You must click "Add to Chart" so the script is visible on your screen before publishing.
Privacy: Select Public (so others can search for it) or Private (if you only want to share the link).
Visibility: Choose Open (so others can see the code) or Protected (if you want to hide the code, though Open is better for simple scripts like this).
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。