OPEN-SOURCE SCRIPT
已更新 Timebender 369 Time Calculator

Overview
The Timebender Digits indicator visualizes rhythmic price cycles by marking confirmed swing highs and lows with dynamically colored numerical stamps.
Each number is derived from the sum of the current candle’s hour and minute, reduced to a single digit (1–9), providing a visual “time signature” for each structural turn in market flow.
This is a structural-pivot model inspired by LuxAlgo’s swing logic, rebuilt from the ground up in Pine v6 using the Timebender Rulebook framework for flawless compilation and precision label anchoring.
Core Features
Dynamic Swing Detection:
Detects structural highs/lows using ta.pivothigh() and ta.pivotlow(), confirmed after the selected number of bars (len).
Digit Logic (1–9):
Converts the pivot candle’s timestamp into a reduced digit from 1–9, acting as a symbolic rhythm marker.
Phase-Based Coloring:
1-3 → Accumulation (Gray)
4-6 → Manipulation (Green)
7-9 → Distribution (Blue)
Floating or Fixed Labels:
Option to keep digits visually anchored above/below candles (yloc.abovebar/belowbar) or locked to price (yloc.price) with customizable ATR offset.
Clean Visuals:
Transparent background, no boxes, no tooltips — just crisp digits that scale smoothly with zoom.
Master Toggle:
Instantly hide/show all digits without removing the indicator.
Inputs & Customization
Show Digits on Chart: Enable/disable plotting.
Pivot Length: Number of bars used to confirm swings (default 21).
Float Above/Below Bars: Switch between floating or price-anchored mode.
ATR Offset Multiplier: Adjust spacing when price-anchored.
Digit Size: Tiny → Huge (default Large).
Color Controls: Customize the Accumulation, Manipulation, and Distribution color palette.
Use Cases
Visualize time-based rhythm in market structure.
Identify cyclical energy between accumulation, manipulation, and distribution phases.
Study how market timing aligns with structural swing formation.
The Timebender Digits indicator visualizes rhythmic price cycles by marking confirmed swing highs and lows with dynamically colored numerical stamps.
Each number is derived from the sum of the current candle’s hour and minute, reduced to a single digit (1–9), providing a visual “time signature” for each structural turn in market flow.
This is a structural-pivot model inspired by LuxAlgo’s swing logic, rebuilt from the ground up in Pine v6 using the Timebender Rulebook framework for flawless compilation and precision label anchoring.
Core Features
Dynamic Swing Detection:
Detects structural highs/lows using ta.pivothigh() and ta.pivotlow(), confirmed after the selected number of bars (len).
Digit Logic (1–9):
Converts the pivot candle’s timestamp into a reduced digit from 1–9, acting as a symbolic rhythm marker.
Phase-Based Coloring:
1-3 → Accumulation (Gray)
4-6 → Manipulation (Green)
7-9 → Distribution (Blue)
Floating or Fixed Labels:
Option to keep digits visually anchored above/below candles (yloc.abovebar/belowbar) or locked to price (yloc.price) with customizable ATR offset.
Clean Visuals:
Transparent background, no boxes, no tooltips — just crisp digits that scale smoothly with zoom.
Master Toggle:
Instantly hide/show all digits without removing the indicator.
Inputs & Customization
Show Digits on Chart: Enable/disable plotting.
Pivot Length: Number of bars used to confirm swings (default 21).
Float Above/Below Bars: Switch between floating or price-anchored mode.
ATR Offset Multiplier: Adjust spacing when price-anchored.
Digit Size: Tiny → Huge (default Large).
Color Controls: Customize the Accumulation, Manipulation, and Distribution color palette.
Use Cases
Visualize time-based rhythm in market structure.
Identify cyclical energy between accumulation, manipulation, and distribution phases.
Study how market timing aligns with structural swing formation.
版本注释
We just changed the name thats shown, simple and clearer. 开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
once you see what is possible, how can you do otherwise?
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
once you see what is possible, how can you do otherwise?
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。