/// <summary>
        /// Tick per Second MAX
        /// </summary>
        /// <returns></returns>
        public TicksPerSecond_MAX_Counter_v1 TicksPerSecond_MAX_Counter_v1(Data.IDataSeries input)
        {
            if (cacheTicksPerSecond_MAX_Counter_v1 != null)
            {
                for (int idx = 0; idx < cacheTicksPerSecond_MAX_Counter_v1.Length; idx++)
                {
                    if (cacheTicksPerSecond_MAX_Counter_v1[idx].EqualsInput(input))
                    {
                        return(cacheTicksPerSecond_MAX_Counter_v1[idx]);
                    }
                }
            }

            lock (checkTicksPerSecond_MAX_Counter_v1)
            {
                if (cacheTicksPerSecond_MAX_Counter_v1 != null)
                {
                    for (int idx = 0; idx < cacheTicksPerSecond_MAX_Counter_v1.Length; idx++)
                    {
                        if (cacheTicksPerSecond_MAX_Counter_v1[idx].EqualsInput(input))
                        {
                            return(cacheTicksPerSecond_MAX_Counter_v1[idx]);
                        }
                    }
                }

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

                TicksPerSecond_MAX_Counter_v1[] tmp = new TicksPerSecond_MAX_Counter_v1[cacheTicksPerSecond_MAX_Counter_v1 == null ? 1 : cacheTicksPerSecond_MAX_Counter_v1.Length + 1];
                if (cacheTicksPerSecond_MAX_Counter_v1 != null)
                {
                    cacheTicksPerSecond_MAX_Counter_v1.CopyTo(tmp, 0);
                }
                tmp[tmp.Length - 1] = indicator;
                cacheTicksPerSecond_MAX_Counter_v1 = tmp;
                return(indicator);
            }
        }
        /// <summary>
        /// Tick per Second MAX
        /// </summary>
        /// <returns></returns>
        public TicksPerSecond_MAX_Counter_v1 TicksPerSecond_MAX_Counter_v1(Data.IDataSeries input)
        {
            if (cacheTicksPerSecond_MAX_Counter_v1 != null)
                for (int idx = 0; idx < cacheTicksPerSecond_MAX_Counter_v1.Length; idx++)
                    if (cacheTicksPerSecond_MAX_Counter_v1[idx].EqualsInput(input))
                        return cacheTicksPerSecond_MAX_Counter_v1[idx];

            lock (checkTicksPerSecond_MAX_Counter_v1)
            {
                if (cacheTicksPerSecond_MAX_Counter_v1 != null)
                    for (int idx = 0; idx < cacheTicksPerSecond_MAX_Counter_v1.Length; idx++)
                        if (cacheTicksPerSecond_MAX_Counter_v1[idx].EqualsInput(input))
                            return cacheTicksPerSecond_MAX_Counter_v1[idx];

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

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