OPEN-SOURCE SCRIPT

Combined Bitcoin CME Gaps and Weekend Days

Theo MikeTheRuleTA
Cập nhật
Script 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:

  1. Enable CME Gaps
  2. Show Real vs. CME Price
  3. Only Show Weekend Gaps


CME Gaps Style:
  1. Gap Fill Color Up
  2. Gap Fill Color Down
  3. 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.
Phát hành các Ghi chú
Edited the Indicator name inside the chart.
Bitcoin (Cryptocurrency)BTCBTCUSDCandlestick analysisChart patternsCMECyclesdaysgapsweekendgap

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm