#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 OFAIndicatorBOOK[] cacheOFAIndicatorBOOK;
		private OFAIndicatorBookAggLine[] cacheOFAIndicatorBookAggLine;
		private OFAIndicatorBookLines[] cacheOFAIndicatorBookLines;

		
		public OFAIndicatorBOOK OFAIndicatorBOOK(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay, bool continuousCumulativeBook, bool isBidMinusAsk)
		{
			return OFAIndicatorBOOK(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay, continuousCumulativeBook, isBidMinusAsk);
		}

		public OFAIndicatorBookAggLine OFAIndicatorBookAggLine(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return OFAIndicatorBookAggLine(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}

		public OFAIndicatorBookLines OFAIndicatorBookLines(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return OFAIndicatorBookLines(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}


		
		public OFAIndicatorBOOK OFAIndicatorBOOK(ISeries<double> input, int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay, bool continuousCumulativeBook, bool isBidMinusAsk)
		{
			if (cacheOFAIndicatorBOOK != null)
				for (int idx = 0; idx < cacheOFAIndicatorBOOK.Length; idx++)
					if (cacheOFAIndicatorBOOK[idx].tickabovebelow == tickabovebelow && cacheOFAIndicatorBOOK[idx].levelStartPoint == levelStartPoint && cacheOFAIndicatorBOOK[idx].RefreshDelay == refreshDelay && cacheOFAIndicatorBOOK[idx].UseRefreshDelay == useRefreshDelay && cacheOFAIndicatorBOOK[idx].ContinuousCumulativeBook == continuousCumulativeBook && cacheOFAIndicatorBOOK[idx].IsBidMinusAsk == isBidMinusAsk && cacheOFAIndicatorBOOK[idx].EqualsInput(input))
						return cacheOFAIndicatorBOOK[idx];
			return CacheIndicator<OFAIndicatorBOOK>(new OFAIndicatorBOOK(){ tickabovebelow = tickabovebelow, levelStartPoint = levelStartPoint, RefreshDelay = refreshDelay, UseRefreshDelay = useRefreshDelay, ContinuousCumulativeBook = continuousCumulativeBook, IsBidMinusAsk = isBidMinusAsk }, input, ref cacheOFAIndicatorBOOK);
		}

		public OFAIndicatorBookAggLine OFAIndicatorBookAggLine(ISeries<double> input, int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			if (cacheOFAIndicatorBookAggLine != null)
				for (int idx = 0; idx < cacheOFAIndicatorBookAggLine.Length; idx++)
					if (cacheOFAIndicatorBookAggLine[idx].tickabovebelow == tickabovebelow && cacheOFAIndicatorBookAggLine[idx].levelStartPoint == levelStartPoint && cacheOFAIndicatorBookAggLine[idx].RefreshDelay == refreshDelay && cacheOFAIndicatorBookAggLine[idx].UseRefreshDelay == useRefreshDelay && cacheOFAIndicatorBookAggLine[idx].EqualsInput(input))
						return cacheOFAIndicatorBookAggLine[idx];
			return CacheIndicator<OFAIndicatorBookAggLine>(new OFAIndicatorBookAggLine(){ tickabovebelow = tickabovebelow, levelStartPoint = levelStartPoint, RefreshDelay = refreshDelay, UseRefreshDelay = useRefreshDelay }, input, ref cacheOFAIndicatorBookAggLine);
		}

		public OFAIndicatorBookLines OFAIndicatorBookLines(ISeries<double> input, int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			if (cacheOFAIndicatorBookLines != null)
				for (int idx = 0; idx < cacheOFAIndicatorBookLines.Length; idx++)
					if (cacheOFAIndicatorBookLines[idx].tickabovebelow == tickabovebelow && cacheOFAIndicatorBookLines[idx].levelStartPoint == levelStartPoint && cacheOFAIndicatorBookLines[idx].RefreshDelay == refreshDelay && cacheOFAIndicatorBookLines[idx].UseRefreshDelay == useRefreshDelay && cacheOFAIndicatorBookLines[idx].EqualsInput(input))
						return cacheOFAIndicatorBookLines[idx];
			return CacheIndicator<OFAIndicatorBookLines>(new OFAIndicatorBookLines(){ tickabovebelow = tickabovebelow, levelStartPoint = levelStartPoint, RefreshDelay = refreshDelay, UseRefreshDelay = useRefreshDelay }, input, ref cacheOFAIndicatorBookLines);
		}

	}
}

namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
	{
		
		public Indicators.OFAIndicatorBOOK OFAIndicatorBOOK(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay, bool continuousCumulativeBook, bool isBidMinusAsk)
		{
			return indicator.OFAIndicatorBOOK(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay, continuousCumulativeBook, isBidMinusAsk);
		}

		public Indicators.OFAIndicatorBookAggLine OFAIndicatorBookAggLine(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookAggLine(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}

		public Indicators.OFAIndicatorBookLines OFAIndicatorBookLines(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookLines(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}


		
		public Indicators.OFAIndicatorBOOK OFAIndicatorBOOK(ISeries<double> input , int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay, bool continuousCumulativeBook, bool isBidMinusAsk)
		{
			return indicator.OFAIndicatorBOOK(input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay, continuousCumulativeBook, isBidMinusAsk);
		}

		public Indicators.OFAIndicatorBookAggLine OFAIndicatorBookAggLine(ISeries<double> input , int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookAggLine(input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}

		public Indicators.OFAIndicatorBookLines OFAIndicatorBookLines(ISeries<double> input , int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookLines(input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}
	
	}
}

namespace NinjaTrader.NinjaScript.Strategies
{
	public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
	{
		
		public Indicators.OFAIndicatorBOOK OFAIndicatorBOOK(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay, bool continuousCumulativeBook, bool isBidMinusAsk)
		{
			return indicator.OFAIndicatorBOOK(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay, continuousCumulativeBook, isBidMinusAsk);
		}

		public Indicators.OFAIndicatorBookAggLine OFAIndicatorBookAggLine(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookAggLine(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}

		public Indicators.OFAIndicatorBookLines OFAIndicatorBookLines(int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookLines(Input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}


		
		public Indicators.OFAIndicatorBOOK OFAIndicatorBOOK(ISeries<double> input , int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay, bool continuousCumulativeBook, bool isBidMinusAsk)
		{
			return indicator.OFAIndicatorBOOK(input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay, continuousCumulativeBook, isBidMinusAsk);
		}

		public Indicators.OFAIndicatorBookAggLine OFAIndicatorBookAggLine(ISeries<double> input , int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookAggLine(input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}

		public Indicators.OFAIndicatorBookLines OFAIndicatorBookLines(ISeries<double> input , int tickabovebelow, int levelStartPoint, double refreshDelay, bool useRefreshDelay)
		{
			return indicator.OFAIndicatorBookLines(input, tickabovebelow, levelStartPoint, refreshDelay, useRefreshDelay);
		}

	}
}

#endregion
