示例#1
0
        /// <summary>
        ///     Shows all banned indicators.
        /// </summary>
        private void ShowStatus()
        {
            string text = "";

            if (bannedEntryIndicators.Count > 0)
            {
                text  = "<h2>" + Language.T("Opening Point of the Position") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedEntryIndicators)
                {
                    text += "<li>" + ind + "</li>";
                }
                text += "</ul>";
            }

            if (bannedEntryFilterIndicators.Count > 0)
            {
                text += "<h2>" + Language.T("Opening Logic Condition") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedEntryFilterIndicators)
                {
                    text += "<li>" + ind + "</li>";
                }
                text += "</ul>";
            }

            if (bannedExitIndicators.Count > 0)
            {
                text += "<h2>" + Language.T("Closing Point of the Position") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedExitIndicators)
                {
                    text += "<li>" + ind + "</li>";
                }
                text += "</ul>";
            }

            if (bannedExitFilterIndicators.Count > 0)
            {
                text += "<h2>" + Language.T("Closing Logic Condition") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedExitFilterIndicators)
                {
                    text += "<li>" + ind + "</li>";
                }
                text += "</ul>";
            }

            var msgbox = new FancyMessageBox(text, Language.T("Banned Indicators"));

            msgbox.Show();
        }
 /// <summary>
 ///     Report Indicator Error
 /// </summary>
 private void ReportIndicatorError(string text, string caption)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new DelegateReportIndicatorError(ReportIndicatorError), new object[] {text, caption});
     }
     else
     {
         var msgBox = new FancyMessageBox(text, caption) {BoxWidth = 450, BoxHeight = 250};
         msgBox.Show();
     }
 }
        /// <summary>
        ///     Shows all banned indicators.
        /// </summary>
        private void ShowStatus()
        {
            string text = "";

            if (bannedEntryIndicators.Count > 0)
            {
                text = "<h2>" + Language.T("Opening Point of the Position") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedEntryIndicators)
                    text += "<li>" + ind + "</li>";
                text += "</ul>";
            }

            if (bannedEntryFilterIndicators.Count > 0)
            {
                text += "<h2>" + Language.T("Opening Logic Condition") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedEntryFilterIndicators)
                    text += "<li>" + ind + "</li>";
                text += "</ul>";
            }

            if (bannedExitIndicators.Count > 0)
            {
                text += "<h2>" + Language.T("Closing Point of the Position") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedExitIndicators)
                    text += "<li>" + ind + "</li>";
                text += "</ul>";
            }

            if (bannedExitFilterIndicators.Count > 0)
            {
                text += "<h2>" + Language.T("Closing Logic Condition") + "</h2>";
                text += "<ul>";
                foreach (string ind in bannedExitFilterIndicators)
                    text += "<li>" + ind + "</li>";
                text += "</ul>";
            }

            var msgbox = new FancyMessageBox(text, Language.T("Banned Indicators"));
            msgbox.Show();
        }