Free Forex indicator · MT4 / MT5

Bollinger Bands Alert for MT4 & MT5: Settings and Free Source Download

See how Bollinger Bands expand and contract on real EUR/USD data. Compare breakout and return events, learn the actual settings and download the marked FBR source edition for MT4 or MT5.

Reviewed by ForexBestRobots Editorial Team

Original sourceEarnForex 1.06 · FBR edition 1.07
PlatformsDesktop MT4 · MT5
LicenseApache 2.0 · Free
On this page

What this Bollinger indicator adds

The program overlays a middle average and two volatility-sensitive bands on price. It can draw arrows and notify you of selected breakouts or returns. Wide bands describe greater recent dispersion; narrow bands do not predict the direction or timing of the next move.

Bollinger Bands with Alert FBR 1.07 is a marked Apache-licensed derivative of EarnForex 1.06. It documents buffer/history alignment, nonnegative band shifts and evaluated-candle arrows and signal output. Source is supplied for compilation; it does not place orders or manage stops.

20/2 bands, strict crossings and same-candle fallback

At the defaults, Middle=SMA(Close,20), sigma=sqrt(sum((price−Middle)^2)/20), Upper=Middle+2×sigma and Lower=Middle−2×sigma. This is population deviation with divisor N, not N−1. Other applied prices change the bands; events still test actual Open and Close. Two deviations do not guarantee a fixed percentage of future prices inside.

ON_BREAK_OUT labels a strict previous Close below its Upper then current Close above its Upper BUY; the lower-band reverse is SELL. ON_BOUNCE_IN labels a strict return upward through Lower BUY and downward through Upper SELL. Each candle uses its own aligned bands. A large jump can cross the whole range, so a return need not finish between both bands.

Previous-Close/current-Close crossings have priority. With default IgnoreSameCandleCrosses=false, the program then tries Open/Close against the evaluated candle’s calculated band. True disables only that fallback. Each condition is strict; equality can invalidate one condition while another still qualifies. A wick touch alone is insufficient, and this is not an intrabar replay.

20 functional inputs and FBR defaults

Both sources have 20 controls and four decorative Comment headings. Use a positive period, nonnegative deviation, scan and band shift, arrow size 1–5 and a unique nonempty instance name. FBR rejects negative band shifts.

InputDefaultPractical meaning
IndicatorNameFBR-BBWAInstance name and arrow prefix; choose a different name per instance on the same chart.
InpBandsPeriod20Averaging and deviation period, default 20.
InpBandsShift0FBR supports 0 or positive values: candle j uses bands calculated this many candles earlier. Values are already aligned; no second plot shift. Negative values are rejected.
InpBandsDeviations2.0Deviation multiplier, default 2.0; changes one-sided distance from Middle.
InpBandsAppliedPricePRICE_CLOSEApplied price for the bands; Close by default. Events use actual Open/Close.
AlertSignalON_BREAK_OUTSelects breakout or return into the band range; BUY/SELL are event labels.
CandleToCheckCURRENT_CANDLECurrent evaluates the forming candle; Previous evaluates a completed candle. FBR marks the evaluated candle.
IgnoreSameCandleCrossesfalseFalse allows the Open/Close fallback; true keeps only previous-Close/current-Close crossings.
BarsToScan500Scan 500 candles; 0 uses available history and can increase work.
EnableNotifyfalseMaster switch: false disables all notification channels.
SendAlerttruePopup true, gated by EnableNotify=false.
SendApptruePush true, also gated by the master; needs terminal configuration. Turn off for popup-only use.
SendEmailtrueEmail true, also gated by the master; needs terminal configuration. Turn off for popup-only use.
SignalBufferfalseOptional zero-based buffer 3: 1=BUY,−1=SELL,0=neutral. Default false; outputs at evaluated-candle timestamps.
EnableDrawArrowstrueEvent arrows enabled by default.
ArrowBuy241Wingdings code for BUY arrows.
ArrowSell242Wingdings code for SELL arrows.
ArrowBuyColorclrGreenBUY-arrow colour.
ArrowSellColorclrRedSELL-arrow colour.
ArrowSize3Arrow size from 1 to 5.

Real EUR/USD: breakouts, returns and band width

These original charts use archived Yahoo Finance EURUSD=X H1 OHLC in UTC. We reconstructed SMA and population-deviation bands, then applied the close/body rules to completed values. They are calculated illustrations, not MetaTrader screenshots, native arrow captures or tick replays.

EUR/USD with 20/2 Close bands and selected ON_BREAK_OUT events. Letters include eligible close or body events at the default filter setting; they are FBR annotations, not executed trades.
EUR/USD with 20/2 Close bands and selected ON_BREAK_OUT events. Letters include eligible close or body events at the default filter setting; they are FBR annotations, not executed trades.2025-06-09 00:00 — 2025-06-11 23:00 UTC · 72 candles
A separate fixed window shows ON_BOUNCE_IN with the same 20/2 settings. A return event does not guarantee a reversal, a target at Middle or completion inside both bands.
A separate fixed window shows ON_BOUNCE_IN with the same 20/2 settings. A return event does not guarantee a reversal, a target at Middle or completion inside both bands.2025-06-16 00:00 — 2025-06-19 23:00 UTC · 96 candles
Identical candles and SMA 20 Close with deviation multipliers 2 and 1. The middle stays the same while band distance changes; narrower bands do not establish better performance.
Identical candles and SMA 20 Close with deviation multipliers 2 and 1. The middle stays the same while band distance changes; narrower bands do not establish better performance.2025-06-16 00:00 — 2025-06-19 23:00 UTC · 96 candles

The provider does not identify these as broker-specific Bid/Ask execution prices. Native history can differ. Spreads, fills and returns were not measured. Scroll charts horizontally on narrow screens.

Download the illustrated readings (CSV) · 1Download the illustrated readings (CSV) · 2

Enable only the channels you need

EnableNotify=false is the master default, while SendAlert=true, SendApp=true and SendEmail=true. For popup only, first set SendApp=false and SendEmail=false, then enable the master and keep SendAlert=true. Push/email need terminal configuration; their retained messages include broker company, account name and account number. Downloading activates nothing.

Stored direction suppresses an identical event until state changes or becomes neutral. Previous also checks new chart-bar time. Current does not promise only one notification per candle; temporary events and arrows can disappear before close. There is no separate sound-file or seconds-cooldown input.

SignalBuffer=false is independent of arrows and notifications. Enabling it exposes buffer 3 values 1/−1/0 at evaluated candles. With Previous, bar shift 0 of that signal buffer is neutral; buffers 0/1/2 remain Middle/Upper/Lower. FBR has not tested native EA reads, chart objects or delivery.

Compile and install the FBR source edition

Choose MQ4 for desktop MT4 or MQ5 for MT5. These derivative ZIPs contain source for matching MetaEditor compilation, without ready EX4/EX5.

  1. Download and extract the appropriate ZIP.
  2. In MetaTrader: File → Open Data Folder → MQL4 or MQL5.
  3. Copy Indicators and Files; MT5 also needs Include. The separate upstream copy is reference material.
  4. Open Bollinger_Alert_FBR.mq4 or Bollinger_Alert_FBR.mq5 in matching MetaEditor, Compile(F7) and inspect errors.
  5. Refresh Navigator → Indicators, attach to a demo chart, choose a unique IndicatorName and inspect inputs, history and Experts/Journal.

FBR has not compiled or executed these sources in MetaTrader. Formula, event and index-model checks do not replace a native terminal test. Check the compiled indicator on a demo chart first.

Download Bollinger Bands with Alert FBR free

Each ZIP includes modified platform source, untouched original reference source, required icon and MT5 include, full Apache 2.0 license, change log, patch, instructions and SHA-256 checksums. Download without registration or a broker account.

FBR 1.07 identifies this derivative of EarnForex 1.06. Original attribution is preserved and modifications are marked. The modified program is supplied as source for platform-specific compilation.

Free source ZIP · FBR 1.07 · Compile in MetaEditor

Forming bands, shifts and verification limits

Current prices and calculated bands can change before close. Corrections and feed differences can alter history too. A closing-value reconstruction cannot certify intrabar crossings, native iBands details or all terminal builds.

FBR bounds full windows and neighbouring comparisons, applies nonnegative band shifts explicitly, and aligns arrows and optional output to the evaluated candle. Cleanup uses only the instance arrow prefix. Use distinct names on one chart. BarsToScan=0 increases workload; negative band shifts are unsupported.

A breakout may continue or fail; a return can be followed by another exit. A band event alone does not define entry, exit or position size. Our checks do not execute MQL, certify EA-buffer integration, measure execution costs or prove profitability.

Frequently asked questions

Are breakout and return the same signal?

No. Breakout labels a move above Upper BUY and below Lower SELL; return labels a move back above Lower BUY and below Upper SELL. These are event names.

What does IgnoreSameCandleCrosses change?

True removes the Open/Close fallback. The strict previous-Close/current-Close conditions still apply first. A wick touch alone is not enough.

Can an arrow disappear?

Yes. Current is the default and can change before close. Previous uses a completed candle, with the FBR arrow at that candle; data corrections remain possible.

Does enabling the master enable only popups?

No. All three channel switches start true. For popups alone, first disable SendApp and SendEmail, then enable EnableNotify.

Are compiled files included?

No. Compile MQ4/MQ5 in matching MetaEditor. This is marked FBR 1.07 source; native compilation and runtime have not been performed by FBR.

Sources and review scope

Original code and license were matched to a pinned EarnForex revision. FBR changes are marked. Independent SMA/deviation and event/index models support the illustrations; they do not replace native or strategy testing.