BB + MACD v6.1.5 (Qing Smart Distribution)Strategy Summary: Qing BB + MACD v6.1.5 (Smart Distribution)
Concept
A long‑only momentum strategy that catches confirmed breakouts (Bollinger Basis + MACD) and actively manages exits by detecting distribution, trend exhaustion, or blow‑off tops. The goal is to ride the middle part of a trend while exiting before a major reversal.
📈 Entry – “ECU Confirming Solid Rise”
Conditions (all required):
Price breakout – close crosses above the 20‑period SMA (Bollinger Basis) or MACD line crosses above signal line while price is already above the Basis and histogram > 0.
Solid momentum – MACD histogram is positive and rising (higher than previous bar).
Volume confirmation – current volume ≥ 20‑period average (optional but enabled by default).
Bullish candle – close > open.
Why: Only enter when momentum is actively accelerating – not on weak or fading bounces.
📉 Exits – Three Independent Stop/Target Mechanisms
Exit Type Condition When triggered
Smart Distribution Price touched or approached upper BB within last 3 bars + MACD histogram shrinking for 2 consecutive bars + red candle & no new high Exits near potential tops where smart money may be distributing
Hard Trend End close < (Basis – ATR(14)×0.5) and red candle Breaks trend support – ATR‑based safety net
Blow‑off Top close > upper BB and MACD line > 0 and MACD line > signal line × 2.5 Captures extreme parabolic moves (exits early, avoids deep retrace)
⚠️ The strategy exits completely when any of the three conditions becomes true.
🎛️ User Inputs (adjustable)
Bollinger Bands: length 20, multiplier 2.0
MACD: (6, 12, 8)
Exit ATR buffer: 0.5 (hard trend end sensitivity)
Volume filter: on/off
🧠 Key Insight
Most breakout strategies buy the break and hold until a trailing stop is hit.
This script instead watches how the market behaves near resistance (upper BB, stalling candles, shrinking histogram).
It treats those as early warnings that the trend is losing internal strength – even if price hasn’t reversed yet.
Estrategia Pine Script®






















