#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 MASCAPITALUK.MTRIndicator[] cacheMTRIndicator;

		
		public MASCAPITALUK.MTRIndicator MTRIndicator(bool momentumTopProtection, double sizeMultiplier, int entryCandleSizeLimit, bool movingAverageDirection, bool movingAverageSide, bool marketSide, bool longTrades, bool shortTrades, double rRToolRatio, string nameOfTemplate, string alertFileName, bool alert)
		{
			return MTRIndicator(Input, momentumTopProtection, sizeMultiplier, entryCandleSizeLimit, movingAverageDirection, movingAverageSide, marketSide, longTrades, shortTrades, rRToolRatio, nameOfTemplate, alertFileName, alert);
		}


		
		public MASCAPITALUK.MTRIndicator MTRIndicator(ISeries<double> input, bool momentumTopProtection, double sizeMultiplier, int entryCandleSizeLimit, bool movingAverageDirection, bool movingAverageSide, bool marketSide, bool longTrades, bool shortTrades, double rRToolRatio, string nameOfTemplate, string alertFileName, bool alert)
		{
			if (cacheMTRIndicator != null)
				for (int idx = 0; idx < cacheMTRIndicator.Length; idx++)
					if (cacheMTRIndicator[idx].MomentumTopProtection == momentumTopProtection && cacheMTRIndicator[idx].SizeMultiplier == sizeMultiplier && cacheMTRIndicator[idx].EntryCandleSizeLimit == entryCandleSizeLimit && cacheMTRIndicator[idx].MovingAverageDirection == movingAverageDirection && cacheMTRIndicator[idx].MovingAverageSide == movingAverageSide && cacheMTRIndicator[idx].MarketSide == marketSide && cacheMTRIndicator[idx].LongTrades == longTrades && cacheMTRIndicator[idx].ShortTrades == shortTrades && cacheMTRIndicator[idx].RRToolRatio == rRToolRatio && cacheMTRIndicator[idx].NameOfTemplate == nameOfTemplate && cacheMTRIndicator[idx].AlertFileName == alertFileName && cacheMTRIndicator[idx].Alert == alert && cacheMTRIndicator[idx].EqualsInput(input))
						return cacheMTRIndicator[idx];
			return CacheIndicator<MASCAPITALUK.MTRIndicator>(new MASCAPITALUK.MTRIndicator(){ MomentumTopProtection = momentumTopProtection, SizeMultiplier = sizeMultiplier, EntryCandleSizeLimit = entryCandleSizeLimit, MovingAverageDirection = movingAverageDirection, MovingAverageSide = movingAverageSide, MarketSide = marketSide, LongTrades = longTrades, ShortTrades = shortTrades, RRToolRatio = rRToolRatio, NameOfTemplate = nameOfTemplate, AlertFileName = alertFileName, Alert = alert }, input, ref cacheMTRIndicator);
		}

	}
}

namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
	public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
	{
		
		public Indicators.MASCAPITALUK.MTRIndicator MTRIndicator(bool momentumTopProtection, double sizeMultiplier, int entryCandleSizeLimit, bool movingAverageDirection, bool movingAverageSide, bool marketSide, bool longTrades, bool shortTrades, double rRToolRatio, string nameOfTemplate, string alertFileName, bool alert)
		{
			return indicator.MTRIndicator(Input, momentumTopProtection, sizeMultiplier, entryCandleSizeLimit, movingAverageDirection, movingAverageSide, marketSide, longTrades, shortTrades, rRToolRatio, nameOfTemplate, alertFileName, alert);
		}


		
		public Indicators.MASCAPITALUK.MTRIndicator MTRIndicator(ISeries<double> input , bool momentumTopProtection, double sizeMultiplier, int entryCandleSizeLimit, bool movingAverageDirection, bool movingAverageSide, bool marketSide, bool longTrades, bool shortTrades, double rRToolRatio, string nameOfTemplate, string alertFileName, bool alert)
		{
			return indicator.MTRIndicator(input, momentumTopProtection, sizeMultiplier, entryCandleSizeLimit, movingAverageDirection, movingAverageSide, marketSide, longTrades, shortTrades, rRToolRatio, nameOfTemplate, alertFileName, alert);
		}
	
	}
}

namespace NinjaTrader.NinjaScript.Strategies
{
	public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
	{
		
		public Indicators.MASCAPITALUK.MTRIndicator MTRIndicator(bool momentumTopProtection, double sizeMultiplier, int entryCandleSizeLimit, bool movingAverageDirection, bool movingAverageSide, bool marketSide, bool longTrades, bool shortTrades, double rRToolRatio, string nameOfTemplate, string alertFileName, bool alert)
		{
			return indicator.MTRIndicator(Input, momentumTopProtection, sizeMultiplier, entryCandleSizeLimit, movingAverageDirection, movingAverageSide, marketSide, longTrades, shortTrades, rRToolRatio, nameOfTemplate, alertFileName, alert);
		}


		
		public Indicators.MASCAPITALUK.MTRIndicator MTRIndicator(ISeries<double> input , bool momentumTopProtection, double sizeMultiplier, int entryCandleSizeLimit, bool movingAverageDirection, bool movingAverageSide, bool marketSide, bool longTrades, bool shortTrades, double rRToolRatio, string nameOfTemplate, string alertFileName, bool alert)
		{
			return indicator.MTRIndicator(input, momentumTopProtection, sizeMultiplier, entryCandleSizeLimit, movingAverageDirection, movingAverageSide, marketSide, longTrades, shortTrades, rRToolRatio, nameOfTemplate, alertFileName, alert);
		}

	}
}

#endregion
