Bollinger RSI ReEntry
- Indicators
-
Mattia Impicciatore
Hello,
I’m Mattia — a fintech developer, trader, and expert in MQL5, Python, and web technologies. - Version: 1.10
- Updated: 13 August 2025
Expert Advisor Version
If you prefer automated trading instead of manual signals, you can find the Expert Advisor version of this indicator here:
https://www.mql5.com/en/market/product/148222
This indicator computes price reentry moments after a candle has pierced outside the Bollinger Bands, combining that signal with an RSI confirmation to reduce false positives.
A Buy ReEntry signal is detected when price had moved below the lower band and then returns inside, with the optional confirmation that the RSI has just exited an oversold condition.
A Sell ReEntry signal is generated when price had moved above the upper band and then reenters, with the optional confirmation that the RSI has just exited an overbought condition.
Signals are marked with arrows on the chart, placed slightly outside the highs/lows for clarity.
Key Features
-
Manual calculation of Bollinger Bands (simple moving average + standard deviation).
-
Optional RSI filter to confirm valid reentries (exit from oversold/overbought).
-
ReEntry signals (buy/sell) based on price returning inside the bands after an excursion.
-
Distinct arrow visualization for buy and sell signals.
-
Fully configurable parameters: BB period, deviation, RSI period, overbought/oversold thresholds, timeframe, applied price.
-
Does not block signals if RSI is unavailable (intelligent fallback).
Input Parameters
-
InpBBPeriod – Period of the Bollinger Bands.
-
InpBBDeviation – Standard deviation multiplier used for the bands.
-
InpAppliedPrice – Price applied to calculate the bands (e.g., close).
-
InpTimeframe – Timeframe to analyze.
-
UseRSIConfirmation – Enables/disables RSI confirmation.
-
InpRSIPeriod – Period of the RSI.
-
RSI_Oversold – Oversold threshold for buy confirmation.
-
RSI_Overbought – Overbought threshold for sell confirmation.
How It Works
-
The simple moving average and standard deviation are calculated to derive the Bollinger Bands.
-
It checks whether price moved below or above the bands and then reentered (reentry).
-
If enabled, directional confirmation is taken from RSI: exit from oversold for buy, exit from overbought for sell.
-
A signal arrow is drawn at the reentry point (slightly offset for visibility).
Benefits
-
Reduces false breakouts by exploiting reentry instead of mere breach.
-
RSI confirmation adds momentum context, filtering weak signals.
-
Easy to combine with other tools for multi-layer validation.
Usage Suggestions
-
Use this indicator alongside price pattern analysis to confirm structure—for example, integrate with the Candlestick Pattern Analyzer to validate the price action immediately before/after the reentry.
-
Avoid taking the signal in isolation: look for confluence with support/resistance or higher-timeframe trends.
-
Pair with volume or trend filters to improve risk/reward profile.
Recommended Integration
To increase precision and contextualize the signal, it is recommended to use it in combination with the Candlestick Pattern Analyzer, which identifies reversal or continuation patterns on the candle that generates or confirms the reentry. You can find it here:
https://www.mql5.com/en/market/product/145419

Still in testing mode, but this looks fantastic from what I have seen.