see the few code lines below,
how could it be possible that mid3 still is browsable in the indicators dialog window ?
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
ArePlotsConfigurable = false;
AddPlot(new Stroke(Brushes.LimeGreen , DashStyleHelper.Solid, 3, 100), PlotStyle.Line, "mid3");
}
}
protected override void OnBarUpdate()
{
mid3[0] = someDouble;
}
[Browsable(false)] [XmlIgnore()]
private Series<double> mid3 { get { return Values[0]; } }​
Could not save indicator 'MyIndic:' There was an error reflecting type 'NinjaTrader.NinjaScript.Indicators.MyIndic'.
while saving the wrokspace.
Then I double checked my properties about [XmlIgnore()] following this post : https://forum.ninjatrader.com/forum/...79#post1305879
I suspect the reflecting error is more likely to be related to the browsability than the serialization...
Does all that makes sense ? Is my suspicion legit ?
What did I miss about properties browsability ?

Comment