This code doesn't work because there is no object reference to the non-static TradeBreakouts field, but it shows what I would like to be able to do.
[NinjaScriptProperty]
[Display(Name = "Trade Breakouts", GroupName="2) Trading Parameters", Order=2)]
public bool TradeBreakouts
{ get; set; }
[RefreshProperties(RefreshProperties.All)]
[Browsable(TradeBreakouts)]
[NinjaScriptProperty]
[Range(0, double.MaxValue)]
[Display(Name="Breakout Factor", Description="Breakout entry limit price as a percentage of SD", GroupName="2) Trading Parameters", Order=3)]
public double BreakoutFactor
{ get; set; }

Comment