I realized that
CODE:
Please log in to see this code.
does not duplicate the seriesA into seriesB. seriesB is initialized to all zeroes. How to duplicate a series without looping through all the bars?
Size:
Color:
Yes, this is for creating a
new series - not for duplicating it. There are many methods to duplicate an object in C#, such as reflection, serialization or cloning but the simpest way is undoubtedly this:
CODE:
Please log in to see this code.
Size:
Color:
Careful.
CODE:
Please log in to see this code.
Size:
Color:
Thank you for your answer.
Bottom line: There is no simple way to duplicate (i.e. to clone) a series. This is not a problem, I just wanted to know.
Size:
Color:
Probably the simplest way, however, is to simply perform a math operation to create a new series, like this:
CODE:
Please log in to see this code.
Size:
Color: