void SetDefaultGroup()
{
if (slotType == SlotTypes.OpenFilter)
{
if (indicatorName == "Data Bars Filter" ||
indicatorName == "Date Filter" ||
indicatorName == "Day of Month" ||
indicatorName == "Enter Once" ||
indicatorName == "Entry Time" ||
indicatorName == "Long or Short" ||
indicatorName == "Lot Limiter" ||
indicatorName == "Random Filter")
cbxGroup.SelectedIndex = cbxGroup.Items.Count - 1; // "All" group.
else
cbxGroup.SelectedIndex = 0;
}
if (slotType == SlotTypes.CloseFilter)
{
int index = slot - Data.Strategy.CloseSlot - 1;
cbxGroup.SelectedIndex = index;
}
return;
}