Object reference not set to an instance of an object
Author: wbzhang
Creation Date: 6/30/2011 1:06 PM
profile picture

wbzhang

#1
Some of my strategies have the "Object reference not set to an instance of an object" problem while running. But I can still view the performance result after run. It seems that it does not cause me too much trouble.

However, while I was trying to optimize these strategies, the performance data was not listed because of this error.

I looked through page http://www2.wealth-lab.com/WL5Wiki/kbErrorsStrategy.ashx, but didnt find much clues.
This page told me that the possible reasons are 1) some non-existed symbols or benchmark symbols, 2) some variables are not initialized. However, I checked the code carefully, no clues found. Any ideas to identify this problem?
profile picture

wbzhang

#2
Finally I found the problem. It is indeed caused by a null object. Thanks!
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).