public Stop_Limit(SlotTypes slotType)
{
// General properties
IndicatorName = "Stop Limit";
PossibleSlots = SlotTypes.Close;
// 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[]
{
"Exit at the Stop Loss or the Take Profit level",
};
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.";
// The NumericUpDown parameters
IndParam.NumParam[0].Caption = "Stop Loss";
IndParam.NumParam[0].Value = 200;
IndParam.NumParam[0].Min = 5;
IndParam.NumParam[0].Max = 5000;
IndParam.NumParam[0].Enabled = true;
IndParam.NumParam[0].ToolTip = "The Stop Loss value (in pips).";
IndParam.NumParam[1].Caption = "Take Profit";
IndParam.NumParam[1].Value = 200;
IndParam.NumParam[1].Min = 5;
IndParam.NumParam[1].Max = 5000;
IndParam.NumParam[1].Enabled = true;
IndParam.NumParam[1].ToolTip = "The Take Profit value (in pips).";
return;
}