Issue Resolved and a huge thanks for the help. The issue was I had the my converter class above the Indicator Class and not below it. Moving it below allowed it to compile with my other controls. I put a test control property in and made comments where I mistakenly had the Converter and where to correctly put it in case it helps anyone else:
{
//Converter was here which was causing the issue
[TypeConverter("NinjaTrader.NinjaScript.Indicators.SelectivePlotConverter2")]
public class SampleHidePlots : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
//Plots
AddPlot(Brushes.Orange, "MiPlot-Cero");
AddPlot(Brushes.Orange, "MiPlot-Uno");
AddPlot(Brushes.Orange, "MiPlot-Dos");
AddPlot(Brushes.Orange, "MiPlot-Tres");
TestProperty = true;
}
}
[NinjaScriptProperty]
[Display(Name = "Test Property", Order = 0, GroupName = "Test Settings")]
public bool TestProperty
{ get; set; }
}
//make sure the Coverter goes here, below the Indicator class and not above the Indicator class
public class SelectivePlotConverter2 : IndicatorBaseConverter
{
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
{
var props = base.GetProperties(context, value, attributes);
var filtered = new PropertyDescriptorCollection(null);
foreach (PropertyDescriptor prop in props)
{
if (prop.Name == "Plot0" || prop.Name == "Plot1" || prop.Name == "Plot2")
continue;
filtered.Add(prop);
}
return filtered;
}
}
}
Thanks so much. I really appreciate the community support.