Forex_Strategy_Builder.Price_Move.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 iMargin = (int)IndParam.NumParam[0].Value;
            string sBasePrice = IndParam.ListParam[1].ItemList[IndParam.ListParam[1].Index].ToLower();
            string sPrevious  = (IndParam.CheckParam[0].Checked ? " previous" : "");

            switch (IndParam.ListParam[0].Text)
            {
                case "Enter long after an upward move":
                    EntryPointLongDescription  = iMargin + " pips above the" + sPrevious + " bar " + sBasePrice + " price";
                    EntryPointShortDescription = iMargin + " pips below the" + sPrevious + " bar " + sBasePrice + " price";
                    break;

                case "Enter long after a downward move":
                    EntryPointLongDescription  = iMargin + " pips below the" + sPrevious + " bar " + sBasePrice + " price";
                    EntryPointShortDescription = iMargin + " pips above the" + sPrevious + " bar " + sBasePrice + " price";
                    break;

                default:
                    break;
            }

            return;
        }