Moving Average Trend

Description
Moving Average Trend NinjaTrader 8 indicator is a trend indicator based on a moving average. It does not simply check if the close is above or below a moving average to see if we are in a trend. The trend direction is changed only after 5 (This is a parameter that can be changed - Trend Change Minimum) consecutive closes above or below the moving average. You can also choose the moving average type. There are three options: Exponential Moving Average, Double Exponential Moving Average and Simple Moving Average.
Parameters
Period(int): Number of bars used in the calculation of the baseline range.
Moving Average Type(TdjMovingAverageProperties.MovingAverageType): Type of the moving average used in the calculation. There are three options: Exponential Moving Average, Double Exponential Moving Average and Simple Moving Average.
Trend Change Minimum: Number of minimum consecutive closes above or below the moving average for a trend change.
Plots
TrendUp (double): 1 if the trend is up (otherwise 0).
TrendDown (double): 1 if the trend is down (otherwise 0).
NoTrend (double): 1 if there is no trend (otherwise 0).
