BB + MACD v6.1.5 (Qing Smart Distribution) — Strategy by Z8830

By Z8830

Performance Metrics

Description

Strategy Summary: Qing BB + MACD v6.1.5 (Smart Distribution)ConceptA 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 MechanismsExit Type Condition When triggeredSmart 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 distributingHard Trend End 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.0MACD: (6, 12, 8)Exit ATR buffer: 0.5 (hard trend end sensitivity)Volume filter: on/off🧠 Key InsightMost 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.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView