Forex_Strategy_Builder.Dialogs.Generator.Generator.GenerateDescription C# (CSharp) Method

GenerateDescription() private method

Generates a description
private GenerateDescription ( ) : string
return string
        string GenerateDescription()
        {
            // Description
            if (lockedEntryFilters == 0  && lockedExitFilters == 0 &&
                lockedEntrySlot == null  && lockedExitSlot == null &&
                strategyBest.PropertiesStatus == StrategySlotStatus.Open)
            {
                isStrategyModified = false;
                generatedDescription = Language.T("Automatically generated on") + " ";
            }
            else
            {
                isStrategyModified = true;
                generatedDescription = Language.T("Modified by the strategy generator on") + " ";
            }

            generatedDescription += DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString() + ".";

            if (isOOS)
            {
                generatedDescription += Environment.NewLine + Language.T("Out of sample testing, percent of OOS bars") + ": " + nudOutOfSample.Value.ToString() + "%";
                generatedDescription += Environment.NewLine + Language.T("Balance") + ": " +
                    (Configs.AccountInMoney ? Backtester.MoneyBalance(barOOS).ToString("F2") + " " + Configs.AccountCurrency : Backtester.Balance(barOOS).ToString() + " " + Language.T("pips"));
                generatedDescription += " (" + Data.Time[barOOS].ToShortDateString() + " " + Data.Time[barOOS].ToShortTimeString() + "  " + Language.T("Bar") + ": " + barOOS.ToString() + ")";
            }

            return generatedDescription;
        }