StringBuilder TradingSizeHTMLReport()
{
StringBuilder sb = new StringBuilder();
if (UseAccountPercentEntry)
{
sb.AppendLine("<p>" + Language.T("Trade percent of your account.") + "</p>");
sb.AppendLine("<ul>");
sb.AppendLine("<li>" + Language.T("Opening of a new position") + " - " + EntryLots + Language.T("% of the account equity") + ".</li>");
if (sameDirSignal == SameDirSignalAction.Winner)
sb.AppendLine("<li>" + Language.T("Adding to a winning position") + " - " + AddingLots + Language.T("% of the account equity") + ". " + Language.T("Do not open more than") + " " + Plural("lot", MaxOpenLots) + ".</li>");
if (sameDirSignal == SameDirSignalAction.Add)
sb.AppendLine("<li>" + Language.T("Adding to a position") + " - " + AddingLots + Language.T("% of the account equity") + ". " + Language.T("Do not open more than") + " " + Plural("lot", MaxOpenLots) + ".</li>");
if (oppDirSignal == OppositeDirSignalAction.Reduce)
sb.AppendLine("<li>" + Language.T("Reducing a position") + " - " + ReducingLots + Language.T("% of the account equity") + ".</li>");
if (oppDirSignal == OppositeDirSignalAction.Reverse)
sb.AppendLine("<li>" + Language.T("Reversing a position") + " - " + EntryLots + Language.T("% of the account equity") + " " + Language.T("in the opposite direction.") + "</li>");
sb.AppendLine("</ul>");
}
else
{
sb.AppendLine("<p>" + Language.T("Always trade a constant number of lots.") + "</p>");
sb.AppendLine("<ul>");
sb.AppendLine("<li>" + Language.T("Opening of a new position") + " - " + Plural("lot", EntryLots) + ".</li>");
if (sameDirSignal == SameDirSignalAction.Winner)
sb.AppendLine("<li>" + Language.T("Adding to a winning position") + " - " + Plural("lot", AddingLots) + ". " + Language.T("Do not open more than") + " " + Plural("lot", MaxOpenLots) + ".</li>");
if (sameDirSignal == SameDirSignalAction.Add)
sb.AppendLine("<li>" + Language.T("Adding to a position") + " - " + Plural("lot", AddingLots) + ". " + Language.T("Do not open more than") + " " + Plural("lot", MaxOpenLots) + ".</li>");
if (oppDirSignal == OppositeDirSignalAction.Reduce)
sb.AppendLine("<li>" + Language.T("Reducing a position") + " - " + Plural("lot", ReducingLots) + " " + Language.T("from the current position.") + "</li>");
if (oppDirSignal == OppositeDirSignalAction.Reverse)
sb.AppendLine("<li>" + Language.T("Reversing a position") + " - " + Plural("lot", EntryLots) + " " + Language.T("in the opposite direction.") + "</li>");
sb.AppendLine("</ul>");
}
return sb;
}