Forex_Strategy_Builder.Top_Bottom_Price.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 iShift = (int)IndParam.NumParam[0].Value;

            string sUpperTrade;
            string sLowerTrade;

            if (iShift > 0)
            {
                sUpperTrade = iShift + " pips above the ";
                sLowerTrade = iShift + " pips below the ";
            }
            else if (iShift == 0)
            {
                if (IndParam.ListParam[0].Text == "Enter long at the top price"    ||
                    IndParam.ListParam[0].Text == "Enter long at the bottom price" ||
                    IndParam.ListParam[0].Text == "Exit long at the top price"     ||
                    IndParam.ListParam[0].Text == "Exit long at the bottom price")
                {
                    sUpperTrade = "at the ";
                    sLowerTrade = "at the ";
                }
                else
                {
                    sUpperTrade = "the ";
                    sLowerTrade = "the ";
                }
            }
            else
            {
                sUpperTrade = -iShift + " pips below the ";
                sLowerTrade = -iShift + " pips above the ";
            }

            string sPeriod = "of the " + IndParam.ListParam[2].Text.ToLower();
            switch (IndParam.ListParam[0].Text)
            {
                case "Enter long at the top price":
                    EntryPointLongDescription  = sUpperTrade + "top price "    + sPeriod;
                    EntryPointShortDescription = sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "Enter long at the bottom price":
                    EntryPointLongDescription  = sLowerTrade + "bottom price " + sPeriod;
                    EntryPointShortDescription = sUpperTrade + "top price "    + sPeriod;
                    break;
                case "Exit long at the top price":
                    ExitPointLongDescription  = sUpperTrade + "top price "    + sPeriod;
                    ExitPointShortDescription = sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "Exit long at the bottom price":
                    ExitPointLongDescription  = sLowerTrade + "bottom price " + sPeriod;
                    ExitPointShortDescription = sUpperTrade + "top price "    + sPeriod;
                    break;

                case "The bar opens below the top price":
                    EntryFilterLongDescription  = "the bar opens lower than "  + sUpperTrade + "top price "    + sPeriod;
                    EntryFilterShortDescription = "the bar opens higher than " + sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "The bar opens above the top price":
                    EntryFilterLongDescription  = "the bar opens higher than " + sUpperTrade + "top price "    + sPeriod;
                    EntryFilterShortDescription = "the bar opens lower than "  + sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "The bar opens below the bottom price":
                    EntryFilterLongDescription  = "the bar opens lower than "  + sLowerTrade + "bottom price " + sPeriod;
                    EntryFilterShortDescription = "the bar opens higher than " + sUpperTrade + "top price "    + sPeriod;
                    break;
                case "The bar opens above the bottom price":
                    EntryFilterLongDescription  = "the bar opens higher than " + sLowerTrade + "bottom price " + sPeriod;
                    EntryFilterShortDescription = "the bar opens lower than "  + sUpperTrade + "top price "    + sPeriod;
                    break;

                case "The position opens below the top price":
                    EntryFilterLongDescription  = "the position opens lower than "  + sUpperTrade + "top price "    + sPeriod;
                    EntryFilterShortDescription = "the position opens higher than " + sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "The position opens above the top price":
                    EntryFilterLongDescription  = "the position opens higher than " + sUpperTrade + "top price "    + sPeriod;
                    EntryFilterShortDescription = "the position opens lower than "  + sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "The position opens below the bottom price":
                    EntryFilterLongDescription  = "the position opens lower than "  + sLowerTrade + "bottom price " + sPeriod;
                    EntryFilterShortDescription = "the position opens higher than " + sUpperTrade + "top price "    + sPeriod;
                    break;
                case "The position opens above the bottom price":
                    EntryFilterLongDescription  = "the position opens higher than " + sLowerTrade + "bottom price " + sPeriod;
                    EntryFilterShortDescription = "the position opens lower than "  + sUpperTrade + "top price "    + sPeriod;
                    break;

                case "The bar closes below the top price":
                    ExitFilterLongDescription  = "the bar closes lower than "  + sUpperTrade + "top price "    + sPeriod;
                    ExitFilterShortDescription = "the bar closes higher than " + sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "The bar closes above the top price":
                    ExitFilterLongDescription  = "the bar closes higher than " + sUpperTrade + "top price "    + sPeriod;
                    ExitFilterShortDescription = "the bar closes lower than "  + sLowerTrade + "bottom price " + sPeriod;
                    break;
                case "The bar closes below the bottom price":
                    ExitFilterLongDescription  = "the bar closes lower than "  + sLowerTrade + "bottom price " + sPeriod;
                    ExitFilterShortDescription = "the bar closes higher than " + sUpperTrade + "top price "    + sPeriod;
                    break;
                case "The bar closes above the bottom price":
                    ExitFilterLongDescription  = "the bar closes higher than " + sLowerTrade + "bottom price " + sPeriod;
                    ExitFilterShortDescription = "the bar closes lower than "  + sUpperTrade + "top price "    + sPeriod;
                    break;

                default:
                    break;
            }

            return;
        }