CLV (Accum/Dist) study error
Posted: Wed Jan 05, 2011 6:12 pm
I am attempting to add a CLV study to my charts. I think I have things set correctly, but the chart control stops with an Overflow error. I have a basic CandleChart in my sample program (attached). This one does not have a volume series, but I have set CLVFunction.Volume = Nothing. In my main program where I found this error, I do have a volume series which is populated with data. In that one, setting the .Volume property has no effect on the error. A partial listing of the error stack trace is shown below. The sample program, with data is attached.
If you can show me where I am setting something incorrectly, I would appreciate it.
System.OverflowException was unhandled
Message=Overflow error.
Source=System.Drawing
StackTrace:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.Line(Int32 x0, Int32 y0, Int32 x1, Int32 y1)
at Steema.TeeChart.Styles.Custom.DrawPoint(Boolean drawOldPointer, Int32 valueIndex, Int32 x, Int32 y)
at Steema.TeeChart.Styles.Custom.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Custom.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
If you can show me where I am setting something incorrectly, I would appreciate it.
System.OverflowException was unhandled
Message=Overflow error.
Source=System.Drawing
StackTrace:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.Line(Int32 x0, Int32 y0, Int32 x1, Int32 y1)
at Steema.TeeChart.Styles.Custom.DrawPoint(Boolean drawOldPointer, Int32 valueIndex, Int32 x, Int32 y)
at Steema.TeeChart.Styles.Custom.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Custom.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)