Page 1 of 1

accessing hidden internal series data

Posted: Wed Mar 02, 2005 4:55 pm
by 9340976
There are a few chart series which contiain multiple series. For example MACD function has 3, and Boilinger Bands functions has 2. with TChartGrid object, set to a particular chart, you can see this data, using names you can't re-assign. How can I access this data? I need to read this data.

Here is how you can see what I'm talking about:
1) add a TChart, and add a MACD function using a Candle Series you have somewhere else.
2) add a TChartGrid, and assign the Chart property to the chart added in #1.
Now in the TChartGrid, you can clearly see 3 series, the 1st one you can change the name, and access it directly, the next 2 is what I'm trying to access. Does anyone know how to access these 2 hidden internal series?

Posted: Thu Mar 03, 2005 12:31 pm
by narcis
Hi gm770,

Using Chart1.SeriesCount; you will see the number of series you have on the chart, then you can address them using Chart1. or Chart1.Series. where i is the series index that goes from 0 to Chart1.SeriesCount -1.

Posted: Thu Mar 03, 2005 9:12 pm
by 9340976
Thanks Narcis, this solves my problem.

Doing addional reasearch, I was suprised to find out that these internal series each have a NULL where it's name would be, and that you can't get to them from thier parents' LinkedSeries property, which is also NULL.
I don't think there is any other way to get to these intenal Series objects without the methods you mentioned.