NinjaTrader Double Bollinger Bands (Trend-Following) Indicator

NinjaTrader Double-Bollinger Bands DBB Indicator
NinjaTrader Double Bollinger Bands Indicator uses two Bollinger Band sets (1 SD and 2 SD) to classify price into bullish, bearish, and neutral zones. Optional EMA, RSI, and MACD filters add configurable confirmation layers to the zone-based condition registration logic.

NinjaTrader Double Bollinger Bands (Trend-Following) Indicator

The Double Bollinger Bands (DBB) Indicator uses two sets of Bollinger Bands with different standard deviations to classify price position into three structural zones. The inner bands (BB1) use a standard deviation of one — the outer bands (BB2) use a standard deviation of two. Both sets share the same 20-period moving average as their central line.

NinjaTrader DBB Indicator

The two-band structure creates three analytically distinct zones based on where price is positioned relative to the four band boundaries:

Bullish zone — price is between the upper BB1 and upper BB2 boundaries. Price has moved beyond the 1 SD boundary but remains within the 2 SD boundary, reflecting a statistically extended but not extreme upward position.

Neutral zone — price is within the BB1 boundaries on both sides. Price is within one standard deviation of the moving average, reflecting a non-extended position relative to recent price behavior.

Bearish zone — price is between the lower BB1 and lower BB2 boundaries, reflecting a statistically extended downward position symmetrical to the bullish zone.

The analytical logic of the double-band structure is that the 1 SD boundary separates normal price variation from directionally extended price, while the 2 SD boundary defines the outer limit of statistically typical price range. Price consistently tracking within the bullish or bearish zone reflects sustained directional extension — price returning to the neutral zone reflects a reduction in that extension.

The double-band structure matters because it makes the space between 1 SD and 2 SD analytically explicit. A single Bollinger Band at 2 SD only tells you whether price is inside or outside — it treats everything inside as equivalent, regardless of whether price is near the average or near the boundary. Adding the 1 SD band creates a defined intermediate zone: price has moved beyond normal variation but hasn’t reached a statistically extreme position. This is where the indicator registers conditions — not at the average, not at the outer extreme, but in the zone between them. The Minimum Threshold and Percentage Filling Area parameters add a further filter: price must occupy this zone by a defined minimum amount, not just briefly touch the BB1 boundary and retreat.

 

How to interpret and use the Double Bollinger Bands (Trend-Following) Indicator?

The DBB Indicator integrates the zone-based Bollinger Band structure with three optional confirmation filters — EMA, RSI, and MACD — each of which can be enabled or disabled independently.

Bollinger Bands Structure

BB1 — 20-period moving average with 1 SD range. Boundaries define the neutral zone.

BB2 — 20-period moving average with 2 SD range. Boundaries define the outer limits of the bullish and bearish zones.

Additional Confirmation Filters

EMA — when enabled, a bullish condition requires price to be above the EMA, a bearish condition requires price to be below it. This ensures zone-based conditions are evaluated in the context of the medium-term directional bias as measured by the EMA.

RSI — when enabled, a bullish condition requires RSI to be above the configured threshold (default 50), a bearish condition requires RSI to be below it. This filters out zone-based conditions that occur when momentum as measured by RSI does not support the directional reading.

MACD — when enabled, two filter modes are available: Histogram mode requires the histogram to be positive for bullish and negative for bearish conditions. Zero Line Crossover mode requires the MACD signal line to be above zero and rising for bullish, or below zero and declining for bearish conditions.

 

NinjaTrader Double Bollinger Bands Indicator Signals

 

Bullish condition is registered when all of the following criteria are met:

Price rises above the upper BB1 boundary and moves toward the upper BB2 boundary — crossing the 1 SD level and entering the bullish zone.

Price must exceed the configured Minimum Threshold (%) and meet the Percentage Filling Area BB1–BB2 parameter.

If the EMA filter is enabled — price must be above the EMA.

If the RSI filter is enabled — RSI must be above the configured target level. If the MACD filter is enabled — the MACD histogram must be positive, or the signal line must be above zero and rising depending on the selected MACD filter mode.

Bearish condition is registered when the inverse criteria are met — price falls below the lower BB1 boundary and moves toward the lower BB2 boundary, with the same threshold, filling, and optional filter requirements applied symmetrically.

 

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 customize this indicator to your needs — adding functions, modifying logic, or integrating it with other tools for your workflow.

We also convert indicators into Automated Trading Strategies with advanced functions (trailing stops, risk management, filters) tailored to your trading style strictly according to your specifications.

Request a free consultation to discuss the technical scope and timeline of your project.

 

We Value Your Feedback

We are committed to the ongoing development and refinement of our indicators. If you’ve spotted a bug, feel that something essential is missing, or have ideas that could make the indicator even better, just send us a message. Your feedback helps us improve and deliver tools that truly meet traders’ needs.

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