What is WRB-Hidden-Gap Indicator?

WRB-Hidden-Gap is an MT5 chart indicator that marks hidden gap areas found within wide-range bars. Detection settings, rectangle colors, labels, history, and extension options control the displayed zones.
The rectangles preserve prior chart areas for comparison with surrounding price behavior. They are visual references and do not establish a return, reaction, or directional conclusion.
How to Use It in Practice

The MT5 WRB Hidden Gap version draws cyan and blue gap bands, with pink where two gap areas overlap. Filled gaps no longer serve as displayed gap areas.
- Compare each cyan or blue band, and any pink overlap, with the wide-range candle that produced it and with later candles.
- Set UseWholeBars for high-to-low wide-range-bar detection and StartCalculationFromBar to limit the historical bars that receive markings.
- Switch HollowBoxes on when outlines are clearer than filled bands, and reserve DoAlerts for optional gap-touch notifications.
Hidden gap areas are marked without manual drawing, and history and styling controls make prior structure easier to review.
MT5 Indicator Parameters

The screenshot above shows the default input parameters in the MT5 settings window.
| Parameter | Description |
|---|---|
| UseWholeBars | Determines whether to calculate gaps based on the entire bar range or just the candle body. Setting it to false uses the body only, focusing on true hidden gaps. |
| WRB_LookBackBarCount | Specifies how many previous bars are used to confirm a Wide Range Bar. Lower values make it more sensitive, detecting more WRBs. |
| WRB_WingDingsSymbol | Sets the Wingdings symbol used for marking WRBs on the chart. It controls the visual style of the marker. |
| HGcolor1 | Defines the first color used for highlighting hidden gap zones on the chart. |
| HGcolor2 | Defines the secondary color for the hidden gap zones, allowing gradient or alternate shading. |
| HGstyle | Sets the style of the rectangle (e.g., solid or hollow) used to display the hidden gap area. |
| StartCalculationFromBar | Defines the bar index from which the calculation begins. Increasing this can limit calculations to recent history for performance optimization. |
| HollowBoxes | When enabled, the indicator draws hollow boxes instead of filled rectangles to show hidden gaps more transparently. |
| DoAlerts | Enables or disables on-screen or sound alerts when a new hidden gap is detected. |



