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

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

Sets the indicator logic description
public SetDescription ( SlotTypes slotType ) : void
slotType SlotTypes
Результат void
        public override void SetDescription(SlotTypes slotType)
        {
            EntryFilterLongDescription  = ToString() + "; ";
            EntryFilterShortDescription = ToString() + "; ";
            ExitFilterLongDescription   = ToString() + "; ";
            ExitFilterShortDescription  = ToString() + "; ";

            switch (IndParam.ListParam[0].Text)
            {
                case "The ADI+ rises":
                    EntryFilterLongDescription  += "the ADI+ rises";
                    EntryFilterShortDescription += "the ADI+ falls";
                    ExitFilterLongDescription   += "the ADI+ rises";
                    ExitFilterShortDescription  += "the ADI+ falls";
                    break;

                case "The ADI+ falls":
                    EntryFilterLongDescription  += "the ADI+ falls";
                    EntryFilterShortDescription += "the ADI+ rises";
                    ExitFilterLongDescription   += "the ADI+ falls";
                    ExitFilterShortDescription  += "the ADI+ rises";
                    break;

                case "The ADI- rises":
                    EntryFilterLongDescription  += "the ADI- rises";
                    EntryFilterShortDescription += "the ADI- falls";
                    ExitFilterLongDescription   += "the ADI- rises";
                    ExitFilterShortDescription  += "the ADI- falls";
                    break;

                case "The ADI- falls":
                    EntryFilterLongDescription  += "the ADI- falls";
                    EntryFilterShortDescription += "the ADI- rises";
                    ExitFilterLongDescription   += "the ADI- falls";
                    ExitFilterShortDescription  += "the ADI- rises";
                    break;

                case "The ADI+ is higher than ADI-":
                    EntryFilterLongDescription  += "the ADI+ is higher than the ADI-";
                    EntryFilterShortDescription += "the ADI+ is lower than the ADI-";
                    ExitFilterLongDescription   += "the ADI+ is higher than the ADI-";
                    ExitFilterShortDescription  += "the ADI+ is lower than the ADI-";
                    break;

                case "The ADI+ is lower than ADI-":
                    EntryFilterLongDescription  += "the ADI+ is lower than the ADI-";
                    EntryFilterShortDescription += "the ADI+ is higher than the ADI-";
                    ExitFilterLongDescription   += "the ADI+ is lower than the ADI-";
                    ExitFilterShortDescription  += "the ADI+ is higher than the ADI-";
                    break;

                case "The ADI+ crosses the ADI- line upward":
                    EntryFilterLongDescription  += "the ADI+ crosses the ADI- line upward";
                    EntryFilterShortDescription += "the ADI+ crosses the ADI- line downward";
                    ExitFilterLongDescription   += "the ADI+ crosses the ADI- line upward";
                    ExitFilterShortDescription  += "the ADI+ crosses the ADI- line downward";
                    break;

                case "The ADI+ crosses the ADI- line downward":
                    EntryFilterLongDescription  += "the ADI+ crosses the ADI- line downward";
                    EntryFilterShortDescription += "the ADI+ crosses the ADI- line upward";
                    ExitFilterLongDescription   += "the ADI+ crosses the ADI- line downward";
                    ExitFilterShortDescription  += "the ADI+ crosses the ADI- line upward";
                    break;

                case "The ADI+ changes its direction upward":
                    EntryFilterLongDescription  += "the ADI+ changes its direction upward";
                    EntryFilterShortDescription += "the ADI+ changes its direction downward";
                    ExitFilterLongDescription   += "the ADI+ changes its direction upward";
                    ExitFilterShortDescription  += "the ADI+ changes its direction downward";
                    break;

                case "The ADI+ changes its direction downward":
                    EntryFilterLongDescription  += "the ADI+ changes its direction downward";
                    EntryFilterShortDescription += "the ADI+ changes its direction upward";
                    ExitFilterLongDescription   += "the ADI+ changes its direction downward";
                    ExitFilterShortDescription  += "the ADI+ changes its direction upward";
                    break;

                case "The ADI- changes its direction upward":
                    EntryFilterLongDescription  += "the ADI- changes its direction upward";
                    EntryFilterShortDescription += "the ADI- changes its direction downward";
                    ExitFilterLongDescription   += "the ADI- changes its direction upward";
                    ExitFilterShortDescription  += "the ADI- changes its direction downward";
                    break;

                case "The ADI- changes its direction downward":
                    EntryFilterLongDescription  += "the ADI- changes its direction downward";
                    EntryFilterShortDescription += "the ADI- changes its direction upward";
                    ExitFilterLongDescription   += "the ADI- changes its direction downward";
                    ExitFilterShortDescription  += "the ADI- changes its direction upward";
                    break;

                default:
                    break;
            }

            return;
        }