Forex_Strategy_Builder.Strategy.GetDefaultGroup C# (CSharp) Method

GetDefaultGroup() public method

Gets the default logical group for the designated slot number.
public GetDefaultGroup ( int slot ) : string
slot int
return string
        public string GetDefaultGroup(int slot)
        {
            string group = "";
            string sIndicatorName = Slot[slot].IndicatorName;
            SlotTypes slotType = GetSlotType(slot);
            if (slotType == SlotTypes.OpenFilter)
            {
                if (sIndicatorName == "Data Bars Filter" ||
                    sIndicatorName == "Date Filter"      ||
                    sIndicatorName == "Day of Month"     ||
                    sIndicatorName == "Enter Once"       ||
                    sIndicatorName == "Entry Time"       ||
                    sIndicatorName == "Long or Short"    ||
                    sIndicatorName == "Lot Limiter"      ||
                    sIndicatorName == "Random Filter")
                    group = "All";
                else
                    group = "A";
            }
            if (slotType == SlotTypes.CloseFilter)
            {
                int index = slot - CloseSlot - 1;
                group = char.ConvertFromUtf32(char.ConvertToUtf32("a", 0) + index);
            }

            return group;
        }