public Data_Bars_Filter(SlotTypes slotType)
{
// General properties
IndicatorName = "Data Bars Filter";
PossibleSlots = SlotTypes.OpenFilter;
// Setting up the indicator parameters
IndParam = new IndicatorParam();
IndParam.IndicatorName = IndicatorName;
IndParam.SlotType = slotType;
IndParam.IndicatorType = TypeOfIndicator.Additional;
// The ComboBox parameters
IndParam.ListParam[0].Caption = "Logic";
IndParam.ListParam[0].ItemList = new string[]
{
"Do not use the newest bars",
"Do not use the oldest bars",
"Do not use the newest bars and oldest bars",
"Use the newest bars only",
"Use the oldest bars only",
};
IndParam.ListParam[0].Index = 0;
IndParam.ListParam[0].Text = IndParam.ListParam[0].ItemList[IndParam.ListParam[0].Index];
IndParam.ListParam[0].Enabled = true;
IndParam.ListParam[0].ToolTip = "Specify the entry bars.";
// The NumericUpDown parameters.
IndParam.NumParam[0].Caption = "Newest bars";
IndParam.NumParam[0].Value = 1000;
IndParam.NumParam[0].Min = 0;
IndParam.NumParam[0].Max = Configs.MAX_BARS;
IndParam.NumParam[0].Enabled = true;
IndParam.NumParam[0].ToolTip = "The number of newest bars.";
IndParam.NumParam[1].Caption = "Oldest bars";
IndParam.NumParam[1].Value = 0;
IndParam.NumParam[1].Min = 0;
IndParam.NumParam[1].Max = Configs.MAX_BARS;
IndParam.NumParam[1].Enabled = true;
IndParam.NumParam[1].ToolTip = "The number of oldest bars.";
return;
}