Yes, you can use the indicators base type which all indicators inherit from, but you would not see any indicator specific properties. For example, if you passed in the Bollinger bands, you could see its TickSize but not the Bollinger's plots like Upper.
public void ExampleMethod(NinjaTrader.NinjaScript.IndicatorBase indicator){ double tickSize = indicator.TickSize; indicator.Print("My Tick Size is: " + tickSize); //or more preferred use the output.process method when not in a NinjaScript file NinjaTrader.Code.Output.Process("My Tick Size is: " + tickSize, PrintTo.OutputTab1); }
Leave a comment: