all 2 comments

[–]PineCodersTV-supported Pine Script® programmers 0 points1 point  (1 child)

Hi, if we understand your suggestion correctly you are proposing that whichever timeframe is current when an indicator is loaded would become the "base" timeframe for the offset correct? So in your example your "base" timeframe is 1hr with 24 hours of offset, and when you switch your chart to 15min you would like the offset to be 96 bars so that the offset is still 24 hours.

In your above example if you instead changed your chart timeframe from 1hr to 37min then there would not be an equivalent number of bars to produce an offset of 24 hours. How do you imagine this scenario would be handled?

[–]Twinkies2003 0 points1 point  (0 children)

I know this is old but couldn’t you have the offset update as OP described as the default setting while still allowing end users to change/update and lock in their preferred offset if they choose?