r/pinescript • • 10m ago

Reproducing a closed-source TradingView indicator's 3 levels (high, mid, low) from a 4H window

1 Upvotes

I'm trying to reproduce the behavior of a closed-source TradingView indicator that draws 3 horizontal levels (high, mid, low) from a 4H window. I can read the levels from the chart for given days and timeframes, but I can't see the source. Fixed grids (Murrey Math) and standard pivot indicators did not match. Has anyone modeled this kind of rule (which bars define the window, how the mid is computed) or know open-source scripts that behave similarly? Any pointers welcome.


r/pinescript • • 5h ago

Feature Request: Expanding the 500 Future Bar Drawing Limit (xloc.bar_index) in Pine Script v6

Post image
1 Upvotes

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:

  1. 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).
  2. 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.


r/pinescript • • 13h ago

Whats this supposed to mean?

Post image
1 Upvotes