PDA

View Full Version : Help with an error message


laparker
06-07-2009, 02:01 PM
I have come up against an error message in the log, when back testing a strategy, that I can't seem to fathom out at the moment. I think it might be something to do with the quality of the price data but can't track it down. The message is:

6/7/2009 2:51:18 PM Default Error on calling the 'OnBarUpdate' method for indicator 'TSSuperTrend' on bar 1811: Object reference not set to an instance of an object.

Can anyone decipher what the last part of the message might mean " Object reference not set...."?

Thanks in advance.

NinjaTrader_Bertrand
06-08-2009, 05:05 AM
laparker, thanks for the post - this is connected to the indicator you use -

-->> 'OnBarUpdate' method for indicator 'TSSuperTrend'

You would need to debug it to check why it throws this error on being applied to your chart. Print statements are helpful in this process - http://www.ninjatrader-support2.com/vb/showthread.php?t=3418

laparker
06-08-2009, 07:10 AM
got it! - I was passing, as the 1st parameter, Close. Stripped it out and it works like a beaut.

Thanks