OPEN-SOURCE SCRIPT
Zaktualizowano

B + A + D v0.4

2 970
This script combines a momentum histogram (B-Xtrender) with trend strength and direction filters (ADX + DI).
The histogram is built from EMA differentials processed through RSI, showing short- and long-term momentum shifts around the zero line. ADX with DI+ / DI− is used to confirm whether the market is trending and in which direction.

Bullish signals appear when the histogram turns positive and DI+ dominates DI− with sufficient trend strength.
Bearish signals appear when the histogram turns negative and DI− dominates DI+ with sufficient trend strength.

Important note for users:
The strongest and most reliable signals are those that appear immediately after the histogram crosses the zero line (from negative to positive or from positive to negative). Signals that appear later, while the histogram is already extended in the trend, tend to be weaker and should be treated as continuation signals rather than high-probability reversals.

Credits:
Special thanks to the authors of the original concepts and scripts:
pl.tradingview.com/v/VTPMMOrx/

pl.tradingview.com/v/YHZimEz8/
Informacje o Wersji
**B + A + D v0.7 - Multi-Indicator Confirmation System**

This advanced script combines **four independent technical indicators** to generate high-probability trading signals with strong confluence confirmation:

**Core Components:**

1. **B-Xtrender (Momentum Histogram)**
- Built from EMA differentials processed through RSI
- Shows short- and long-term momentum shifts around the zero line
- Provides the foundation for trend direction assessment

2. **ADX + DI (Trend Strength & Direction)**
- Confirms whether the market is trending and in which direction
- DI+ / DI− crossovers validate momentum shifts
- ADX threshold filters out weak, ranging markets

3. **Trend Step (Channel-Based Trend Filter)**
- Dynamic channel system based on ATR volatility
- Provides objective trend direction (bullish/bearish)
- Displayed as horizontal line: white = bullish, black = bearish

4. **EMA Core (Gradient Momentum Indicator)**
- Exponential Moving Average with acceleration-based color gradient
- Green gradient = strong bullish momentum
- Red gradient = strong bearish momentum
- Provides additional momentum confirmation

**Signal Logic:**

Signals appear **ONLY when ALL FOUR indicators align simultaneously:**

**BULL REVERSAL Signal (Green Dot):**
- B-X Trend Histogram > 0
- DI+ > DI−
- ADX > DI−
- Trend Step = Bullish (white line)
- EMA Core = Rising (green gradient)

**BEAR REVERSAL Signal (Red Dot):**
- B-X Trend Histogram < 0
- DI+ < DI−
- ADX > DI+
- Trend Step = Bearish (black line)
- EMA Core = Falling (red gradient)

**Signal Alternation:**
Signals are designed to alternate between bullish and bearish. After a green signal, only a red signal can appear next, and vice versa. This prevents multiple continuation signals within the same trend and focuses on true reversals.

**Important Notes:**

⚠️ **Signal Reliability & Market Context:**
The strongest and most reliable signals occur when:
- The histogram crosses the zero line for the first time
- Price movement is **organic and gradual** rather than driven by sudden, extreme volatility
- **Avoid signals that appear during abnormal price spikes, gaps, or news-driven explosive moves**
- Signals during violent price action often produce false breakouts and whipsaws

Signals that appear later, while the histogram is already extended in the trend, tend to be weaker and should be treated as continuation signals rather than high-probability reversals.

**Best Trading Conditions:**
- Steady, trending markets with consistent price action
- Normal volatility conditions
- Clear, orderly price movements
- Avoid: Extreme spikes, gaps, flash crashes, major news events

**Alert System:**

A single "State Change Alert" triggers when any signal condition is met, providing timely notifications without alert spam.

---

**Credits:**

Special thanks to the authors of the original concepts and scripts:
- pl.tradingview.com/v/VTPMMOrx/
- pl.tradingview.com/v/YHZimEz8/
- pl.tradingview.com/v/DJ5w3CE6/
- pl.tradingview.com/v/u6g4vlds/
Informacje o Wersji
What’s new
DI crossover is now used as a trigger, not a direct signal
Signals are confirmed only after B-X long histogram closes above/below zero
Added pending signal state to filter false DI crossovers
Fewer fake reversals during chop and transitions

What changed
Removed mandatory ADX / Trend Step / EMA alignment for signal firing
Indicators remain as contextual layers, not hard filters
Result
Earlier detection of trend shifts
Clear separation between market intent and momentum confirmation
No repainting, no signal spam
Best for
Early trend phases
Structure shifts

Transitional market conditions

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.