Things I've tried at State == State.DataLoaded. Let's say IndicatorName is an indicator with two arguments:
// Constuctor method is created by NinjaTrader as IndicatorName(string argument1, int argument2), etc. indie = IndicatorName(); // This would conceivably force all defaults for arguments. This does not compile. indie = IndicatorName(argument1: "a string"); // This does not compile. indie = IndicatorName(argument2: 10, argument1: "a string"); // This compiles and runs successfully, but it's superfluous. indie = new IndicatorName(); // This compiles but errors at runtime. indie = new IndicatorName(argument2: 10); // This does not compile: No constructor for IndicatorName takes 1 argument. indie = new IndicatorName(argument1: "a string", argument2: 10); // This does not compile: No constructor for IndicatorName takes 2 arguments.
Is there a way? If not, can this please be added as a feature request?
Best,
Caleb
Comment