OPEN-SOURCE SCRIPT
已更新 Goldbach Pivots

**Goldbach Pivots**
Based on Goldbach Price Levels as developed by Hopiplaka. Plots horizontal price levels derived from powers of 3 (3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147), calculated as `floor(close/X)*X` for each enabled divisor — creating a nested grid of "Dealing Ranges" (DRs) that traders using Goldbach/ICT-style methodology use to frame price action.
**Key features:**
- **Multiple independent DRs** — enable any combination of the eleven power-of-3 divisors simultaneously, each with its own color, line style (solid/dashed/dotted), and width
- **Configurable range** — set how many DR levels plot above and below current price via the iterations input
- **Percent sub-levels** — optional 11%, 17%, 50%, 83%, and 89% intermediate lines within each DR, each independently toggleable and styleable
- **Custom percent level** — define any percentage (with optional mirroring to the complementary level on the opposite side of the range) for levels outside the standard set
- **Stop Run lines** — per-DR toggle that plots short dotted lines a configurable distance inside the DR boundary, marking potential liquidity-run zones
- **Overlap priority rendering** — smaller DRs draw on top of larger ones so nested structure stays visually clear
All levels recalculate live off the current close and redraw on the last bar, keeping the grid aligned with price in real time.
Based on Goldbach Price Levels as developed by Hopiplaka. Plots horizontal price levels derived from powers of 3 (3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, 177147), calculated as `floor(close/X)*X` for each enabled divisor — creating a nested grid of "Dealing Ranges" (DRs) that traders using Goldbach/ICT-style methodology use to frame price action.
**Key features:**
- **Multiple independent DRs** — enable any combination of the eleven power-of-3 divisors simultaneously, each with its own color, line style (solid/dashed/dotted), and width
- **Configurable range** — set how many DR levels plot above and below current price via the iterations input
- **Percent sub-levels** — optional 11%, 17%, 50%, 83%, and 89% intermediate lines within each DR, each independently toggleable and styleable
- **Custom percent level** — define any percentage (with optional mirroring to the complementary level on the opposite side of the range) for levels outside the standard set
- **Stop Run lines** — per-DR toggle that plots short dotted lines a configurable distance inside the DR boundary, marking potential liquidity-run zones
- **Overlap priority rendering** — smaller DRs draw on top of larger ones so nested structure stays visually clear
All levels recalculate live off the current close and redraw on the last bar, keeping the grid aligned with price in real time.
版本注释
1. Per-DR line length — replaced the always-infinite lines with a configurable Length (bars) input for each Dealing Range size, defaulting shorter for smaller grids and longer for larger ones (3→50 bars up to 177147→900 bars). 2. Configurable line thickness — widened all width inputs from a 1–4 cap to 1–10, and added a dedicated Stop Run Line Width control (previously hardcoded to 1).
3. Labeled input fields — every previously blank field (On, Style, Width, Length, Stop Run) now shows a text label in the settings menu instead of appearing unlabeled.
4. Per-DR "Infinite" option — removed the single global "extend all lines infinitely" toggle and replaced it with an individual Infinite checkbox on each DR's row, so any size can independently be set to extend across the full chart instead of using its Length value.
版本注释
Update image开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。