public Date_Filter(SlotTypes slotType)
{
// General properties
IndicatorName = "Date Filter";
PossibleSlots = SlotTypes.OpenFilter;
// Setting up the indicator parameters
IndParam = new IndicatorParam();
IndParam.IndicatorName = IndicatorName;
IndParam.SlotType = slotType;
IndParam.IndicatorType = TypeOfIndicator.DateTime;
// The ComboBox parameters
IndParam.ListParam[0].Caption = "Logic";
IndParam.ListParam[0].ItemList = new string[]
{
"Do not open positions before",
"Do not open positions after"
};
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 = "Logic of the date filter.";
// The NumericUpDown parameters
IndParam.NumParam[0].Caption = "Year";
IndParam.NumParam[0].Value = 2000;
IndParam.NumParam[0].Min = 1900;
IndParam.NumParam[0].Max = 2100;
IndParam.NumParam[0].Enabled = true;
IndParam.NumParam[0].ToolTip = "The year.";
IndParam.NumParam[1].Caption = "Month";
IndParam.NumParam[1].Value = 1;
IndParam.NumParam[1].Min = 1;
IndParam.NumParam[1].Max = 12;
IndParam.NumParam[1].Enabled = true;
IndParam.NumParam[1].ToolTip = "The month.";
return;
}