IndicatorBaseConverter Class
Definition
A custom TypeConverter class handling the designed behavior of an indicator’s property descriptor collection. Use this as a base class for any custom TypeConverter you are applying to an indicator class.
- A working NinjaScript demo can be found through the reference sample on “Using a TypeConverter to Customize Property Grid Behavior”
- When applying the custom converter, you must fully qualify the name (e.g., “NinjaTrader.NinjaScript.Indicators.MyCustomConveter”)
- Additional TypeConverter information can be found from the MSDN documentation
- See also TypeConverterAttribute
- For Strategies, see the StrategyBaseConverter class
Relevant base methods
Syntax
public class IndicatorBaseConverter : TypeConverter
Failure to apply a type of IndicatorBaseConverter on an indicator class can result in unpredictable behavior of the standard NinjaTrader WPF property grid.
Tip: Common indicator functions like Print() are not available to a type converter instance. To debug a type converter class, you can use the AddOn Debug Concepts or attach to a debugger (recommended).