I ran into some spooky issues, regarding out of range errors.
By investigating into this, I figured out, that CurrentBar, most of the time is 2 lower than Count of the Bar Series.
When I was trying to iterate over a Series by using Count as condition: for(int i = 0; i < High.Count; i++) this is likely to crash.
When I am using CurrentBar, or decrease the range by 1, it works. But I have a problem with understanding why.
If I have a Count of 5, but I cannot access the fifth element, e. a. element[4], then what does this Count represent??

Comment