Closed Equity visualizer: unhandled exception on Change Scale in a zoomed chart
Author: abegy
Creation Date: 3/19/2018 10:00 AM
profile picture


Hi Eugene,

When you zoom with your mouse and you decide later to right click to apply "Change scale", you have an unhandled exception for Closed Equity (see the screen shot attached).
profile picture


Hi Alexandre.

Thanks for the heads-up. Just renamed your thread which incorrectly named this "abnormal program termination" (or "crash"). In fact this is just an "unhandled exception" which has little to no effect on your work and can be avoided by reopening the chart.

System.OverflowException: Value was either too large or too small for a Decimal.
at System.Decimal..ctor(Double value)
at System.Windows.Forms.DataVisualization.Charting.Axis.RoundedValues(Double inter, Boolean shouldStartFromZero, Boolean autoMax, Boolean autoMin, Double& min, Double& max)

This is not a Wealth-Lab issue, rather a known bug in the Microsoft chart control which powers MS123 Visualizers: Chart: OverflowException when zooming. While a workaround may be possible in theory according to this SO thread (Microsoft chart control - redraw chart after failure (red cross)), I don't see its instant application to our code. So this will remain a WONTFIX kind live bug due to its low severity.

Added a note to the Closed Equity page. Don't do this (i.e. Change Scale from a zoomed in chart). If you did you will have to reopen the Strategy window to work with the Closed Equity tab.
profile picture


Thank you Eugene.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).