public override void SetDescription(SlotTypes slotType)
{
string sLevelLong = (IndParam.NumParam[2].Value == 0 ? "0" : IndParam.NumParam[2].ValueToString);
string sLevelShort = (IndParam.NumParam[2].Value == 0 ? "0" : "-" + IndParam.NumParam[2].ValueToString);
EntryFilterLongDescription = "the " + ToString() + " ";
EntryFilterShortDescription = "the " + ToString() + " ";
ExitFilterLongDescription = "the " + ToString() + " ";
ExitFilterShortDescription = "the " + ToString() + " ";
switch (IndParam.ListParam[0].Text)
{
case "The MA Oscillator rises":
EntryFilterLongDescription += "rises";
EntryFilterShortDescription += "falls";
ExitFilterLongDescription += "rises";
ExitFilterShortDescription += "falls";
break;
case "The MA Oscillator falls":
EntryFilterLongDescription += "falls";
EntryFilterShortDescription += "rises";
ExitFilterLongDescription += "falls";
ExitFilterShortDescription += "rises";
break;
case "The MA Oscillator is higher than the Level line":
EntryFilterLongDescription += "is higher than the Level " + sLevelLong;
EntryFilterShortDescription += "is lower than the Level " + sLevelShort;
ExitFilterLongDescription += "is higher than the Level " + sLevelLong;
ExitFilterShortDescription += "is lower than the Level " + sLevelShort;
break;
case "The MA Oscillator is lower than the Level line":
EntryFilterLongDescription += "is lower than the Level " + sLevelLong;
EntryFilterShortDescription += "is higher than the Level " + sLevelShort;
ExitFilterLongDescription += "is lower than the Level " + sLevelLong;
ExitFilterShortDescription += "is higher than the Level " + sLevelShort;
break;
case "The MA Oscillator crosses the Level line upward":
EntryFilterLongDescription += "crosses the Level " + sLevelLong + " upward";
EntryFilterShortDescription += "crosses the Level " + sLevelShort + " downward";
ExitFilterLongDescription += "crosses the Level " + sLevelLong + " upward";
ExitFilterShortDescription += "crosses the Level " + sLevelShort + " downward";
break;
case "The MA Oscillator crosses the Level line downward":
EntryFilterLongDescription += "crosses the Level " + sLevelLong + " downward";
EntryFilterShortDescription += "crosses the Level " + sLevelShort + " upward";
ExitFilterLongDescription += "crosses the Level " + sLevelLong + " downward";
ExitFilterShortDescription += "crosses the Level " + sLevelShort + " upward";
break;
case "The MA Oscillator 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 MA Oscillator 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;
}