#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Gui;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Gui.SuperDom;
using NinjaTrader.Gui.Tools;
using NinjaTrader.Data;
using NinjaTrader.NinjaScript;
using NinjaTrader.Core.FloatingPoint;

#endregion



#region NinjaScript generated code. Neither change nor remove.

namespace NinjaTrader.NinjaScript.Indicators
{
	public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase
	{
		
		private AS_CongestCount[] cacheAS_CongestCount;
		private AS_ConsecBarsDn[] cacheAS_ConsecBarsDn;
		private AS_ConsecBarsUp[] cacheAS_ConsecBarsUp;

		
		public AS_CongestCount AS_CongestCount()
		{
			return AS_CongestCount(Input);
		}

		public AS_ConsecBarsDn AS_ConsecBarsDn()
		{
			return AS_ConsecBarsDn(Input);
		}

		public AS_ConsecBarsUp AS_ConsecBarsUp()
		{
			return AS_ConsecBarsUp(Input);
		}


		
		public AS_CongestCount AS_CongestCount(ISeries<double> input)
		{
			if (cacheAS_CongestCount != null)
				for (int idx = 0; idx < cacheAS_CongestCount.Length; idx++)
					if ( cacheAS_CongestCount[idx].EqualsInput(input))
						return cacheAS_CongestCount[idx];
			return CacheIndicator<AS_CongestCount>(new AS_CongestCount(), input, ref cacheAS_CongestCount);
		}

		public AS_ConsecBarsDn AS_ConsecBarsDn(ISeries<double> input)
		{
			if (cacheAS_ConsecBarsDn != null)
				for (int idx = 0; idx < cacheAS_ConsecBarsDn.Length; idx++)
					if ( cacheAS_ConsecBarsDn[idx].EqualsInput(input))
						return cacheAS_ConsecBarsDn[idx];
			return CacheIndicator<AS_ConsecBarsDn>(new AS_ConsecBarsDn(), input, ref cacheAS_ConsecBarsDn);
		}

		public AS_ConsecBarsUp AS_ConsecBarsUp(ISeries<double> input)
		{
			if (cacheAS_ConsecBarsUp != null)
				for (int idx = 0; idx < cacheAS_ConsecBarsUp.Length; idx++)
					if ( cacheAS_ConsecBarsUp[idx].EqualsInput(input))
						return cacheAS_ConsecBarsUp[idx];
			return CacheIndicator<AS_ConsecBarsUp>(new AS_ConsecBarsUp(), input, ref cacheAS_ConsecBarsUp);
		}

	}
}

namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
	{
		
		public Indicators.AS_CongestCount AS_CongestCount()
		{
			return indicator.AS_CongestCount(Input);
		}

		public Indicators.AS_ConsecBarsDn AS_ConsecBarsDn()
		{
			return indicator.AS_ConsecBarsDn(Input);
		}

		public Indicators.AS_ConsecBarsUp AS_ConsecBarsUp()
		{
			return indicator.AS_ConsecBarsUp(Input);
		}


		
		public Indicators.AS_CongestCount AS_CongestCount(ISeries<double> input )
		{
			return indicator.AS_CongestCount(input);
		}

		public Indicators.AS_ConsecBarsDn AS_ConsecBarsDn(ISeries<double> input )
		{
			return indicator.AS_ConsecBarsDn(input);
		}

		public Indicators.AS_ConsecBarsUp AS_ConsecBarsUp(ISeries<double> input )
		{
			return indicator.AS_ConsecBarsUp(input);
		}
	
	}
}

namespace NinjaTrader.NinjaScript.Strategies
{
	public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
	{
		
		public Indicators.AS_CongestCount AS_CongestCount()
		{
			return indicator.AS_CongestCount(Input);
		}

		public Indicators.AS_ConsecBarsDn AS_ConsecBarsDn()
		{
			return indicator.AS_ConsecBarsDn(Input);
		}

		public Indicators.AS_ConsecBarsUp AS_ConsecBarsUp()
		{
			return indicator.AS_ConsecBarsUp(Input);
		}


		
		public Indicators.AS_CongestCount AS_CongestCount(ISeries<double> input )
		{
			return indicator.AS_CongestCount(input);
		}

		public Indicators.AS_ConsecBarsDn AS_ConsecBarsDn(ISeries<double> input )
		{
			return indicator.AS_ConsecBarsDn(input);
		}

		public Indicators.AS_ConsecBarsUp AS_ConsecBarsUp(ISeries<double> input )
		{
			return indicator.AS_ConsecBarsUp(input);
		}

	}
}

#endregion
