/// <summary>
        /// Plot dot or line where the traderclutch swing is
        /// </summary>
        /// <returns></returns>
        public ZZSwingIdentifier ZZSwingIdentifier(Data.IDataSeries input, int swingSize)
        {
            if (cacheZZSwingIdentifier != null)
            {
                for (int idx = 0; idx < cacheZZSwingIdentifier.Length; idx++)
                {
                    if (cacheZZSwingIdentifier[idx].SwingSize == swingSize && cacheZZSwingIdentifier[idx].EqualsInput(input))
                    {
                        return(cacheZZSwingIdentifier[idx]);
                    }
                }
            }

            lock (checkZZSwingIdentifier)
            {
                checkZZSwingIdentifier.SwingSize = swingSize;
                swingSize = checkZZSwingIdentifier.SwingSize;

                if (cacheZZSwingIdentifier != null)
                {
                    for (int idx = 0; idx < cacheZZSwingIdentifier.Length; idx++)
                    {
                        if (cacheZZSwingIdentifier[idx].SwingSize == swingSize && cacheZZSwingIdentifier[idx].EqualsInput(input))
                        {
                            return(cacheZZSwingIdentifier[idx]);
                        }
                    }
                }

                ZZSwingIdentifier indicator = new ZZSwingIdentifier();
                indicator.BarsRequired        = BarsRequired;
                indicator.CalculateOnBarClose = CalculateOnBarClose;
#if NT7
                indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256;
                indicator.MaximumBarsLookBack         = MaximumBarsLookBack;
#endif
                indicator.Input     = input;
                indicator.SwingSize = swingSize;
                Indicators.Add(indicator);
                indicator.SetUp();

                ZZSwingIdentifier[] tmp = new ZZSwingIdentifier[cacheZZSwingIdentifier == null ? 1 : cacheZZSwingIdentifier.Length + 1];
                if (cacheZZSwingIdentifier != null)
                {
                    cacheZZSwingIdentifier.CopyTo(tmp, 0);
                }
                tmp[tmp.Length - 1]    = indicator;
                cacheZZSwingIdentifier = tmp;
                return(indicator);
            }
        }
        /// <summary>
        /// Plot dot or line where the traderclutch swing is
        /// </summary>
        /// <returns></returns>
        public ZZSwingIdentifier ZZSwingIdentifier(Data.IDataSeries input, int swingSize)
        {
            if (cacheZZSwingIdentifier != null)
                for (int idx = 0; idx < cacheZZSwingIdentifier.Length; idx++)
                    if (cacheZZSwingIdentifier[idx].SwingSize == swingSize && cacheZZSwingIdentifier[idx].EqualsInput(input))
                        return cacheZZSwingIdentifier[idx];

            lock (checkZZSwingIdentifier)
            {
                checkZZSwingIdentifier.SwingSize = swingSize;
                swingSize = checkZZSwingIdentifier.SwingSize;

                if (cacheZZSwingIdentifier != null)
                    for (int idx = 0; idx < cacheZZSwingIdentifier.Length; idx++)
                        if (cacheZZSwingIdentifier[idx].SwingSize == swingSize && cacheZZSwingIdentifier[idx].EqualsInput(input))
                            return cacheZZSwingIdentifier[idx];

                ZZSwingIdentifier indicator = new ZZSwingIdentifier();
                indicator.BarsRequired = BarsRequired;
                indicator.CalculateOnBarClose = CalculateOnBarClose;
#if NT7
                indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256;
                indicator.MaximumBarsLookBack = MaximumBarsLookBack;
#endif
                indicator.Input = input;
                indicator.SwingSize = swingSize;
                Indicators.Add(indicator);
                indicator.SetUp();

                ZZSwingIdentifier[] tmp = new ZZSwingIdentifier[cacheZZSwingIdentifier == null ? 1 : cacheZZSwingIdentifier.Length + 1];
                if (cacheZZSwingIdentifier != null)
                    cacheZZSwingIdentifier.CopyTo(tmp, 0);
                tmp[tmp.Length - 1] = indicator;
                cacheZZSwingIdentifier = tmp;
                return indicator;
            }
        }