To reproduce: create the following indicator:
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
namespace NinjaTrader.Indicator
{
public class TestIndicator : Indicator
{
public class Foo
{
private bool bar = false;
public bool Bar {
get { return bar; }
set { bar = value; }
}
}
private Foo foo = new Foo();
protected override void Initialize()
{
}
protected override void OnBarUpdate()
{
}
[Description("")]
[GridCategory("Parameters")]
public bool Bar
{
get { return foo.Bar; }
set { foo.Bar = value; }
}
}
}
MORE: if you actually COMMENT OUT the property, as below:
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
namespace NinjaTrader.Indicator
{
public class TestIndicator : Indicator
{
public class Foo
{
private bool bar = false;
public bool Bar {
get { return bar; }
set { bar = value; }
}
}
private Foo foo = new Foo();
protected override void Initialize()
{
}
protected override void OnBarUpdate()
{
}
// [Description("")]
// [GridCategory("Parameters")]
// public bool Bar
// {
// get { return foo.Bar; }
// set { foo.Bar = value; }
// }
}
}

Comment