|
Josh McCormick
2020-12-02 19:49:15
|
|
Title: LeftMostBar
Priority: Medium/High (I rarely flag one that high)
I've requested this feature before. It was turned down, but now that I'm running into more and more specific examples of where it is needed, I wanted to ask again:
I'd like a function that will return the position of the leftmost bar that is visible on-screen.
Preferred format --
integer = LeftMostBar (); ...or...
boolean = IsLeftMostBar ();
The first function would return the ID of the leftmost bar that is consistent with Count() and TotalBars().
The second function would return true if the current bar is the leftmost bar visible on-screen. Then if I want the number in a different way, I can use BarsSince(IsLeftMostBar()) or ValueWhen(IsLeftMostBar()) to turn it into some other value that I can work with.
The two most recent uses I had for this were:
1. A value I could compare against in the second parameter of PlotProfile so that I could limit the profile graph to just what is on-screen (or on-screen and beyond to the right), which is the most useful information I'd want a profile graph for.
2. A value I could compare against to highlight the on-screen gaps that have not since been filled in without polluting it with off-screen information.
Please give this feature request some further consideration. It's very useful and hopefully wouldn't be too difficult to implement.
Thanks,
Josh McCormick
|
|