Forex_Strategy_Builder.Rate_of_Change.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)
        {
            double fLevelLong  = IndParam.NumParam[2].Value;
            double fLevelShort = 2 - fLevelLong;

            EntryFilterLongDescription  = "the " + ToString() + " ";
            EntryFilterShortDescription = "the " + ToString() + " ";
            ExitFilterLongDescription   = "the " + ToString() + " ";
            ExitFilterShortDescription  = "the " + ToString() + " ";

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

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

                case "The ROC is higher than the Level line":
                    EntryFilterLongDescription  += "is higher than the Level " + fLevelLong;
                    EntryFilterShortDescription += "is lower than the Level "  + fLevelShort;
                    ExitFilterLongDescription   += "is higher than the Level " + fLevelLong;
                    ExitFilterShortDescription  += "is lower than the Level "  + fLevelShort;
                    break;

                case "The ROC is lower than the Level line":
                    EntryFilterLongDescription  += "is lower than the Level "  + fLevelLong;
                    EntryFilterShortDescription += "is higher than the Level " + fLevelShort;
                    ExitFilterLongDescription   += "is lower than the Level "  + fLevelLong;
                    ExitFilterShortDescription  += "is higher than the Level " + fLevelShort;
                    break;

                case "The ROC crosses the Level line upward":
                    EntryFilterLongDescription  += "crosses the Level " + fLevelLong  + " upward";
                    EntryFilterShortDescription += "crosses the Level " + fLevelShort + " downward";
                    ExitFilterLongDescription   += "crosses the Level " + fLevelLong  + " upward";
                    ExitFilterShortDescription  += "crosses the Level " + fLevelShort + " downward";
                    break;

                case "The ROC crosses the Level line downward":
                    EntryFilterLongDescription  += "crosses the Level " + fLevelLong  + " downward";
                    EntryFilterShortDescription += "crosses the Level " + fLevelShort + " upward";
                    ExitFilterLongDescription   += "crosses the Level " + fLevelLong  + " downward";
                    ExitFilterShortDescription  += "crosses the Level " + fLevelShort + " upward";
                    break;

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

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

                default:
                    break;
            }

            return;
        }