Error in Visualizer when cancelling backtest (using Cancel button) [SOLVED]
Author: LenMoz
Creation Date: 10/31/2015 11:31 AM
profile picture

LenMoz

#1
MessageBox:
QUOTE:
Error in Visualizer: TabPage: {Performance}, removing.
Object reference not set to an instance of an object.
[OK]

This occurs upon pressing the Cancel button after launch of a backtest. Clicking ok on the Messagebox results in a repeat of the Messagebox, once for each active Visualizer.
profile picture

LenMoz

#2
Oh, then this is intended behavior?
profile picture

Eugene

#3
I was able to reproduce this under debugger and here's what happens. The SystemPerformance object comes out incomplete and as the loaded performance visualizers do not expect that, they error out and get unloaded by WL.

Is this a problem?
profile picture

LenMoz

#4
No, not a problem. I like clicking through seven MessageBoxes when my strategy gets auto-launched because I touched a PosSizer attribute. :-) It keeps my day from going too fast and keeps my heart rate and blood pressure up.
profile picture

Carova

#5
Len, you crack me up! :)

Vince
profile picture

Eugene

#6
Agreed that graceful error handling is such a nuisance compared to having to close just a single dialog box stating that "Wealth-Lab has crashed, press OK to exit". ;-)

On a serious note, I'm not sure why it's necessary to continue with processing the performance visualizers when the strategy has been canceled. I'll try to ask the developers.

On second thought, this happens when you're quick enough to Escape strategy processing during the data collection phase - which typically doesn't take much time if DataSet is kept up to date.
profile picture

LenMoz

#7
QUOTE:
typically doesn't take much time if DataSet is kept up to date.

Not that short. In my case, about ten seconds for six years of up-to-date S&P 500, on a strategy that builds 34 DataSeries. Well over even this old man's reaction time.
profile picture

Eugene

#8
For 6 yrs of up-to-date S&P 500, the collection phase takes about 3-4 seconds on my soon 4-year old SSD.
profile picture

KEVINP

#9
34 DataSeries in a strategy? Wow. That's a lot of DataSeries.
profile picture

mrsic

#10
Hi,

i get the same error message. The only difference is TabPage {Equit Curve} instead of Performance.
first pic

If i am testing from 1999 - 2017 i get this result.
second pic

If i am testing from 2011-14 - 2017 i get this result.
first pic

If i am testing from 2015 - 2017 i get this result.
third pic

does someone know why?

greetings damir
profile picture

Eugene

#11
Hi Damir,

You get this error for a reason different than topic starter's. It's about the data and you can find it in this FAQ | Position Sizing, Extensions, Miscellaneous > Visualizers > Oddities on the "By Period" tab
profile picture

mrsic

#12
Hi Eugene,

thanks.

greetings damir
profile picture

Eugene

#13
Damir, I'm glad I could help.

Note to future posters: This topic is not a general "visualizer error" thread. Question has been resolved and so it's is closed for new replies. Please look for threads more closely matching your visualizer error(s).
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).