public override void SetDescription(SlotTypes slotType)
{
int nBars = (int) IndParam.NumParam[0].Value;
string sLevelLong = IndParam.NumParam[1].ValueToString;
string sLevelShort = sLevelLong;
if (nBars == 1)
{
EntryFilterLongDescription = "the range of the bar ";
EntryFilterShortDescription = "the range of the bar ";
ExitFilterLongDescription = "the range of the bar ";
ExitFilterShortDescription = "the range of the bar ";
}
else
{
EntryFilterLongDescription = "the range of the last " + nBars.ToString() + " bars ";
EntryFilterShortDescription = "the range of the last " + nBars.ToString() + " bars ";
ExitFilterLongDescription = "the range of the last " + nBars.ToString() + " bars ";
ExitFilterShortDescription = "the range of the last " + nBars.ToString() + " bars ";
}
switch (IndParam.ListParam[0].Text)
{
case "The Bar Range rises":
EntryFilterLongDescription += "rises";
EntryFilterShortDescription += "rises";
ExitFilterLongDescription += "falls";
ExitFilterShortDescription += "falls";
break;
case "The Bar Range falls":
EntryFilterLongDescription += "falls";
EntryFilterShortDescription += "falls";
ExitFilterLongDescription += "rises";
ExitFilterShortDescription += "rises";
break;
case "The Bar Range is higher than the Level line":
EntryFilterLongDescription += "is higher than " + sLevelLong + " pips";
EntryFilterShortDescription += "is higher than " + sLevelShort + " pips";
ExitFilterLongDescription += "is higher than " + sLevelLong + " pips";
ExitFilterShortDescription += "is higher than " + sLevelShort + " pips";
break;
case "The Bar Range is lower than the Level line":
EntryFilterLongDescription += "is lower than " + sLevelLong + " pips";
EntryFilterShortDescription += "is lower than " + sLevelShort + " pips";
ExitFilterLongDescription += "is lower than " + sLevelLong + " pips";
ExitFilterShortDescription += "is lower than " + sLevelShort + " pips";
break;
default:
break;
}
return;
}