I have a custom indicator, where one of the inputs is the BarType parameter which can be changed.
This is working fine with the standard BarTypes provided by NinjaTrader, but I also have a custom bar type that is not listed in the drop down menu. Is there a way to add a custom BarType to the dropdown?
[Display(Name = "CustomBarType", Description = "CustomBar", Order = 1, GroupName = "Data Parameters")]
public BarsPeriodType DataBarType
{
get { return _dataBarType; }
set { _dataBarType = value; }
}
Comment