The Bollinger Bands Alert Mtf Indicator pulls a higher timeframe band set onto your working chart. It marks the bars that close outside that band set. Three lines and two arrow buffers come from one drop. Traders watching H4 bands on an H1 chart get both views at once.
This build ships as bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.ex4 for MT4 and bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 5: MTF Mid, MTF Upper, MTF Lower, Buy, Sell |
| Alerts | popup, push notification, email, sound |
| Inputs | 10 |
What the Bollinger Bands Alert Mtf Indicator draws on the chart
Three lines carry the slower bands. MTF Mid, MTF Upper and MTF Lower read the timeframe you pick in MtfTimeframe. The mid line paints goldenrod and both rails paint sea green. All three draw at double width over your candles.
Buy drops a lime up arrow below the candle. Sell drops a red down arrow above it. ArrowOffsetPts sets how far each marker clears the wick.
Band values come from a slower chart, so the three lines hold flat and then step. That staircase look is normal. It shows where each higher timeframe bar ended.
- MTF Mid: line, goldenrod, width 2
- MTF Upper: line, medium sea green, width 2
- MTF Lower: line, medium sea green, width 2
- Buy: arrow, lime, width 3, arrow code 233
- Sell: arrow, red, width 3, arrow code 234

How the Bollinger Bands Alert Mtf Indicator calculates its values
Mapping the higher timeframe
Each bar looks up its own slot. The code takes the open time of the working bar. It then asks which bar on MtfTimeframe covers that time. Every working bar inside one slower candle receives the same three values.
Band maths stays standard. BbPeriod sets the moving average length on the slower chart. BbMult sets how many standard deviations sit between the mid line and each rail.
When an arrow prints
The test looks at two closes. Buy prints when the working bar closes under MTF Lower. The bar before it must have closed at or above that rail. Sell prints on the mirror case at MTF Upper.
That makes each arrow a break marker rather than a reversal marker. It fires on the first close outside the slower rail. Nothing waits for the return inside. Treat it as a stretch alert, not a turn signal.
How to read the signals
An arrow says price just closed beyond a slower band. Some traders fade that stretch back toward MTF Mid. Others treat it as a squeeze release and go with it.
The mid line works as the bias reference. Working bars holding above MTF Mid with a rising rail keep long bias in play. The mirror reading applies below it.
Watch the step points. All three lines jump to new values when the slower bar closes. An arrow printed just before that jump can look misplaced afterwards.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
A Buy or Sell arrow on the last completed bar can raise a popup, a push notification, an email or a sound. The build sends at most one message for each closed bar.
Every Bollinger Bands Alert Mtf Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
BbPeriod |
Bars in the moving average behind the band set. It runs on the higher timeframe. | 20 |
BbMult |
Standard deviations between the mid line and each rail. Widen it to cut the arrow count. | 2.0 |
MtfTimeframe |
The chart the bands come from. Keep it a few steps above your working chart. | PERIOD_H4 |
Display settings
| Setting | What it does | Default |
|---|---|---|
ArrowOffsetPts |
Gap in points between the candle and its marker. Raise it on instruments with long wicks. | 30 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
(see inputs panel) | on |
EnablePopup |
(see inputs panel) | on |
EnablePushNotify |
(see inputs panel) | off |
EnableEmail |
(see inputs panel) | off |
EnableSound |
(see inputs panel) | off |
SoundFile |
(see inputs panel) | alert.wav |

Settings that fit your chart
Band overlays suit liquid instruments where volatility mean reverts. EURUSD on H1 with H4 bands is the pairing the screenshots use. Keep the ratio sensible, since four to six working bars per slower bar reads well. A large jump leaves the lines flat across most of the screen. Gold and index CFDs stretch the rails wider, so expect fewer arrows there.
When the Bollinger Bands Alert Mtf Indicator fails
Arrows mark the break, not the turn. Price can close beyond MTF Lower and keep going for many bars. A trader treating each arrow as an entry meets a run of them on a trending leg.
Higher timeframe values step rather than flow. Between two slower closes the rails do not move at all. An H1 close clearing a rail by a fraction may sit well inside once the slower bar completes.
Repainting risk lives in the mapping. The newest slower bar has not closed yet. Its band values shift while it forms, so the last stretch of all three lines can move under you.
Squeezes break the reading. A quiet market narrows the bands until a small push clears the rail. The arrow then carries no useful stretch behind it.
Copy bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.ex4 into MQL4/Indicators and bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.ex5 into MQL5/Indicators, then restart the terminal and drag the Bollinger Bands Alert Mtf Indicator onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Download the Bollinger Bands Alert Mtf Indicator for MT4 and MT5
The zip bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.zip holds bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.ex4, bollinger-bands-alert-mtf-indicator-indicator-forexmt4systems.ex5 and a short README, compiled files only. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
Does an arrow mean price closed back inside MTF Lower?
No. The Buy marker fires on the first close under the rail, with the bar before it at or above. Nothing in this build waits for the return inside the band. For a re-entry signal, watch the next close that comes back above MTF Lower yourself.
What ratio between MtfTimeframe and the working chart reads best?
Keep the slower chart a few steps up rather than a leap. Four to six working bars inside each slower bar keeps the rails moving often enough to matter. The shipped pairing of H4 bands on an H1 chart sits in that range. A monthly setting on M5 leaves the lines flat.
Why do MTF Upper and MTF Lower hold flat for several bars?
Every working bar inside the same slower candle reads the same band values. The three lines therefore hold a level, then step when that candle closes. This staircase is an honest picture of a slower band set on a faster chart. Nothing is drawing wrongly.
Can BbMult cut the number of arrows this build prints?
Yes. The multiplier sets the distance from the mid line to each rail in standard deviations. Raising it pushes the rails away from price, so fewer closes reach them. Lowering it does the reverse and floods a quiet chart. Adjust BbPeriod alongside it if the rails start hugging the candles.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Bollinger Bands Alert Mtf Indicator as one input. Always backtest before trading live.
Category: this is part of our Volatility collection. Next, plainly, truly, browse more Volatility for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- For background on this concept, see Bollinger Bandwidth at StockCharts ChartSchool.
- For broader market context, see Open interest on Wikipedia.
