What is WRB-Hidden-Gap Indicator?

WRB-Hidden-Gap is an MT5 chart indicator that identifies wide-range bars and marks hidden gap areas with chart rectangles. Range thresholds, colors, history, labels, and extension settings control the visible zones.
The marked rectangles preserve the location of the displayed gap for comparison with later candles. They are visual structure references and do not imply a return or reaction there.
How to Use It in Practice

WRB Hidden Gap marks hidden gaps with cyan and blue bands; a pink band marks an overlap of two gaps. A gap no longer functions as a displayed gap after it has been filled.
- Locate the cyan, blue, and overlapping pink bands, then compare each band with the adjacent wide-range candles.
- Set UseWholeBars to true when the full high-to-low wide-range bar should be used for hidden-gap detection.
- Reduce StartCalculationFromBar to limit how many historical candles receive gap markings; 30 is one example for a compact chart.
- Set HollowBoxes to true for outlines instead of filled bands, and enable DoAlerts only when a gap-touch notification is wanted.
Wide-range-bar gap areas remain visible on the chart, and history and styling settings help keep the review focused.
MT5 Indicator Parameters

The screenshot above shows the default input parameters in the MT5 settings window.
| Parameter | Description |
|---|---|
| UseWholeBars | Determines whether the full candle range or only the body should be used for WRB calculations. |
| WRB_LookBackBarCount | Sets how many previous bars to compare when identifying a Wide Range Bar. |
| WRB_WingDingsSymbol | Defines the Wingdings symbol code used to mark WRBs on the chart. |
| HGcolor1 | Sets the primary color for the hidden gap zone display. |
| HGcolor2 | Sets the secondary color used for the hidden gap visualization. |
| HGstyle | Defines the fill style of the hidden gap area (e.g., solid or outlined). |
| StartCalculationFromBar | Specifies how many bars back the indicator starts calculating from, useful for performance optimization. |
| HollowBoxes | Enables or disables hollow box-style gap zones instead of filled ones. |
| DoAlerts | Activates alerts when a new WRB or hidden gap is detected on the chart. |



