I am wondering if Bars.GetBar() simply find a corresponding time by looping back on itself to find the fist value of a time less than the time you input?
OR.
Is it some efficient heuristic, that knows which bar occupies that time, and it doesn't simply count bar by bar.
Asking as I am debugging a piece of code, and am wondering if I write my on GetBar method by simply looping back on itself to find the desired time(or closest time if that bar doesn't exist).... I am just wondering how much slower mine would be if I created it by simply looping back, bar by bar.
If none of that makes sense, I'm just wondering if the Bars.GetBar() finds the bar simply by starting at the CURRENT bar position, and counting backwards till the appropriate bar, or if it does so through some other means?
Thanks,
FP

Comment