Before I show them, I have a set custom public Enum's in the UserDefinedMethods Class (I have changed the enum name in the samples below).
The first snippet compiles perfectly:
[Description("Custom Enum Type"), Category("Parameters")] [NinjaTrader.Gui.Design.DisplayName("PressureCalculation Type")] public CustomTypes CustomType { get { return this.customType; } set { this.customType = value; } }
The second snipped will not compile at all and I get errors at not being able to find the Enum (are you missing the assembly error).
[Description("Custom Enum Type")] [Category("Parameters")] [NinjaTrader.Gui.Design.DisplayName("PressureCalculation Type")] public CustomTypes CustomType { get { return this.customType; } set { this.customType = value; } }
Well functionally who cares, but when trying to use Intellisence to allow to me easily add indicators in other indicators and strategies, it works fine with the second snippet, but will not correctly show the methods with the first.
Maybe it is something I am doing wrong here, but I can reproduce this easily now - including after restarting NT several times.
Comment