#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 BadBuddhaCustoms.BadBuddha_DisplacementTFO[] cacheBadBuddha_DisplacementTFO;

		
		public BadBuddhaCustoms.BadBuddha_DisplacementTFO BadBuddha_DisplacementTFO(bool requireFVG, DisplacementBasis dispType, int stdLen, int stdX)
		{
			return BadBuddha_DisplacementTFO(Input, requireFVG, dispType, stdLen, stdX);
		}


		
		public BadBuddhaCustoms.BadBuddha_DisplacementTFO BadBuddha_DisplacementTFO(ISeries<double> input, bool requireFVG, DisplacementBasis dispType, int stdLen, int stdX)
		{
			if (cacheBadBuddha_DisplacementTFO != null)
				for (int idx = 0; idx < cacheBadBuddha_DisplacementTFO.Length; idx++)
					if (cacheBadBuddha_DisplacementTFO[idx].RequireFVG == requireFVG && cacheBadBuddha_DisplacementTFO[idx].DispType == dispType && cacheBadBuddha_DisplacementTFO[idx].StdLen == stdLen && cacheBadBuddha_DisplacementTFO[idx].StdX == stdX && cacheBadBuddha_DisplacementTFO[idx].EqualsInput(input))
						return cacheBadBuddha_DisplacementTFO[idx];
			return CacheIndicator<BadBuddhaCustoms.BadBuddha_DisplacementTFO>(new BadBuddhaCustoms.BadBuddha_DisplacementTFO(){ RequireFVG = requireFVG, DispType = dispType, StdLen = stdLen, StdX = stdX }, input, ref cacheBadBuddha_DisplacementTFO);
		}

	}
}

namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
	{
		
		public Indicators.BadBuddhaCustoms.BadBuddha_DisplacementTFO BadBuddha_DisplacementTFO(bool requireFVG, DisplacementBasis dispType, int stdLen, int stdX)
		{
			return indicator.BadBuddha_DisplacementTFO(Input, requireFVG, dispType, stdLen, stdX);
		}


		
		public Indicators.BadBuddhaCustoms.BadBuddha_DisplacementTFO BadBuddha_DisplacementTFO(ISeries<double> input , bool requireFVG, DisplacementBasis dispType, int stdLen, int stdX)
		{
			return indicator.BadBuddha_DisplacementTFO(input, requireFVG, dispType, stdLen, stdX);
		}
	
	}
}

namespace NinjaTrader.NinjaScript.Strategies
{
	public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
	{
		
		public Indicators.BadBuddhaCustoms.BadBuddha_DisplacementTFO BadBuddha_DisplacementTFO(bool requireFVG, DisplacementBasis dispType, int stdLen, int stdX)
		{
			return indicator.BadBuddha_DisplacementTFO(Input, requireFVG, dispType, stdLen, stdX);
		}


		
		public Indicators.BadBuddhaCustoms.BadBuddha_DisplacementTFO BadBuddha_DisplacementTFO(ISeries<double> input , bool requireFVG, DisplacementBasis dispType, int stdLen, int stdX)
		{
			return indicator.BadBuddha_DisplacementTFO(input, requireFVG, dispType, stdLen, stdX);
		}

	}
}

#endregion
