Green Red Sweep Candle
- Göstergeler
-
Md Hasibul Kabir
Founder & Developer at RWBTradeLab.
I develop high-quality trading indicators, expert advisors (EAs),
and utility tools for MetaTrader 5.
My work focuses on precise calculations, non-repainting logic,
and clear visual market structure. - Sürüm: 1.0
Green Red Sweep Candle by RWBTradeLab
A clean, non-repainting two-candle sweep detector for MetaTrader 5. It finds the moment a candle raids the far side of the one before it and then closes clean through the opposite side — the liquidity grab and the commitment, in the same candle. All from CLOSED candles only.
What This Indicator Does
Both candles of the pattern share the same colour. The second one first SWEEPS the far side of the first, and only then CLOSES beyond the opposite side, so it ends up covering the first candle's whole range. Sweeping alone is not enough — the close has to settle past it.
Green Sweep Candle
- Candle 1 = Green, Candle 2 = Green
- Candle 2 Low is at or below Candle 1 Low (the sweep)
- Candle 2 Close is above Candle 1 High (the close beyond)
Red Sweep Candle
- Candle 1 = Red, Candle 2 = Red
- Candle 2 High is at or above Candle 1 High (the sweep)
- Candle 2 Close is below Candle 1 Low (the close beyond)
A Doji (close equals open) is neither Green nor Red, so it never takes part in the pattern.
Why the same colour matters. Two candles pushing the same way, and the second one still had to dip back through the first one's far side before it could go. That dip is where the stops sat. The close beyond the other end is what says the move was taken seriously rather than being another failed push.
Key Features
Professional Chart Display
- The zone is Candle 1's full high-low range, stretched from Candle 1 to Candle 2 — the exact price band that was swept and then cleared
- A solid, thicker border makes each zone read clearly against the candles
- Boxes are drawn BEHIND the candles — price action always stays readable
- Clear text labels ("Green Sweep", "Red Sweep") placed below bullish zones and above bearish ones
- Separate fill and edge colours for each side, fully adjustable
- Label distance scales with the base candle's height (percentage based)
Summary Panel
- A compact panel in the chart corner lists both types with how many of each are currently on the scanned range
- Every cell is drawn as its own filled box with a thin grid line, so it reads the same on a white chart and on a black one
- The panel counts a type even while that type is hidden, so it tells you what is really there and not just what is drawn
- Four corner positions, adjustable font size and colours, and it can be switched off entirely
Non-Repainting Engine
- All patterns are calculated on CLOSED candles only — no running-candle logic
- Patterns are rescanned once per new bar, not on every tick (zero terminal lag)
- Automatic object cleanup — remove the indicator and the chart is spotless
Chart = Alerts, Always
- Drawing and alerts share the SAME detection rules
- An alert fires exactly when Candle 2 closes — once per pattern, never repeated
- Whatever fires an alert is exactly what you see on the chart
Alerts (bar-close only, off by default)
- 2 alert types: Green Sweep Candle and Red Sweep Candle — each with its own On/Off switch
- 3 delivery channels: Popup, Push Notification, Email
- Every alert message includes pattern type, price, symbol, timeframe and time
Inputs
- Scan: Scan Length (closed candles) — how many recent closed candles are scanned (default 200)
- Pattern Types: Green Sweep Candle, Red Sweep Candle
- Zone Style: bullish and bearish zone fill colours, bullish and bearish zone edge colours
- Labels: show labels, text offset from box (% of base candle height, min 20), font and font size
- Summary Table: show/hide, corner, font size, text colour, header background, cell background, grid colour
- Alerts: master switch, Popup / Push / Email, and a switch per pattern type
How to Use
Attach the indicator to any symbol and any timeframe — forex, gold, indices, crypto. A Green Sweep zone marks a band where sellers were pulled in below Candle 1's low and then closed out above its high; watch the zone as a potential demand area on retest. A Red Sweep zone is the mirror supply area. The pattern pairs naturally with the RWBTradeLab engulfing family — the sweep is the same liquidity idea, read on a two-candle group with a colour requirement instead of an engulfing one. For best results combine with higher-timeframe structure and your own trade plan.
Important Notes
- Push notifications require your MetaQuotes ID in MT5 (Tools -> Options -> Notifications); email alerts require SMTP settings
- Alerts work while the terminal is running
- Default colours are tuned for dark charts — all colours are fully adjustable for light themes
- This indicator is a pattern-detection tool, not financial advice. Trading involves risk — always use proper risk management
Creator: RWBTradeLab
If you find this indicator useful, please leave a review and share your feedback.
