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.
| Input | Default | Practical meaning |
|---|---|---|
IndicatorName | FBR-BBWA | Instance name and arrow prefix; choose a different name per instance on the same chart. |
InpBandsPeriod | 20 | Averaging and deviation period, default 20. |
InpBandsShift | 0 | FBR 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. |
InpBandsDeviations | 2.0 | Deviation multiplier, default 2.0; changes one-sided distance from Middle. |
InpBandsAppliedPrice | PRICE_CLOSE | Applied price for the bands; Close by default. Events use actual Open/Close. |
AlertSignal | ON_BREAK_OUT | Selects breakout or return into the band range; BUY/SELL are event labels. |
CandleToCheck | CURRENT_CANDLE | Current evaluates the forming candle; Previous evaluates a completed candle. FBR marks the evaluated candle. |
IgnoreSameCandleCrosses | false | False allows the Open/Close fallback; true keeps only previous-Close/current-Close crossings. |
BarsToScan | 500 | Scan 500 candles; 0 uses available history and can increase work. |
EnableNotify | false | Master switch: false disables all notification channels. |
SendAlert | true | Popup true, gated by EnableNotify=false. |
SendApp | true | Push true, also gated by the master; needs terminal configuration. Turn off for popup-only use. |
SendEmail | true | Email true, also gated by the master; needs terminal configuration. Turn off for popup-only use. |
SignalBuffer | false | Optional zero-based buffer 3: 1=BUY,−1=SELL,0=neutral. Default false; outputs at evaluated-candle timestamps. |
EnableDrawArrows | true | Event arrows enabled by default. |
ArrowBuy | 241 | Wingdings code for BUY arrows. |
ArrowSell | 242 | Wingdings code for SELL arrows. |
ArrowBuyColor | clrGreen | BUY-arrow colour. |
ArrowSellColor | clrRed | SELL-arrow colour. |
ArrowSize | 3 | Arrow 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.



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.
- Download and extract the appropriate ZIP.
- In MetaTrader: File → Open Data Folder → MQL4 or MQL5.
- Copy Indicators and Files; MT5 also needs Include. The separate upstream copy is reference material.
- Open Bollinger_Alert_FBR.mq4 or Bollinger_Alert_FBR.mq5 in matching MetaEditor, Compile(F7) and inspect errors.
- 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.