public Day_of_Month(SlotTypes slotType)
{
// General properties
IndicatorName = "Day of Month";
PossibleSlots = SlotTypes.OpenFilter;
CustomIndicator = true;
// 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[]
{
"Enter the market between the specified days"
};
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 application of the indicator.";
IndParam.NumParam[0].Caption = "From (incl.)";
IndParam.NumParam[0].Value = 1;
IndParam.NumParam[0].Min = 1;
IndParam.NumParam[0].Max = 31;
IndParam.NumParam[0].Point = 0;
IndParam.NumParam[0].Enabled = true;
IndParam.NumParam[0].ToolTip = "Day of beginning for the entry period.";
IndParam.NumParam[1].Caption = "Until (excl.)";
IndParam.NumParam[1].Value = 31;
IndParam.NumParam[1].Min = 1;
IndParam.NumParam[1].Max = 31;
IndParam.NumParam[1].Point = 0;
IndParam.NumParam[1].Enabled = true;
IndParam.NumParam[1].ToolTip = "Day of ending for the entry period.";
return;
}