I got the custom type
[CategoryDefaultExpanded(true)] public class myType : ICloneable { public string Name { get; set; } public double Value { get; set; } ........ }
public class myIndicator : Indicator { [PropertyEditor("NinjaTrader.Gui.Tools.CollectionEditor")] public List<myType> MyTpyeListProperty { get; set; } protected override void OnStateChange() { if (State == State.SetDefaults) { MyTpyeListProperty = new List<myType>(); } } }
I add indicator to chart, then saving chart template, then I switch to another template and getting back to first one.
After this all the values in this list get doubled, so if I originaly have 3 values after this I got 6.
Is there any workaround on this?
This error may be repoduced with "SampleIndicatorTypeConverter" sample code from http://ninjatrader.com/support/forum...ad.php?t=97919
Comment