PDA

View Full Version : Serialising


laocoon
11-18-2009, 05:58 AM
Hi

I'm getting the following error message when I use a custom indicator in NT7 Beta 4.
"Indicator XYZ could not be serialized. Please refer help for more information on serialising indicators"

What's strange is that I only get the error message when I save the workspace or when I exit NinjaTrader, not when applying the indicator to a chart. The compiling also works without a problem, which is why I'm at a loss here.

Thanks

NinjaTrader_Dierk
11-18-2009, 06:33 AM
Please rip through to offending indicator (I believe 6.5 should come with documentation on this issue) and see if you could isolate the cause of trouble. Also, please make sure you ONLY are using supported stuff so e.g. no indicator derived from custom base class or so.

laocoon
02-13-2010, 08:19 AM
I'm still at a loss regarding this issue. I also found nothing in the Help section that could point me in the right direction.

How can it be that an indicator can be compiled and work properly but that it can't be serialised? This is very annoying because every time I load Ninja I have to manually add the indicator to all my charts, since it can't be saved as a Default Template.

Could anyone kindly offer some help?

Thanks a lot.

NinjaTrader_Dierk
02-13-2010, 08:24 AM
Real simple: XML serialization imposed restrictions on your code which is beyond what actually compiles. Thus your indicators might compile and work well, it just could not be XML serialized. I suggest consulting the Miscrosoft docs on XML serialization. Worst case you could contact a verified NS consultant for assistance or post your indicator here.