Right now you have to explicitly remember the order in which the bars were added or maintain a counter to get the right index of the bar being added. This is error-prone since you can forget to increment the counter.
It would be relatively straight forward to return the index of the newly added series as the return value of Add() function.

Comment