#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 HolyGrailLevels[] cacheHolyGrailLevels;

		
		public HolyGrailLevels HolyGrailLevels(int strength, int maxTest, int lookBack, bool isAsZones, double zoneWidth)
		{
			return HolyGrailLevels(Input, strength, maxTest, lookBack, isAsZones, zoneWidth);
		}


		
		public HolyGrailLevels HolyGrailLevels(ISeries<double> input, int strength, int maxTest, int lookBack, bool isAsZones, double zoneWidth)
		{
			if (cacheHolyGrailLevels != null)
				for (int idx = 0; idx < cacheHolyGrailLevels.Length; idx++)
					if (cacheHolyGrailLevels[idx].Strength == strength && cacheHolyGrailLevels[idx].MaxTest == maxTest && cacheHolyGrailLevels[idx].LookBack == lookBack && cacheHolyGrailLevels[idx].IsAsZones == isAsZones && cacheHolyGrailLevels[idx].ZoneWidth == zoneWidth && cacheHolyGrailLevels[idx].EqualsInput(input))
						return cacheHolyGrailLevels[idx];
			return CacheIndicator<HolyGrailLevels>(new HolyGrailLevels(){ Strength = strength, MaxTest = maxTest, LookBack = lookBack, IsAsZones = isAsZones, ZoneWidth = zoneWidth }, input, ref cacheHolyGrailLevels);
		}

	}
}

namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
	{
		
		public Indicators.HolyGrailLevels HolyGrailLevels(int strength, int maxTest, int lookBack, bool isAsZones, double zoneWidth)
		{
			return indicator.HolyGrailLevels(Input, strength, maxTest, lookBack, isAsZones, zoneWidth);
		}


		
		public Indicators.HolyGrailLevels HolyGrailLevels(ISeries<double> input , int strength, int maxTest, int lookBack, bool isAsZones, double zoneWidth)
		{
			return indicator.HolyGrailLevels(input, strength, maxTest, lookBack, isAsZones, zoneWidth);
		}
	
	}
}

namespace NinjaTrader.NinjaScript.Strategies
{
	public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
	{
		
		public Indicators.HolyGrailLevels HolyGrailLevels(int strength, int maxTest, int lookBack, bool isAsZones, double zoneWidth)
		{
			return indicator.HolyGrailLevels(Input, strength, maxTest, lookBack, isAsZones, zoneWidth);
		}


		
		public Indicators.HolyGrailLevels HolyGrailLevels(ISeries<double> input , int strength, int maxTest, int lookBack, bool isAsZones, double zoneWidth)
		{
			return indicator.HolyGrailLevels(input, strength, maxTest, lookBack, isAsZones, zoneWidth);
		}

	}
}

#endregion
