NinjaTrader Double Bollinger Bands (Trend-Following) Indicator

NinjaTrader Double-Bollinger Bands DBB Indicator
NinjaTrader Double Bollinger Bands (Trend-Following) Indicator identifies strong trends using dual Bollinger Bands. It categorizes price action into buy, sell, and neutral zones, while optional EMA, RSI, and MACD filters enhance signal accuracy, helping traders make more informed decisions.

NinjaTrader Double Bollinger Bands (Trend-Following) Indicator

The NinjaTrader Double Bollinger Bands (DBB) Trend-Following Indicator is an advanced technical analysis tool that enhances the traditional Bollinger Bands strategy by utilizing two sets of Bollinger Bands with different standard deviations. This approach enables traders to more effectively identify prevailing market trends. The first set, with a standard deviation of one (1 SD), captures short-term price movements, while the second set, with a standard deviation of two (2 SD), helps identify broader trends.

NinjaTrader DBB Indicator

The core concept of the Double Bollinger Bands strategy is to analyze price interactions with the bands to determine trend strength and direction. By incorporating both 1 SD and 2 SD Bollinger Bands, the indicator provides a more refined method for trend identification, allowing traders to distinguish between a strong uptrend, a strong downtrend, or a neutral phase.

 

The DBB indicator consists of two sets of Bollinger Bands:

  • Inner Bands (BB1): A 20-period moving average with a standard deviation of one, forming a neutral zone.
  • Outer Bands (BB2): A 20-period moving average with a standard deviation of two, defining strong trend zones.

 

This multi-tiered approach classifies price movements into three distinct zones:

  • Buy Zone: When the price moves between the upper BB1 and BB2 bands, indicating a strong uptrend.
  • Neutral Zone: When the price fluctuates within the BB1 boundaries, signaling market indecision.
  • Sell Zone: When the price falls between the lower BB1 and BB2 bands, confirming a strong downtrend.

 

By categorizing price movements into these zones, traders can assess momentum and the likelihood of trend continuation.

The DBB indicator is particularly effective in identifying strong trending environments where prices are consistently moving within specific buy or sell zones. Additionally, it proves valuable during consolidation phases, where price action remains within the neutral zone, indicating a potential trend shift. Traders can leverage the indicator to anticipate breakouts from consolidation periods, enabling them to enter trades with greater confidence and improved timing.

 

How to trade using DBB (Trend-Following) Indicator?

The Double Bollinger Bands (DBB) indicator integrates Bollinger Bands with additional filters to generate more reliable trend-following signals. Bollinger Bands define key trading zones, while EMA, RSI, and MACD serve as confirmation tools to enhance signal accuracy.

 

Bollinger Bands Structure

  • Bollinger Bands 1 (BB1): A 20-period moving average with a one-standard deviation range, forming inner bands that indicate neutral market conditions.
  • Bollinger Bands 2 (BB2): A 20-period moving average with a two-standard deviation range, creating outer bands that define strong trend zones.

 

Additional Confirmation Filters

  • Exponential Moving Average (EMA): Confirms trend direction by ensuring buy signals occur above the EMA and sell signals below it.
  • Relative Strength Index (RSI): Filters out weak signals by requiring buy signals to align with upward momentum (RSI above a specified level, default 50) and sell signals with downward momentum (RSI below the target level).
  • Moving Average Convergence Divergence (MACD): Strengthens trend confirmation through histogram movements and signal line crossovers, helping traders gauge momentum shifts.

 

By integrating multiple indicators, the DBB strategy balances sensitivity and reliability. The combination of Bollinger Bands, EMA, RSI, and MACD helps traders assess signals from multiple perspectives, improving decision-making while reducing the likelihood of false signals.

 

Buy / Sell Rules

NinjaTrader Double Bollinger Bands Indicator Signals

 

Buy Signal Conditions:

  • The price rises above the upper BB1 level and moves toward the upper BB2 level (crossing the 1 SD Bollinger Band and continuing toward the 2 SD Bollinger Band).
  • The price exceeds the Minimum Threshold (%) and meets the required Percentage Filling Area BB1-BB2 parameter.
  • The price is above the EMA (if enabled).
  • The RSI is above the specified target level (if enabled).
  • The MACD histogram is positive, or the MACD signal line is above the zero line and rising (if enabled).

 

Sell Signal Conditions:

  • The price falls below the lower BB1 level and moves toward the lower BB2 level (crossing the 1 SD Bollinger Band and continuing toward the 2 SD Bollinger Band).
  • The price breaks the Minimum Threshold (%) and meets the required Percentage Filling Area BB1-BB2 parameter.
  • The price is below the EMA (if enabled).
  • The RSI is below the specified target level (if enabled).
  • The MACD histogram is negative, or the MACD signal line is below the zero line and declining (if enabled).

 

NinjaTrader Double Bollinger Bands Indicator input parameters

The indicator has the following parameters:

NinjaTrader DBB Indicator settings

 

Alerts – Configure various types of alerts.

Bollinger Bands #1-2 – Set key parameters, including period and standard deviation coefficient.

EMA – Define the period and select the applied price type (OPEN, HIGH, LOW, CLOSE, HL2, HLC3, OHLC4).

RSI – Configure key parameters of the RSI indicator.

MACD – Configure key parameters of the MACD indicator.

Use EMA Filter – Enable/disable the EMA as a signal filter.

Use RSI Filter – Enable/disable the RSI as a signal filter.

Use MACD Filter – Enable/disable the MACD as a signal filter.

MACD Filter Modes: HistogramRelatedZeroLine – The MACD histogram is positive/negative.

MACD Filter Modes: ZeroLineCrossesMACD – The MACD signal line is above the zero line and rising or below the zero line and declining.

Minimum Threshold (%) – Defines the minimum price breakout level above or below the BB1 level.

Percentage Filling Area BB1-BB2 – Specifies the minimum percentage of the buy/sell zone that must be covered by price for a valid signal.

Monitored Price Type – Determines the price type (High/Low or Close) used for calculating the Minimum Threshold (%) and Percentage Filling Area BB1-BB2 parameters.

 

Custom Programming

mt4 custom programming
We can upgrade the presented indicator to suit your needs – add new functions, change the algorithm for calculating signals, or combine it with your other indicator, turning it into a single powerful tool for your trading strategy.

We can also turn the indicator into an Automated Trading Strategy with an extended set of custom functions (stop loss, take profit, trailing stop, risk management parameters, trading time limit, and others).

Request a free consultation from our team of professional programmers and find out the cost and timing of your project development.

Disclaimer 

Nordman Algorithms is not liable for any risk that you face using the software. Please, use the software on your own responsibility. The software is coded in accordance with a common known concept and Nordman Algorithms does not guarantee accuracy or trading performance of the software signals.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one’s financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 – Hypothetical or Simulated performance results that have certain inherent limitations. Unlike the results shown in an actual performance record, these results do not represent actual trading. Also, because these trades have not actually been executed, these results may have under-or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated or hypothetical trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to these being shown.

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.

See other indicators on a single subscription
NinjaTrader Ichimoku Indicator
NinjaTrader Opening Range Breakout Indicator
NinjaTrader Pivot Point Indicator