Dear TradingView Support Team,
I am writing to submit a feature request regarding the current line and label drawing limitations in Pine Script, specifically concerning projectable drawing limits into future bars using xloc.bar_index.
Currently, Pine Script imposes a strict hard limit of 500 bars when drawing lines into the future beyond the current real-time bar (bar_index + 500).
While developing advanced long-term projection tools—such as 4-cycle Gann Boxes (e.g., 4 x 144 = 576 bars) and multi-timeframe geometric cycle models—we frequently run into this 500-bar ceiling. To prevent scripts from failing or throwing runtime rendering errors, developers currently have to implement complex custom math algorithms to dynamically calculate slopes and clip lines at bar_index + 490.
While these workarounds keep the scripts functional, they restrict full structural visualization for long-term strategic cycle analysis.
If technically feasible within your rendering pipeline and engine architecture, we kindly request the following enhancements in upcoming Pine Script updates:
- Increased Future Bar Projection Limit: Expanding the future bar drawing limit beyond 500 bars (e.g., to 1,000 bars or higher, especially for premium/pro tier users).
- Dynamic Limit Option: Providing a configurable parameter or native function in line.new() that allows drawing to project uninterruptedly across long timeframes without requiring manual line-clipping logic.
Thank you for your continuous dedication to improving Pine Script and supporting the developer community.