Consecutive Below MA

Description
The Consecutive Below Moving Average (MA) indicator for NinjaTrader 8 is a custom indicator that calculates the number of consecutive closing prices that have been below a specified moving average. This indicator is particularly useful for identifying and measuring the duration of bearish trends.
Similar to the Consecutive Above MA indicator, the Consecutive Below MA indicator offers flexibility in choosing the type of moving average to use. You can select from three common types: Exponential Moving Average (EMA), Double Exponential Moving Average (DEMA), and Simple Moving Average (SMA). Each type of moving average has its own characteristics and may be suitable for different trading strategies.
The calculation value used by the indicator can also be customized to fit your preferences. By default, the indicator uses the closing price, but you have the option to select other values such as the high of the bar or another indicator.
The primary purpose of the Consecutive Below MA indicator is to identify and quantify the number of consecutive closes that remain below the chosen moving average. This information is valuable in confirming the strength of a bearish trend and potentially determining when the trend might be losing momentum or reversing.
By utilizing the Consecutive Below MA indicator, traders can gain insights into the duration and strength of bearish moves based on consecutive closes below a selected moving average. This can help them make more informed decisions about entry and exit points in the market.
Overall, the Consecutive Below MA indicator serves as a powerful tool for trend analysis, providing traders with valuable information about bearish trends and assisting them in identifying potential opportunities in the market.
Parameters
Period (int): Number of bars used in the calculation.
Moving Average Type (TdjMovingAverageProperties.MovingAverageType): Type of the moving average used in the calculation. There are three options: EMA (Exponential Moving Average), DEMA (Double Exponential Moving Average), and SMA (Simple Moving Average).
Plots
Value (double): the result of the calculation.
