/// <summary>
/// Does the job
/// </summary>
static void DoWorkTestCustomIndicators(object sender, DoWorkEventArgs e)
{
bool isErrors = false;
StringBuilder errorReport = new StringBuilder();
errorReport.AppendLine("<h1>" + Language.T("Custom Indicators") + "</h1>");
StringBuilder okReport = new StringBuilder();
okReport.AppendLine("<h1>" + Language.T("Custom Indicators") + "</h1>");
okReport.AppendLine("<p>");
foreach (string indicatorName in Indicator_Store.CustomIndicatorNames)
{
string errorList;
if (!Indicator_Tester.CustomIndicatorThoroughTest(indicatorName, out errorList))
{
isErrors = true;
errorReport.AppendLine("<h2>" + indicatorName + "</h2>");
string error = errorList.Replace(Environment.NewLine, "</br>");
error = error.Replace("\t", " ");
errorReport.AppendLine("<p>" + error + "</p>");
}
else
{
okReport.AppendLine(indicatorName + " - OK" + "<br />");
}
}
okReport.AppendLine("</p>");
CustomIndicatorsTestResult result = new CustomIndicatorsTestResult();
result.IsErrors = isErrors;
result.ErrorReport = errorReport.ToString();
result.OKReport = okReport.ToString();
e.Result = (object)result;
return;
}