Forex_Strategy_Builder.Chart.SetupChartTitle C# (CSharp) Method

SetupChartTitle() private method

Sets the indicator chart title
private SetupChartTitle ( ) : void
return void
        void SetupChartTitle()
        {
            // Chart title
            chartTitle = Data.Symbol + "  " + Data.PeriodString + " " + Data.Strategy.StrategyName;

            if (!isIndicatorsShown) return;

            for (int slot = 0; slot < Data.Strategy.Slots; slot++)
            {
                if (Data.Strategy.Slot[slot].SeparatedChart) continue;

                bool isChart = false;
                for (int iComp = 0; iComp < Data.Strategy.Slot[slot].Component.Length; iComp++)
                {
                    if (Data.Strategy.Slot[slot].Component[iComp].ChartType != IndChartType.NoChart)
                    {
                        isChart = true;
                        break;
                    }
                }
                if (isChart)
                {
                    Indicator indicator = Indicator_Store.ConstructIndicator(Data.Strategy.Slot[slot].IndicatorName, Data.Strategy.Slot[slot].SlotType);
                    indicator.IndParam = Data.Strategy.Slot[slot].IndParam;
                    if (!chartTitle.Contains(indicator.ToString()))
                        chartTitle += Environment.NewLine + indicator.ToString();
                }
            }

            return;
        }