candleSeries manipulation
Posted: Wed Dec 20, 2006 3:13 pm
I'm using .NET V2 2.0.2040.15119 and VB.Net coding. This I'm using the TChart component in a VB.NET windows application.
I'm trying to manipulate a candleseries in the following way and am having problems.
' I load the series with values (say 100). for example:
Series1.Add(Series1.Count, tmp_op, tmp_hi, tmp_lo, tmp_cl)
Series1.Labels(Series1.Count - 1) = mm & "/" & dd
' I need to remove some of the initial series points. for example:
for c = 0 to 10
Series1.Delete(0)
next c
' I've also used the following with the exact same result
for c = 0 to 10
Series1.Delete(c)
next c
MY PROBLEM:
even though I'm attempting to remove the bottom 10 values. The series appears to have the TOP 10 values removed and the chart displays this fact. I placed a break point in the loop and watched the
Series.OpenValues(Series.Count-1) change.
What's going on?
Thanks,
I'm trying to manipulate a candleseries in the following way and am having problems.
' I load the series with values (say 100). for example:
Series1.Add(Series1.Count, tmp_op, tmp_hi, tmp_lo, tmp_cl)
Series1.Labels(Series1.Count - 1) = mm & "/" & dd
' I need to remove some of the initial series points. for example:
for c = 0 to 10
Series1.Delete(0)
next c
' I've also used the following with the exact same result
for c = 0 to 10
Series1.Delete(c)
next c
MY PROBLEM:
even though I'm attempting to remove the bottom 10 values. The series appears to have the TOP 10 values removed and the chart displays this fact. I placed a break point in the loop and watched the
Series.OpenValues(Series.Count-1) change.
What's going on?
Thanks,