[NinjaScriptProperty] use if you want the property included in the calling object (Warning: Only types which can be Xml Serialized should be marked as a NinjaScriptAttribute
[xmlignore] use if you want to save property to a workspace or template
[Browsable(false)] use if you want property in NinjaTrader UI's property grid
still a bit confused about when I need to serialsize?
and this
Warning: Only types which can be Xml Serialized should be marked as a NinjaScriptAttribute, otherwise you may run into errors when persisting values in various scenarios (e.g., saving workspace, or running Strategy Optimizations). Should you have a property you wish to use as user defined input, you will need to implement a secondary simple type (such as an int or string) as the value to be serialized as user input. Please see the example below which demonstrates using a simple type as the NinjaScriptProperty against types which cannot be serialized
in help guide
Comment