CLV (Accum/Dist) study error

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
dave
Newbie
Newbie
Posts: 40
Joined: Tue Dec 07, 2010 12:00 am

CLV (Accum/Dist) study error

Post by dave » 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)
Attachments
Form1.zip
(11.04 KiB) Downloaded 365 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CLV (Accum/Dist) study error

Post by Sandra » Mon Jan 10, 2011 11:05 am

Hello dave,

Sorry for the delay. I have reproduce your problem using last version of TeeChart.Net and I have added your request in bug list report with number [TF02015348]. We try to fix it for next maintenance releases of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: CLV (Accum/Dist) study error

Post by Narcís » Wed Feb 02, 2011 8:37 am

Hi Dave,

We have been investigating the issue further and we found that it's not a bug. The solution is setting the TreatNaNAsNull property to true as shown here:

Code: Select all

                line1.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint
                line1.TreatNaNAsNull = True '<-New Line
                line1.CheckDataSource()
                line1.Tag = Func1Tag
Can you please check if this works fine at your end?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

dave
Newbie
Newbie
Posts: 40
Joined: Tue Dec 07, 2010 12:00 am

Re: CLV (Accum/Dist) study error

Post by dave » Fri Feb 11, 2011 2:42 pm

Sorry for not responding sooner. I had stopped following this thread once it was designated as a problem in the control.

I tried your solution and it did work for me. Thank you very much.

As far as I know, there is still an issue with the Commodity Channel Indicator study. It was going to be addressed in the next maintenance release. Do you have any estimates on when the next update might be released?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CLV (Accum/Dist) study error

Post by Sandra » Fri Feb 11, 2011 3:56 pm

Hello Dave,
As far as I know, there is still an issue with the Commodity Channel Indicator study. It was going to be addressed in the next maintenance release. Do you have any estimates on when the next update might be released?
I can't still provide an estimate date so the last maintenance release appears this week (09 Feb). I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

On the other hand, I have increase severity of bugs (TF02015363) and feature request (TF02015361) so to be reviewed for future versions.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CLV (Accum/Dist) study error

Post by Sandra » Tue Apr 19, 2011 1:24 pm

Hello dave,

I inform you that bug with number (TF02015363) is fixed and feature request (TF02015361) is included in new available version there is in Customer download Page

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply