SmartQuant Discussion
http://www.smartquant.com/forums/

Charts : Overflow Error
http://www.smartquant.com/forums/viewtopic.php?f=60&t=14987
Page 1 of 1

Author:  zbxxxx [ Tue Nov 19, 2019 1:19 pm ]
Post subject:  Charts : Overflow Error

I have problems plotting more than 1 months worth of data for my alphas.
Up to 1 month, using the Log function works fine.
However, after a certain amount of data to plot, OQ has the following "overflow error" : (see trace below)

It obviously has something to do with the amount of data to plot. I have a 32GB machine with 4GB video card .. memory is not an issue
The standard algos work correctly ; indeed so does my system up to a point.

Any ideas?

Thanks



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Single x1, Single y1, Single x2, Single y2)
at SmartQuant.ChartViewers.TimeSeriesViewer.Paint(Object obj, Pad pad)
at SmartQuant.Charting.Pad.PaintAll(Graphics Graphics)
at SmartQuant.Charting.Pad.Update(Graphics Graphics)
at SmartQuant.Charting.Chart.UpdatePads(Graphics g)
at SmartQuant.Charting.Chart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Author:  skuvv [ Wed Nov 20, 2019 2:34 pm ]
Post subject:  Re: Charts : Overflow Error

Hi,
1) what type and version of software do you use?
2) how many times have you approximately called the Log (...) function?

Author:  zbxxxx [ Fri Nov 22, 2019 10:56 am ]
Post subject:  Re: Charts : Overflow Error

Version 1.0.7223.32819 64bit

Each alpha calls the function approx 5500 times per day for a backtest ..

I have at least 2 alphas that I would like to graph ...

Author:  skuvv [ Fri Nov 22, 2019 11:09 am ]
Post subject:  Re: Charts : Overflow Error

zbxxxx wrote:
Version 1.0.7223.32819 64bit

Each alpha calls the function approx 5500 times per day for a backtest ..

I have at least 2 alphas that I would like to graph ...

5500 logs per day is not a heavy value for charts.
Can you provide sample solution which can reproduce this problem?
You can send it PM

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/