OPEN-SOURCE SCRIPT

Anchored GB Time

Customizable indicator designed to track the number of hours elapsed since a user-defined starting point, such as the weekly market open. It highlights significant time intervals by checking the elapsed hour count against predefined GB Numbers and CE Numbers, offering precise insights for time-based trading strategies.

Custom Start Time:

Choose the day and hour when the counter resets, making it adaptable to different asset classes and market sessions.
Perfect for aligning with weekly opens or specific algorithmic strategies.
GB and CE Numbers:

Predefined sets of Goldbach (GB) Numbers and Critical Event (CE) Numbers.
Labels are displayed when the hour counter matches one of these significant numbers.
Customizable Appearance:

Separate settings for GB and CE labels:
Enable or disable each set.
Customize label colors, sizes, and vertical offsets.
Time Zone Support:

Select your desired time zone for accurate start time synchronization with your chart.
Consistent Label Placement:

Labels remain fixed above the candles regardless of zoom level or price range, ensuring clarity on any chart.

Useful for:
Time-Based Strategies: Identify key market intervals for entries or exits based on elapsed trading hours.
Custom Session Tracking: Monitor time progression across different market sessions or instruments.
Algorithmic Insights: Integrate time-based rules into your trading systems with precision.

How to Use:

1. Set the start day and hour using the Algo Start Day and Algo Start Hour inputs.
2. Customize the appearance of GB Time and CE Numbers labels as needed.
3. Align the chart's time zone with the indicator for accurate time tracking.

In the chart example, price is anchored to Sunday at 6pm, the opening hour for the week for futures
educationalgoldbachgoldbachtime

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明