#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 VolumeUpDownAvg[] cacheVolumeUpDownAvg;

		
		public VolumeUpDownAvg VolumeUpDownAvg(int volumeMin, int volumeMax, int avgLookback)
		{
			return VolumeUpDownAvg(Input, volumeMin, volumeMax, avgLookback);
		}


		
		public VolumeUpDownAvg VolumeUpDownAvg(ISeries<double> input, int volumeMin, int volumeMax, int avgLookback)
		{
			if (cacheVolumeUpDownAvg != null)
				for (int idx = 0; idx < cacheVolumeUpDownAvg.Length; idx++)
					if (cacheVolumeUpDownAvg[idx].VolumeMin == volumeMin && cacheVolumeUpDownAvg[idx].VolumeMax == volumeMax && cacheVolumeUpDownAvg[idx].AvgLookback == avgLookback && cacheVolumeUpDownAvg[idx].EqualsInput(input))
						return cacheVolumeUpDownAvg[idx];
			return CacheIndicator<VolumeUpDownAvg>(new VolumeUpDownAvg(){ VolumeMin = volumeMin, VolumeMax = volumeMax, AvgLookback = avgLookback }, input, ref cacheVolumeUpDownAvg);
		}

	}
}

namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
	{
		
		public Indicators.VolumeUpDownAvg VolumeUpDownAvg(int volumeMin, int volumeMax, int avgLookback)
		{
			return indicator.VolumeUpDownAvg(Input, volumeMin, volumeMax, avgLookback);
		}


		
		public Indicators.VolumeUpDownAvg VolumeUpDownAvg(ISeries<double> input , int volumeMin, int volumeMax, int avgLookback)
		{
			return indicator.VolumeUpDownAvg(input, volumeMin, volumeMax, avgLookback);
		}
	
	}
}

namespace NinjaTrader.NinjaScript.Strategies
{
	public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
	{
		
		public Indicators.VolumeUpDownAvg VolumeUpDownAvg(int volumeMin, int volumeMax, int avgLookback)
		{
			return indicator.VolumeUpDownAvg(Input, volumeMin, volumeMax, avgLookback);
		}


		
		public Indicators.VolumeUpDownAvg VolumeUpDownAvg(ISeries<double> input , int volumeMin, int volumeMax, int avgLookback)
		{
			return indicator.VolumeUpDownAvg(input, volumeMin, volumeMax, avgLookback);
		}

	}
}

#endregion
