Bollinger Squeeze + MACD (MT4)
Bollinger Squeeze + MACD combines volatility contraction/expansion from Bollinger Bands with MACD momentum to time clean breakouts, pullbacks and continuations in MetaTrader 4.
What it shows
- Bollinger Bands with squeeze detection (band width contraction).
- MACD line / signal / histogram to confirm direction and strength.
- (Optional) arrows/alerts — first close outside the bands, squeeze exit, MACD line–signal crosses and zero‑line flips.
Trade ideas
- Squeeze → breakout + MACD confirm: after a squeeze, trade the first close outside when MACD histogram > 0 for longs (or < 0 for shorts).
- Fakeout filter: require MACD line above signal (long) or below (short) at the breakout bar; skip otherwise.
- Breakout pullback: enter on retests of the mid‑band while MACD stays on the breakout side.
- (Optional) Divergences: fade late pushes when price makes HH/LL but MACD fails to confirm.
Inputs that matter
- Band period / deviation — squeeze sensitivity vs width.
- MACD fast / slow / signal — responsiveness vs smoothness.
- Squeeze threshold — minimum band width for a valid squeeze.
- Alerts — band break/touch, squeeze exit, MACD cross/zero.
- Colors/widths — quick visual read.
Suggested usage
- M5–M15: intraday squeeze breakouts with MACD filter.
- M30–H4: swing continuations; pullback + MACD alignment.
- Daily+: regime/bias read and risk tilt.
Installation (MT4)
- Open MetaTrader 4 → File → Open Data Folder.
- Copy
bollinger-squeeze-with-macd.ex4
to MQL4/Indicators. - Restart MT4 (or refresh Navigator) and attach Bollinger Squeeze + MACD.
- Tweak inputs → OK.
FAQ
Does it repaint? No on closed bars; MTF buffers (if present) update on their source TF’s close.
Use in EAs? Yes, via iCustom
.
Markets? FX, indices, metals, crypto — anything on MT4.
Disclaimer: Test on a demo account first; risk management is essential.