An error message appears in the log: "Error on plotting values to chart data box for indicator 'XXX'. Please check the OnBarUpdate method. Object reference not set to an instance of an object.
I have a try/catch block for everything in OnBarUpdate but I don't get anything in the output window. (Maybe my try/catch is messed up - see attached). It seems to happen in Market Replay a lot more than with a live feed.
try{ BLOCK OF CODE }catch (Exception e){ Print("XXX Line 212 " + e.ToString());return; }
Cheers,
Taggart
Comment