[NinjaScriptProperty]
[XmlIgnore()]
[TypeConverter(typeof(NinjaTrader.Gui.Tools.InstrumentSelector))]
[Display(Name = "Instrument2", GroupName = "Parameters", Order = 1, Description = "Other instrument")]
public NinjaTrader.Cbi.Instrument Instrument2
{
get; set;
}
Then I'd also like it to be supported by the Strategy Builder, but it fails: an error popup appears as soon as I click on the indicator in the list proposed by the strategy builder, complaining about a null object:
(In the attached example, the Instrument serialization code has been removed as it does not seem related to the issue).
Attaching Visual Studio debugger does not help to find the origin of the error, as it usually does when a null object is in my source code, which makes me think it might be in the platform code.
Please tell me if I'm doing something the wrong way, or if additional code is required to support this kind of indicator in the strategy builder.
By the way, I'm aware that Instrument input is not intended to be used in AddDataSeries... and that's exactly what I use it for... As far as I've been testing, it seems to be working fine, but as it's not officially supported, please add my vote to the already existing feature request (SFT-882 mentioned in other threads).

Comment