OPEN-SOURCE SCRIPT
已更新

Perfect Opens Perfect Boxes

164
This approach combines two methods of chart denoising:
1. The underlying chart uses the previous close as the open price for the next candle, which makes candlestick patterns easier to read.
2. The overlay reduces the visual noise of a line chart by representing the price range over a given interval as a box; the “wicks” on this chart are purely cosmetic, indicating that closing prices lay outside the range of the previous interval.
版本注释
Fixed
• Sync Runtime & Manual Limits: Introduced a global  MAX_COUNT  constant to perfectly synchronize the script’s manual array cleanup with the Pine Script runtime’s built-in garbage collector.
• Orphan Line Cleanup: The script now explicitly deletes the oldest  line  from the  rangeGapLines  array exactly when the oldest  box  is removed. Previously, the manual limit was higher than the runtime limit, causing boxes to vanish automatically while their attached lines persisted indefinitely.
Changed
• Refactored Limits:  max_boxes_count  and  max_lines_count  now reference the shared  MAX_COUNT  constant, ensuring that if you adjust the history depth in the future, all behavior scales automatically without introducing new bugs.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。