BerelzBox Darvas based
- Indicators
-
Barend Willem Van Den Berg
"Disciplined trader with a background in education management and assessment. Now fully dedicated to systematic trading during my pension. I leverage my experience in structured evaluation to test and optimize trading strategies. My current focus is on integrating Artificial Intelligence (AI) tools - Version: 4.1
- Updated: 22 February 2026
BerelzBox Darvas is a "adaptive" box indicator [based on Darvas Boxtheory] for MetaTrader 5. It draws a live-updating box on the current candle and displays the previous completed box for reference. The box is divided into color-coded zones that help identify potential entry areas and breakout conditions.
The indicator is based on the classic Nicolas Darvas box theory, adapted for modern multi-timeframe use.
How It WorksThe indicator creates one box per candle on the selected timeframe (default H4). The current box updates on every tick as bar 0 develops. The previous box remains fixed for comparison.
Each box is divided into six gradient zones:
- Green zones (bottom half) mark the buy edge area, with stronger color near the box low
- Red zones (top half) mark the sell edge area, with stronger color near the box high
- A dotted midpoint line separates the two halves
The configurable Edge Zone parameter (default 18%) defines the boundary between edge zones and the neutral center. Price position relative to these zones is shown on the chart comment in real time.
Breakout DetectionWhen price moves above the box high or below the box low, the indicator identifies a breakout condition. Three alert types are available:
- Popup alert
- Push notification
- Sound alert
Each can be enabled or disabled independently through the input settings.
Features- Live box on bar 0 that redraws every tick
- Previous completed box displayed for context
- 3-layer gradient fill showing zone depth visually
- Configurable edge zone percentage
- Breakout alerts via popup, push and sound
- On-chart comment showing current zone status
- Works on any timeframe and any instrument
- Boxes render behind candles for clean chart readability
- No moving averages, no repainting
- InpBoxTF — Box timeframe (default: H4)
- InpEdgePct — Edge zone size in percent (default: 18.0)
- InpAlertPopup — Enable popup alerts (default: false)
- InpAlertPush — Enable push notifications (default: false)
- InpAlertSound — Enable sound alerts (default: true)
- InpPrevColor — Color of the previous box (default: DimGray)
- InpBoxWidth — Line width for box borders (default: 2)
Attach the indicator to any chart. The default H4 timeframe provides a balanced view for intraday and swing trading. Lower timeframes such as M15 or H1 can be used for shorter-term analysis. Higher timeframes such as D1 provide broader structure.
The zone information can also be used as input for Expert Advisors that read indicator buffer values or chart object levels.
Requirements- MetaTrader 5
- Works with any broker and any instrument

A very good indicator, congratulations