Forex_Strategy_Builder.Long_or_Short.SetDescription C# (CSharp) Метод

SetDescription() публичный Метод

Sets the indicator logic description
public SetDescription ( SlotTypes slotType ) : void
slotType SlotTypes
Результат void
        public override void SetDescription(SlotTypes slotType)
        {
            // Calculation of the logic
            switch (IndParam.ListParam[0].Text)
            {
                case "Open long positions only":
                    EntryFilterLongDescription  = "the Long or Short filter permits long opening";
                    EntryFilterShortDescription = "the Long or Short filter does not permit short opening";
                    break;

                case "Open short positions only":
                    EntryFilterLongDescription  = "the Long or Short filter does not permit long opening";
                    EntryFilterShortDescription = "the Long or Short filter permits short opening";
                    break;

                default:
                    break;
            }

            return;
        }