Forex_Strategy_Builder.Data_Bars_Filter.SetDescription C# (CSharp) Method

SetDescription() public method

Sets the indicator logic description
public SetDescription ( SlotTypes slotType ) : void
slotType SlotTypes
return void
        public override void SetDescription(SlotTypes slotType)
        {
            int iNewest = (int)IndParam.NumParam[0].Value;
            int iOldest = (int)IndParam.NumParam[1].Value;

            EntryFilterLongDescription  = "(a back tester limitation) ";
            EntryFilterShortDescription = "(a back tester limitation) ";

            switch (IndParam.ListParam[0].Text)
            {
                case "Do not use the newest bars":
                    EntryFilterLongDescription  += "Do not use the newest " + iNewest + " bars";
                    EntryFilterShortDescription += "Do not use the newest " + iNewest + " bars";
                    break;

                case "Do not use the oldest bars":
                    EntryFilterLongDescription  += "Do not use the oldest " + iOldest + " bars";
                    EntryFilterShortDescription += "Do not use the oldest " + iOldest + " bars";
                    break;

                case "Do not use the newest bars and oldest bars":
                    EntryFilterLongDescription  += "Do not use the newest " + iNewest + " bars and oldest " + iOldest + " bars";
                    EntryFilterShortDescription += "Do not use the newest " + iNewest + " bars and oldest " + iOldest + " bars";
                    break;

                case "Use the newest bars only":
                    EntryFilterLongDescription  += "Use the newest " + iNewest + " bars only";
                    EntryFilterShortDescription += "Use the newest " + iNewest + " bars only";
                    break;

                case "Use the oldest bars only":
                    EntryFilterLongDescription  += "Use the oldest " + iNewest + " bars only";
                    EntryFilterShortDescription += "Use the oldest " + iNewest + " bars only";
                    break;

                default:
                    break;
            }

            return;
        }