public override void SetDescription(SlotTypes slotType)
{
string sLevelLong = IndParam.NumParam[3].ValueToString;
string sLevelShort = IndParam.NumParam[3].AnotherValueToString(100 - IndParam.NumParam[3].Value);
EntryFilterLongDescription = ToString() + " - ";
EntryFilterShortDescription = ToString() + " - ";
ExitFilterLongDescription = ToString() + " - ";
ExitFilterShortDescription = ToString() + " - ";
switch (IndParam.ListParam[0].Text)
{
case "The Slow %D rises":
EntryFilterLongDescription += "the Slow %D rises";
EntryFilterShortDescription += "the Slow %D falls";
ExitFilterLongDescription += "the Slow %D rises";
ExitFilterShortDescription += "the Slow %D falls";
break;
case "The Slow %D falls":
EntryFilterLongDescription += "the Slow %D falls";
EntryFilterShortDescription += "the Slow %D rises";
ExitFilterLongDescription += "the Slow %D falls";
ExitFilterShortDescription += "the Slow %D rises";
break;
case "The Slow %D is higher than the Level line":
EntryFilterLongDescription += "the Slow %D is higher than the Level " + sLevelLong;
EntryFilterShortDescription += "the Slow %D is lower than the Level " + sLevelShort;
ExitFilterLongDescription += "the Slow %D is higher than the Level " + sLevelLong;
ExitFilterShortDescription += "the Slow %D is lower than the Level " + sLevelShort;
break;
case "The Slow %D is lower than the Level line":
EntryFilterLongDescription += "the Slow %D is lower than the Level " + sLevelLong;
EntryFilterShortDescription += "the Slow %D is higher than the Level " + sLevelShort;
ExitFilterLongDescription += "the Slow %D is lower than the Level " + sLevelLong;
ExitFilterShortDescription += "the Slow %D is higher than the Level " + sLevelShort;
break;
case "The Slow %D crosses the Level line upward":
EntryFilterLongDescription += "the Slow %D crosses the Level " + sLevelLong + " upward";
EntryFilterShortDescription += "the Slow %D crosses the Level " + sLevelShort + " downward";
ExitFilterLongDescription += "the Slow %D crosses the Level " + sLevelLong + " upward";
ExitFilterShortDescription += "the Slow %D crosses the Level " + sLevelShort + " downward";
break;
case "The Slow %D crosses the Level line downward":
EntryFilterLongDescription += "the Slow %D crosses the Level " + sLevelLong + " downward";
EntryFilterShortDescription += "the Slow %D crosses the Level " + sLevelShort + " upward";
ExitFilterLongDescription += "the Slow %D crosses the Level " + sLevelLong + " downward";
ExitFilterShortDescription += "the Slow %D crosses the Level " + sLevelShort + " upward";
break;
case "The %K crosses the Slow %D upward":
EntryFilterLongDescription += "the %K crosses the Slow %D upward";
EntryFilterShortDescription += "the %K crosses the Slow %D downward";
ExitFilterLongDescription += "the %K crosses the Slow %D upward";
ExitFilterShortDescription += "the %K crosses the Slow %D downward";
break;
case "The %K crosses the Slow %D downward":
EntryFilterLongDescription += "the %K crosses the Slow %D downward";
EntryFilterShortDescription += "the %K crosses the Slow %D upward";
ExitFilterLongDescription += "the %K crosses the Slow %D downward";
ExitFilterShortDescription += "the %K crosses the Slow %D upward";
break;
case "The %K is higher than the Slow %D":
EntryFilterLongDescription += "the %K is higher than the Slow %D";
EntryFilterShortDescription += "the %K is lower than the Slow %D";
ExitFilterLongDescription += "the %K is higher than the Slow %D";
ExitFilterShortDescription += "the %K is lower than the Slow %D";
break;
case "The %K is lower than the Slow %D":
EntryFilterLongDescription += "the %K is lower than the Slow %D";
EntryFilterShortDescription += "the %K is higher than than the Slow %D";
ExitFilterLongDescription += "the %K is lower than the Slow %D";
ExitFilterShortDescription += "the %K is higher than than the Slow %D";
break;
case "The Slow %D changes its direction upward":
EntryFilterLongDescription += "the Slow %D changes its direction upward";
EntryFilterShortDescription += "the Slow %D changes its direction downward";
ExitFilterLongDescription += "the Slow %D changes its direction upward";
ExitFilterShortDescription += "the Slow %D changes its direction downward";
break;
case "The Slow %D changes its direction downward":
EntryFilterLongDescription += "the Slow %D changes its direction downward";
EntryFilterShortDescription += "the Slow %D changes its direction upward";
ExitFilterLongDescription += "the Slow %D changes its direction downward";
ExitFilterShortDescription += "the Slow %D changes its direction upward";
break;
default:
break;
}
return;
}