Point & Figure - can't populate the series ..
Posted: Fri Aug 06, 2010 5:50 am
Greetings,
I am trying to implement a Point & Figure Chart but I can't populate the series correctly.
The following code snippet based on the example works fine. FillSampleValues(500) gives me absolutely no idea to what is happening.
When I try to put my own data into the point and figure series it plots 1 circle. My data is standard OHLC read from a database.
example:
Cheers Phil.
How do I set up a point and figure chart using my data in place of PointFigure1.FillSampleValues(500);
What should the last 5 lines of the above example code snippet look like.
If the above does not make sense then can you provide an example of usign the Point and Figure series NOT using FillSampleValues(500); and being populated manually.(much like I'm attempting)
Cheers Phil.
I am trying to implement a Point & Figure Chart but I can't populate the series correctly.
The following code snippet based on the example works fine. FillSampleValues(500) gives me absolutely no idea to what is happening.
Code: Select all
PointFigure1.FillSampleValues(500);
PointFigure1.CloseValues = PointFigure1.YValues;
PointFigure1.DateValues = PointFigure1.XValues;
PointFigure1.XValues.DataMember = "index";
PointFigure1.XValues.Order = ValueListOrder.Ascending;
PointFigure1.YValues.DataMember = "close";
example:
Cheers Phil.
Code: Select all
for (int index = 0; index < dataList.Count; index++)
{
double open = Convert.ToDouble(dataList[index].Open);
double high = Convert.ToDouble(dataList[index].High);
double low = Convert.ToDouble(dataList[index].Low);
double close = Convert.ToDouble(dataList[index].Close);
DateTime idate = dataList[index].Date;
// Labels for the X axis.
labels.Add(idate.ToShortDateString());
// Add the data to the Series.
PointFigure1.Add(index, open, high, low, close);
}
PointFigure1.CloseValues = PointFigure1.YValues;
PointFigure1.DateValues = PointFigure1.XValues;
PointFigure1.XValues.DataMember = "index";
PointFigure1.XValues.Order = ValueListOrder.Ascending;
PointFigure1.YValues.DataMember = "close";
How do I set up a point and figure chart using my data in place of PointFigure1.FillSampleValues(500);
What should the last 5 lines of the above example code snippet look like.
If the above does not make sense then can you provide an example of usign the Point and Figure series NOT using FillSampleValues(500); and being populated manually.(much like I'm attempting)
Cheers Phil.